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

At 27 JAN 2004 11:59:08PM Tony Lillyman wrote:

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 Knowledge Base article? (BTW, I think the Help comes from this article but I know the code here works.)

dbakke@srpcs.com

SRP Computer Solutions, Inc.


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

View this thread on the forum...

  • third_party_content/community/commentary/forums_nonworks/df7b8977a7dc342585256e29001b6346.txt
  • Last modified: 2023/12/28 07:40
  • by 127.0.0.1