Notitie
Voor toegang tot deze pagina is autorisatie vereist. U kunt proberen u aan te melden of de directory te wijzigen.
Voor toegang tot deze pagina is autorisatie vereist. U kunt proberen de mappen te wijzigen.
Stel dat uw GPD-bestand een duplex-functie heeft die is gedefinieerd zoals in het volgende voorbeeld, zodat de duplex-eenheid kan worden geïnstalleerd:
*Feature: Duplex
{
*rcNameID: =TWO_SIDED_PRINTING_DISPLAY
*DefaultOption: NONE
*Option: NONE
{
*rcNameID: =NONE_DISPLAY
*Command: CmdSelect
{
*Order: DOC_SETUP.9
*Cmd: "<1B>&l0S"
}
}
*Option: VERTICAL
{
*rcNameID: =FLIP_ON_LONG_EDGE_DISPLAY
*Command: CmdSelect
{
*Order: DOC_SETUP.10
*Cmd: "<1B>&l1S"
}
}
*Option: HORIZONTAL
{
*rcNameID: =FLIP_ON_SHORT_EDGE_DISPLAY
*Command: CmdSelect
{
*Order: DOC_SETUP.10
*Cmd: "<1B>&l2S"
}
}
}
*%
*% Installable Option
*%
*Feature: DuplexUnit
{
*rcNameID: 429 *% Duplex Unit
*HelpIndex: 12004
*FeatureType: PRINTER_PROPERTY
*DefaultOption: FALSE
*Option: NotInstalled
{
*rcNameID: 444
*DisabledFeatures: LIST(Duplex.VERTICAL, Duplex.HORIZONTAL)
}
*Option: Installed
{
*rcNameID: 443
}
}
Het volgende voorbeeld van GDL-code biedt de mogelijkheid om het bestaan van een duplex-eenheid (die wordt beschreven in het voorgaande GPD-codevoorbeeld) automatisch te detecteren en de juiste optie in te stellen. In dit voorbeeld verzendt de spooler de query die wordt weergegeven in de *BidiQuery-constructie . Wanneer de printer de query ontvangt, reageert deze met een van de twee mogelijke *Option-constructiewaarden .
*Feature: DuplexUnit
{
*% Note that the *BidiQuery and *BidiResponse constructs must have the same names
*BidiQuery: DuplexUnit
{
*QueryString: "\Printer.Configuration.DuplexUnit:Installed"
}
*BidiResponse: DuplexUnit
{
*ResponseType: BIDI_BOOL
*ResponseData: ENUM_OPTION(DuplexUnit)
}
*Option: NotInstalled
{
*BidiValue: BOOL(FALSE)
}
*Option: Installed
{
*BidiValue: BOOL(TRUE)
}
}