ESC codes to Printer

Scott_A._FindleyScott_A._Findley Member Posts: 2
edited 2000-03-24 in Navision Financials
How can I send an ESC code to a printer?

I am using an Eltron barcode printer. Escape codes are necessaryt to control formating (i.e. Bold, rotations, size, etc.)

I would like to perform this task in a report.

Comments

  • John_TegelaarJohn_Tegelaar Member Posts: 159
    It's Windows that's eating up your Esc codes. Just like with any other Windows based program which prints to the (graphical) printer, the page is built up first, then sent to the printer.

    A workaround can be to set up a new printer in Windows as a Generic, Text Only printer. Then Windows will not perform graphic formatting and will pass your Esc codes too.

    Use a variable of type CHAR to send the Esc code (ASCII 27) from within your report, but that won't be the hardest task.

    John
  • LudoLudo Member Posts: 14
    I thought that this only worked under W95/98 but not for a printer controlled by NT/W2000 ?

    BR,
    Ludo
Sign In or Register to comment.