[[https://www.revelation.com/|Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community]]
==== OIPI - direct PDF printing (OpenInsight 32-bit Specific) ====
=== At 17 NOV 2003 12:26:08PM Wilhelm Schmitt wrote: ===
{{tag>"OpenInsight 32-bit Specific"}}
After generating a PDF report in OIPI, we open Acrobat Reader for preview of the report. However I would also like to be able to print directly (without the preview).
Does anybody know, if Acrobat Reader has a command line parameter to invoke direct printing? I couldn't find any option.
Regards
Wilhelm
----
=== At 17 NOV 2003 12:26PM Jonathan Bird wrote: ===
If you want to "print directly" why go to the PDF format first? Just print to your printer from OIPI.
J
----
=== At 17 NOV 2003 12:26PM Barry Stevens wrote: ===
The following will print a PDF file to the current printer.
Cmd="C:\Program Files\Adobe\Acrobat 5.0\Reader\AcroRd32.exe" /p /h ':quote(Path:FileName)
utility("RUNWIN",Cmd,-1)
Note:
If Version 6 then utility("RUNWIN",Cmd)
Barry
----
=== At 17 NOV 2003 12:26PM Wilhelm Schmitt wrote: ===
Barry,
thanks a lot for the hint.
Wilhelm
----
=== At 17 NOV 2003 12:26PM Wilhelm Schmitt wrote: ===
Jonathan,
[i]... why go to the PDF format first?[/i]
Because:
1. We must preserve the original document as it is (later on it will also have to be signed electronically)
2. OIPI runs through a dynamic engine on the server, consuming a considerable amount of the server capacity (sometimes up to 100%) and we wouldn't want the server tied up to repeat printing.
3. We don't use the OI user-interface, just a thin client in java (JOI), which can handle multiple threads.
Wilhelm
[[https://www.revelation.com/revweb/oecgi4p.php/O4W_HANDOFF?DESTN=O4W_RUN_FORM&INQID=NONWORKS_READ&SUMMARY=1&KEY=B40E827F9544347485256DE1005FC6D9|View this thread on the forum...]]