nicklewe
11th November 2002, 16:49
Hello,
when printing a baan report using the following commands the print dialog comes up without the cancel button.
...
execute(print.data)
..
choice.print.data:
on.choice:
if rprt_open() then
read_themain_record_stuff()
rprt_close()
else
choice.again()
endif
how can i get the cancel button to appear by default.
I do not want to use brp_open ; i need to stick to the standard print.data command.
regards,
Nick LeWe
jaapzwaan
11th November 2002, 17:36
Nick,
The Cancel button is a special representation, that is mapped to the ABORT.PROGRAM standard command. If that is not active (see standard commands), then the button won't appear.
I can't give you more information, because I don't know which version you are working on. Please update your profile here (http://www.baanboard.com/baanboard/member.php?s=&action=editprofile)
Regards,
Jaap Zwaan
NPRao
11th November 2002, 19:37
Nick,
You can use the spool.open() (http://www.baanboard.com/programmers_manual_baanerp_help_functions_spooling_spool_open) with the mode:1
mode
This determines whether or not a window is displayed where the user can change the device settings:
0 no window displayed
1 window displayed with a Cancel button
2 window displayed without a Cancel button
mark_h
11th November 2002, 22:20
Hi Nick!
From the code you posted I would expect the Cancel command to appear when requesting the device. I am not aware of anything that you have to setup to get this appear on the device request form. If it started happening on our system I would contact BaaN.
Good Luck!
Mark
nicklewe
12th November 2002, 10:30
The main session has two forms (both with abort.program option activated). The first form has selection fields on it, the second displays the results of the query. The print output is selected by print.data, but the session ttstpsplopen dialog only has the continue button on it by default.
I am trying to avoid the spool.open method
Nick
nicklewe
12th November 2002, 11:42
Well ...
i've tried the spool.open command and it works ok.
The only problem is when i use execute(print.data) command and nothing else (no rprt or brp commands), the print dialog does not have the cancel button (!).
My script is only:
execute(print.data)
The report has been entered on the session report section.
gfasbender
12th November 2002, 17:07
Can't the user cancel from the Device selection session?
nicklewe
12th November 2002, 17:14
no because the cancel button is not visible.
mark_h
12th November 2002, 18:25
Does this happen on all reports - or is this only on your report? I would think that if ttstpsplopen does not have a cancel button on it(using rprt_open) then I would expect that you may need a newer version of ttstpsplopen. You may want to look at a solution like 129522 - it mentions buttons missing.
Good Luck!
Mark