nicklewe
4th October 2002, 09:56
Hello,
does anybody know if you can preselect the print preview option?
I am using the spool.device and spool functions to automatically print a report directly to a specified printer, but i would like to automatically select the preview option.
thanks in advance for any help,
Nick LeWe
zacharyg
4th October 2002, 12:06
Hello Nick,
I'm also not sure, but the variable to use is "spool.preview". If I were attempting this, I would set spool.preview prior to invoking spool.open or brp.open.
Since you've already coded some lines, you should run to see if it results in the desired result.
Good Luck!
nicklewe
4th October 2002, 14:46
Hello!
Yes that works great...
spool.report="rtTheReportName"
spool.device="W"
spool.preview=true
reportnr = brp.open(spool.report, spool.device, 0)
if reportnr>0 then
|...and now collect the data and stuff
brp.ready(reportnr)
brp.close(reportnr)
endif
thanks for that
Nick
NPRao
4th October 2002, 21:32
zacharyg,
Is spool.preview=true an undocumented predefined variable, see http://www.baanboard.com/programmers_manual_baanerp_help_functions_spooling_overview_and_synopsis[/WIKI ? I couldnt find it in the BaaN help manual.
I think the preview option works only when you choose printers in the ttstpsplopen session.