mlarocca
3rd October 2002, 20:01
Hi all,
one of my clients had a request to eliminate the cover page that prints the user name, date, time, etc.. before every report that the users send to the printer but have that information printing instead on the top of every report page.
The solution to the problem was not to customize every single baan report of course.
I then built a "rewrite file" device that feeds the report output to a 3GL script that I wrote to add the required information at each page break.
I added a line at the top of my work file with the setup informations that appears on bwprint files (.bpf) for font, with/lenght of the page, protrait/landscape, page from, page to, etc..).
EX:
@ -p "" -c 2 -f 1 -t 999999 -l 66 -m 0 -L ISO-8859-1 -a 1 -r rttadv240001000 -w 232 -d L -B "WINDOWSL"@
The modified report output is then ready and I just need to execute a server2client() and app_start() to open the file with bwprint.exe.
My quesiton now [ finally you may say...... :D ]: Does anybody know how to specify "legal size paper" in the setup line of a bwprint file or any other way to reach that result?
Thanks !
one of my clients had a request to eliminate the cover page that prints the user name, date, time, etc.. before every report that the users send to the printer but have that information printing instead on the top of every report page.
The solution to the problem was not to customize every single baan report of course.
I then built a "rewrite file" device that feeds the report output to a 3GL script that I wrote to add the required information at each page break.
I added a line at the top of my work file with the setup informations that appears on bwprint files (.bpf) for font, with/lenght of the page, protrait/landscape, page from, page to, etc..).
EX:
@ -p "" -c 2 -f 1 -t 999999 -l 66 -m 0 -L ISO-8859-1 -a 1 -r rttadv240001000 -w 232 -d L -B "WINDOWSL"@
The modified report output is then ready and I just need to execute a server2client() and app_start() to open the file with bwprint.exe.
My quesiton now [ finally you may say...... :D ]: Does anybody know how to specify "legal size paper" in the setup line of a bwprint file or any other way to reach that result?
Thanks !