[[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 and Printing to a PDF File (OpenInsight 32-bit Specific) ====
=== At 27 JAN 2004 11:59:08PM Tony Lillyman wrote: ===
{{tag>"OpenInsight 32-bit Specific"}}
I'm just trying to send a report to a PDF file using OIPI V7
Can anyone assist.
I've read the OIPI.HLP File and its as "clear as mud"!
Printing the report to the printer works file.
I am setting the First Parameter(FileName) in the Set_Printer(INIT..)
a follows ..
FileName (Reports Description)
Load RTF RTF filename to load (Null)
Export Format (6)
0=No export
1=RTF
2=HTML
3=DHTML
4=HTML with pages
5=DHTML with pages
6=PDF !!!!!
Export File Name (C:\Report.PDF)
File name for the export
But its not working!
What am I doing wrong?
Many thanks
Tony
----
=== At 28 JAN 2004 01:37AM Donald Bakke wrote: ===
Tony,
Were you ever successful with 4.1.3 or are you now just trying this? Did you copy the source code from the Help file or look at this [url=http://www.revelation.com/knowledge.nsf/07dbcbabb6b3e379852566f50064cf25/fb9fa2a4bb1e5ff085256aff007a8659?OpenDocument]Knowledge Base article[/url]? (BTW, I think the Help comes from this article but I know the code here works.)
dbakke@srpcs.com
[url=http://www.srpcs.com]SRP Computer Solutions, Inc.[/url]
[img]http://www.srpcs.com/srpicon1.gif[/img]
----
=== At 28 JAN 2004 03:39AM Colin Rule wrote: ===
Looks OK, I also set the following
PRINTSETUP=5
PRINTSETUP=1
Perhaps it may make a difference.
Also, something I have missed in the past is the filename to save as may be returned with *.pdf or *.PDF, and my test only checked for the uppercase version, and therefore failed to pass the parameters.... just a though.
----
=== At 31 JAN 2004 01:35AM Bob Silverstein wrote: ===
I use this script successfully everyday. Should work for you (famous last words!)
PARAM1='
PARAM5='
IF DIR('G:\') THEN DRIVE=G' ELSE DRIVE=C'
PARAM1='
PARAM1=ORDER.NO
PARAM1=6
PARAM1=DRIVE : ':\EMAILS\FASTSIGNS invoice ' : ORDER.NO : '.PDF'
PARAM2=Printing combined invoices for ' : {X_COMPANY}
PARAM2=Previewing combined invoices for ' : {X_COMPANY}
PARAM5='
PARAM5=3
PARAM5=0
PARAM5=7
PARAM5=-1
A=SET_PRINTER("INIT", PARAM1, PARAM2, '', '', PARAM5 )
The key is PARAM1. This generates the PDF automatically in addition to opening the regular print window. I then attach the PDF to a fax or email. A note of caution. A third-party (not Adobe) makes the PDF and certain ISP's like, you guessed it, AOL corrupt the PDF. You can avoid this by using Acrobat but that is a few extra keystrokes.
Good luck.
----
=== At 01 FEB 2004 03:07AM Tony Lillyman wrote: ===
Thanks for all your assistance
From testing ...
It appears I HAVE TO select to activate PREVIEW
before the PDF will create????
PrintSetup=2 ;* Print Preview Maximised
PrintSetup=3 ;* Set Start Mode (Print Preview Hidden)
If I don't set the Preview Paramaters, the report goes to the
default printer.
Well, you live and learn!
Tony
[[https://www.revelation.com/revweb/oecgi4p.php/O4W_HANDOFF?DESTN=O4W_RUN_FORM&INQID=NONWORKS_READ&SUMMARY=1&KEY=DF7B8977A7DC342585256E29001B6346|View this thread on the forum...]]