kw_foo
8th March 2004, 11:38
Is there a way to save the Windows Printer output file (.bpf file) without preview it in the client PC ?
Regards,
KW Foo
en@frrom
8th March 2004, 12:16
Look at this thread (http://www.baanboard.com/baanboard/showthread.php?s=&threadid=14705)
Regards,
En.
kw_foo
9th March 2004, 02:00
The thread need the user select preview, and end of report it will pop up bwprint and display the report.
We do not want it to be display because when we try to run several huge reports overnight, in the preview mode, the client sometime will hang due to too many huge reports was preview in the PC. That is why I am looking for way to save the .bpf file without previewing it.
Regards,
KW Foo
en@frrom
9th March 2004, 10:48
Oh ok, sorry, didn't read your request well.
Ok, so even easier: just simply create a device - you can call it bpf - which rewrites a file. Do not fill in anything for program/4gl program/argument. For the path you can fill default file.bpf or so, and then when printing you just select device bpf, and fill the file name, i.e. output.bpf.
In your $BSE/tmp folder you will now find a bpf file called output.bpf with the correct formats.
Regards,
En.
goooch
9th March 2004, 12:48
Hi en@frrom
Does file output.bpf have a special BWPrint header?
-p "" -c 20 -f 1 -t 999999 -l 62 -m 1 -L -a 1 -r ryyxxx99999991 -w 94 -d L -B "WIN_PRN"
I tried this earlier but this header was absent
kw_foo
10th March 2004, 01:55
I tried to setup as mentioned, it can create the bpf file and open with the bwprint program but the font size and paper size does not send over to the bpf file.
The test result show that the font size are all in 10CPI (does not fit for most of the reports) and paper size is Letter (not following the report setting).
I believe it is just like goooch mentioned, the header does not register in the bpf file.
Please advice.
Regards,
KW Foo
goooch
10th March 2004, 07:35
When i solved this problem i made two things
The first is a simple program named bwprint.exe which moves temporary report for further use
The second is a device program like ttstpconv which create right bpf header. There are some topics you may search
All solutions are not magnificient but my problem was solved :)
garfield ruhr
10th March 2004, 18:13
Hi *ALL,
what about this solution?
Define the delete delay time for the user printing over night. Then on the next morning send the report via session ttaad3120m000 (Maintain device queue) to the windows printer. Then the metafile of the printout with all format information is still on the system and the windows printout should look nice.
Bye,
Garfield
:confused: