What error are you getting?
Also, PRNTRB2 requires 20 parameters, PRINTRB only 19, so you may need to change that part. Also, you may not need to re-connect to the db if that information is stored in the Report itself. It is useful when you have to run a report on a 'copy' db on a different server, as in a dummy database.
The Runtime-Parameter is set within the report, not in the code. You would have to be able to start ReportBuilder and edit the report to do this. The enclosed MSWord.doc is a screen shot of what that should look like. If you cannot edit the report, you are out of luck here.
The enclosed file is a PDF of the Progress Report Builder Deployment Guide. It is on your electronic documentation disk. In as much as you are running RB, I am assuming you are running a legal version and should have this somewhere in your system anyway. This is the latest from PSDN. If you are not a member, join. I have found it very valuable.
If you are planning to upgrade to OE10, remember that while you can still run RB you will not be able to change or edit any of the reports. To get around this problem we are setting up a PC to hold the report library files under version 9.1d9 until all of our reports have been converted to Crystal Reports. And if you are planning to upgrade, dump RB and switch to Crystal Reports XI now. There is support from progress for the interface and some very good examples. Also, depending where you are, Business Objects/Crystal Reports have a very large user group base. You can find out more about that at
www.businessobjects.com .
A very important note:
There is an option "NO-WAIT-STATE" that could cause real trouble. This option, when set to YES, tells RB to run in the background. This will allow you to move on in your program. The problem is when you have a report that has as a filter. "PrintRecord = yes".
Then after the report is run in your program you say:
Code:
FOR EACH RECORD WHERER PrintRecord = yes.
ASSIGN PrintRecord = NO.
END.
What will happen if the report is running in the background is that Progress will 'run ahead' of the report thus dropping records you wish to see. EVEN IF YOU DID A SCREEN SHOT FIRST. So normally I have that set to NO.
Where are you located?
Dennis Voegler
System Manager
2820 Dorr Avenue Suite 230
Fairfax, Virginia 22031
703.204.9000
703.204.1557 (Fax)