Run_Report and preview window (OpenInsight 32-Bit)
At 11 APR 2006 09:09:09PM Pascal Landry wrote:
When executing Run_report("","LIST TABLE FIELD","PDFFILE C:\PDF.PDF"), is there a way to disable the print preview window and still write the file to disk?
Pascal
At 12 APR 2006 08:38AM Pascal Landry wrote:
Documentation shows run_report("","statement", "Options") where as it should show run_report("","statement options")
Pascal
At 12 APR 2006 09:03AM Sean FitzSimons wrote:
Pascal,
The documentation is correct.
Run_Report(rptName,statement,options) is the proper syntax for the subroutine.
What version of OpenInsight are you running?
Sean
At 12 APR 2006 11:54AM Gerald Lovel wrote:
Pascal,
The Set_Printer INIT message uses Param1 to define a capture file and Param5=0 to print directly to a printer without viewing. How these two options are related is not defined in the documentation, so experimentation is required. Run_Report is hard-wired in its INIT capabilities.
An enhancement request exists to divorce the OIPI engine from the Windows event context, which would enable background printing on remote engines. However, I believe that the "it's an OCX issue" objection stands in the way of this improvement. To clarify your question: do you want to suppress the interface display when capturing a report, or do you want the report capture to run outside of event context? Or, are you just looking for documentation about how Run_Report uses the Set_Printer INIT options?
At 12 APR 2006 02:27PM Pascal Landry wrote:
I'm using OI7.2.1.
All I know is that if I use it as documented then it doesn't work.
If I use it "LIST Table Field PDFFILE 'c:\file.pdf'" it does work.
Pascal
At 12 APR 2006 02:54PM Bill Reynaldos wrote:
Pascal -
Hi. I just ran the following from the System Monitor in one of my 7.2.1 systems and it worked as expected.
run run_report "","LIST MODELS","PDFFILE C:\PASCAL.PDF"
You might want to try reapplying the upgrade just to see it it makes a difference.
Bill