Page 1 of 1
RSWRUN return value
Posted: Thu Jan 30, 2003 6:11 am
by kimrichards
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
=> RE: RSWRUN return value
Posted: Thu Jan 30, 2003 8:23 am
by kfleming
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
==> RE: RSWRUN return value
Posted: Thu Jan 30, 2003 8:58 am
by kimrichards
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
===> RE: RSWRUN return value
Posted: Thu Jan 30, 2003 9:20 am
by kfleming
The alternative would be check that the runtime output status file had been updated before proceeding.____Kathleen__R&R Support