Compartilhar via


Autoconfigurando a memória da impressora para GPD

O exemplo de código a seguir mostra como adicionar entradas ao arquivo GDL para quaisquer opções de memória no arquivo GPD. O exemplo de código GPD mostrado após o exemplo a seguir é uma definição típica do recurso Memória.

*Feature: Memory
{
  *rcNameID: =PRINTER_MEMORY_DISPLAY
  *DefaultOption: 4096KB

  *MemConfigKB: PAIR(4096, 3150)
  *MemConfigKB: PAIR(8192, 6750)
}

Você pode habilitar a configuração automática de memória adicionando o seguinte recurso ao arquivo GDL.

*% This feature definition merges with the definition in the GPD file
*Feature: Memory
{
  *% *BidiQuery and *BidiResponse constructs must have the same names
  *BidiQuery: Memory
  {
  *QueryString: "\Printer.Configuration.Memory:Size"
  }
  *BidiResponse: Memory
   {
    *ResponseType: BIDI_INT
    *ResponseData: ENUM_OPTION (Memory)
  }

  *Option: 4096KB
  {
    *% Names for the memory options already defined in GPD
    *BidiValue: INT(4096)
  }

  *Option: 8192KB
  {
    *BidiValue: INT(8192)
  }
}