RSWRUN return value

Meeting place for R&R customers and clients to share tips and ideas. Post your questions, messages or problems here.
Post Reply
kimrichards
Posts: 8
Joined: Tue Oct 10, 2017 12:44 pm

RSWRUN return value

Post by kimrichards » Thu Jan 30, 2003 6:11 am

I am running a set of reports to WIN2PDF from within a VB program. I am making use of rswrun.exe command to run the selected batch of reports in a loop. However to get the system to print the reports to WIN2PDF with a predefined name I insert a regwrite command to set the name of the PDF just before executing the report. __The problem that I am facing is that the system is not waiting for the report to complete before resetting the regwrite to the next reports name. I am having multiple reports running at the same time. __Is RSW able to return a value once a report is complete so the system know it can move on to the next report? ____Thanks__Kim

kfleming
Posts: 5795
Joined: Tue Oct 10, 2017 12:44 pm

=> RE: RSWRUN return value

Post by kfleming » Thu Jan 30, 2003 8:23 am

If you use the OCX interface in your VB program rather than calling RSWRUN directly you can set the action property of the R&R control to 1 which means that the next line of Visual Basic procedure code will not execute until the report is completed.____Kathleen__R&R Support

kimrichards
Posts: 8
Joined: Tue Oct 10, 2017 12:44 pm

==> RE: RSWRUN return value

Post by kimrichards » Thu Jan 30, 2003 8:58 am

We were having problems with the OCX running on some PC^s , either the reports not running at all , rswrun.exe GPF^s etc. So I have resorted back to the control table and RSWRUN command. Is using the OCX the only way around this? ____Thanks__Kim

kfleming
Posts: 5795
Joined: Tue Oct 10, 2017 12:44 pm

===> RE: RSWRUN return value

Post by kfleming » Thu Jan 30, 2003 9:20 am

The alternative would be check that the runtime output status file had been updated before proceeding.____Kathleen__R&R Support

Post Reply