I'm trying to write printer codes into a report so that it will print landscape and compressed. I have the codes, but am having difficulty getting them written to the report file. How do I osbwrite the ESC (ascii 27) char? All of the other codes look pretty straightforward.
Thank you.
Tyler Bowley
do you mean
OSBWRITE CHAR(27):'ABCD' etc
Osbwrite Char(27) On fileVar At Offset
World Leaders in all things RevSoft
Tyler,
Along with the Sprezzatura and Richard Wilson replies…
You might consider putting these printer control codes in the heading of the report. That way each page gets the control codes. You might just find this to be a handy method.
I have developed software that will control the print format for any Arev Report. ie. PORTRAIT, LANDSCAPE, Compressed LANDSCAPE, Compressed PORTRAIT etc. Please let me know if you would like a free copy - this is the full version with source code.
Jocely Amon
Financial Solutions Limited
finsol@ts.co.nz
Thanks for all of the help. The report is now printing landscape and compressed.
Tyler Bowley