How do I avoid the printer-status-window (None Specified)
At 10 FEB 1999 10:34:29AM Celest Celest wrote:
Hi
How do I avoid the printer-status-window using EXECUTE:
print=Repository('EXECUTE','ACCOUNT*OIREPORT*RDLAYOUT*TEST.RPT','',0)
Is there a setting that don't launch the printer-status-window ?
Regards
Bo Follaug
At 10 FEB 1999 05:37PM Scott Kearney wrote:
Bo,
I assume you mean the "Print" window, at which you need to click on OK to print. There's no way to get rid of that using the Repository('EXECUTE' … etc. ) command; if you want to do that, use the Utility('RUNWIN','REPORTER /command line switches') function.
Here's an example from the Reporter help (the "Starting Reporter from the command line" section) with a set of command line switches as an example:
C:\OINSIGHT\REPORTER.EXE /AP=DEMO /UN=DEMO /REP=1 /PV=1 /QU=1 /RP=REPORT.RPT
In your case, or at least in what I think is your case, you'd change /PV=1 to /PR=1, which means it will just print right away.
Let me know if this helps
-Scott
Revelation
At 11 FEB 1999 10:12AM Chris Revelation wrote:
Celest -
I'm not aware of a way to disable the print dialog window using REPOSITORY (EXECUTE…). As Scott mentioned, you are probably better off using the UTILITY (RUNWIN…) command.
Here is a quick example of how to use the UTILITY (RUNWIN…) command to print a report as quickly as possible, without any dialog boxes impeading your way:
Create a quick form with a button, and put the following code in the click event of that button:
RetVal=UTILITY("RUNWIN",".\REPORTER.EXE /AP=MYAPP /UN=MYNAME /RE=1 /BA=1 /PR=1 /QU=1 /RP=MYREPORT.RPT")
The important parameter in this code is the /BA. This disables the "Print" dialog box. The "Print Status" box will still displayed, but only for a very brief time.
The rest of the parameters are listed in Revelation Reporter online help. From the Help menu do a search for "Starting Revelation Reporter form the Command Line". These commands are very helpful, so I would recommend becoming familiar with them.
One note of caution: there is an error in the online documentation. The /REP command (which specifies if the report is located in the Repository or not) is incorrect. The command should be /RE=1 for reports stored within the repository, and /RE=0 (zero) for reports stored outside the Repository.
If you have any other questions, just ask.
-Chris
Revelation Software
At 01 MAR 1999 10:03AM Celest Celest wrote:
Thanks, Chris and Scott !
It works greate now.
Now, if just I could dedicate the report to a specific printer.
Regards Bo