davidmekelburg
Programmer
Moving from Microfocus to Fujitsu and have many standard COBOL i/o reports that print directly to a printer. I have coded many HP PCL5 control commands in a copybook. To change a font, I just write the "print-record from choose-font-2".
choose-font-2 has the ESC character X'1B' in it.
It appears that Fujitsu does not allow me to send the "non-printable" characters to a printer but I can send it to a sequential file. Can anyone confirm this or provide me with easy workaround.
I using win2000 so the printer is defined as:
select out-file assign to "PRTNAME:\\server\printer".
What I get printed is all the control strings with a space where the ESC code should be followed by the text that should be bolded/new font/duplexed etc.
I don't want to define forms/control lines etc. There should be a way to write simple hex characters to a printer.
thanks
choose-font-2 has the ESC character X'1B' in it.
It appears that Fujitsu does not allow me to send the "non-printable" characters to a printer but I can send it to a sequential file. Can anyone confirm this or provide me with easy workaround.
I using win2000 so the printer is defined as:
select out-file assign to "PRTNAME:\\server\printer".
What I get printed is all the control strings with a space where the ESC code should be followed by the text that should be bolded/new font/duplexed etc.
I don't want to define forms/control lines etc. There should be a way to write simple hex characters to a printer.
thanks