 |
|

Scheduling R&R Reports to
Print to PDF-eXPLODE™
You can schedule R&R Report Writer reports to print to PDF-eXPLODE by using Windows Scheduled Tasks to launch the R&R Runtime program. Be sure to save the report in R&R with the printer set to PDF-eXPLODE, and then follow these steps to schedule the report.
Create a Runtime Input file
- Right-click the Windows Start menu and selecting Explore.
- Navigate to the folder where your R&R report is saved. For example, if your R&R report is saved as:
C:\rrwreports\examples\myreport.RRW
Then you would change to the folder named C:\rrwreports\examples.
- Right-click in a blank area of the window and select New, Text Document.
- Enter the following commands to tell R&R which report to run and which printer to use.
To send a report to the printer saved with the report, enter the following three commands each beginning on a new line. Note that RI_REPORT specifies the full pathname to the report, RI_PRINTER specifies the output destination and RI_STATUS=T causes R&R to display a status window during report generation:
RI_REPORT=C:\rrwreports\examples\myreport.RRW
RI_PRINTER=P
RI_STATUS=T
- Select File, SaveAs from the Notepad menu. Enter the same name as your report except type the filename extension .RRS. For example, type:
myreport.RRS
Create a Scheduled Task
- From the Windows Start menu, select Programs, Accessories, System Tools, Scheduled Tasks.
- Right-click in a blank area of the window and select New, Scheduled Task from the menu.
- Right-click the item just created, which will be named “New Task”, and select Rename. Type the desired name and press Enter. (Note: the initial item name “New Task” may be followed by a number, e.g. “New Task 2”, if there is already another item named “New Task”).
- Right-click the same item again and select Properties from the menu.
- On the Task tab, enter information about the scheduled task in the fields as follows:
- Run: Enter a command such as the following example, including the quotation marks (all on one line). An explanation of the command follows:
"C:\Program Files\ReportWorks\rrwrun.exe" /T"C:\rrwreports\examples\myreport.RRS" /O"C:\rrwreports\examples\myreport.OUT"
"C:\Program Files\ReportWorks\rrwrun.exe" is the name of the R&R runtime program. “rrwrun.exe” is the Xbase edition and “rswrun.exe is the SQL Edition. Depending on which version of R&R you have and where you installed it, the pathname “C:\Program Files\ReportWorks\” may need to be changed.
The R&R runtime program name is followed by a space and then /T"C:\rrwreports\examples\myreport.RRS", which is the name of the R&R Runtime input text file.
The runtime input text file is followed by a space and then /O"C:\rrwreports\examples\myreport.OUT", which is the name of the R&R Runtime output text file.
- Run as: In this field, enter the name of the computer followed by a backslash and then the name of the user account. For example, enter:
COMPUTERNAME\username
- Run only if logged in: You should leave this unchecked so that Windows will log in if required. If left unchecked, you will be prompted to enter a password when you click OK. This is the password you use when you log in to Windows. A password is required for a scheduled task to run.
If left unchecked, you will not be prompted for a password and if the computer is already logged in at the scheduled time, then the task will run.
- Enabled: Leave this option checked. If you later want to temporarily disable the scheduled task but not delete it, uncheck this option.
- On the Schedule tab, enter the desired schedule for running the report.
- Click OK to save the scheduled task.
Testing a Scheduled Task
- From the Windows Start menu, select Programs, Accessories, System Tools, Scheduled Tasks.
- Right-click a task and select Run from the menu.
- Watch for the R&R status window to display.
- Look for the output, either on the printer or the specified output file.
- If an error occurs, most errors will be documented in the Runtime output file. Continuing with the example above, you would open the file named C:\rrwreports\examples\myreport.OUT.
| |
# # #
For more information, contact
.
R&R Report Writer is a registered trademark of Liveware Publishing, Inc.
|