d.schingenga
22nd January 2009, 16:51
We use the Infor Webtop for our clients. I made a report for orderconfirmation, which will be printed three times (nr.copy variable). We now need a report that will print this confirmation just one time.

I copied the first report and added the following code in the first before layout:

if nr.copy <> 0
then
spool.close()
end()
endif

In BaanIV this works fine, even with the Infor Worktop this works fine. However when using with the webtop, it is executed but the execution will not stop. The indicator at the top right keeps moving. The only way to get out this is to close the webbrowser.

What can be the reason for this? And how to solve this of is there a easy way to stop the report after 1 copy is printed?

Thanks inadvance,

Dirk

NvpBaaN
26th January 2009, 00:15
At the time when you issue the spool.close() command, how many spoolers are open? If there are multiple, you may need to specify the spooler that you want to close, by assigning the spooler ID to spool.id before spool.close().
If that doesn't work, maybe you can try using some other way to return control to the script instead of end()...there are still some open issues with WebTop and some commands donot work in WebTop the way they work in Worktop.

Mario
2nd February 2011, 13:29
Is there a solution yet for this problem? In a reportscript I do a spool.close, after I found the contact email address I want to fill it as output file in the device. Works perfect in bw but not in webtop. Also when I reuse the print.id it does not help.
(ERPLN fp6) .

Mario
2nd February 2011, 17:15
just found the problem: it seems webtop is not able to use spool.open with mode 1 (window is displayed and user can change settings / cancel). If you use mode 0 (no window) it also works in webtop.
If there's a way to have the interaction work in webtop (mode 1), it would be nice to know!