Dear Friends,
How do I set the print density to 10 lines per inch, for example, a dot matrix printer (Epson DFX8000)?
I'm using CBL_PRINTER_DEFAULT_PROPERTIES and CBL_PRINT_FILE to print my report.
graciously
Rogerio Barbosa
Dear Friends,
How do I set the print density to 10 lines per inch, for example, a dot matrix printer (Epson DFX8000)?
I'm using CBL_PRINTER_DEFAULT_PROPERTIES and CBL_PRINT_FILE to print my report.
graciously
Rogerio Barbosa
Dear Friends,
How do I set the print density to 10 lines per inch, for example, a dot matrix printer (Epson DFX8000)?
I'm using CBL_PRINTER_DEFAULT_PROPERTIES and CBL_PRINT_FILE to print my report.
graciously
Rogerio Barbosa
The print density is not an option that you can set using CBL_PRINTER_DEFAULT_PROPERTIES.
It is normally turned on using a Printer Control Language (PCL) ESC code that is embedded into your print line and then sent to the printer in a raw data format.
Unfortunately in Net Express you cannot use the PC_PRINT_FILE routine to print these raw ESC sequences to the printer. They will be stripped out when the file is sent.
In order to send these types of commands to your printer you can use the Windows print spooler API calls.
Please see the KB article here for an example:
Incidently, we have added this raw printing capability to the PC_PRINT_FILE routine in the Visual COBOL product in the form of a flag that is passed as a parameter.
Thanks.
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.