Using OI ver 7.1.1, Adobe ver 6. How do you print multiple PDF documents?
I really want to print multiple billing invoices (thru OIPI), which I can do. What I also want to do is to print, right behind, the billing invoice… the attachments (PDF documents) that are required for that billing invoice.
Basically I want invoice 1 to print, then attachments for invoice 1. Invoice 2 to print, then attachments for invoice 2… etc.
Printing PDF documents appear to be a real pain. I am using "SET_PRINTER", INIT and TERM, for the invoices. I just can not squeeze the attachments between the invoices. Would be nice if OIPI can print PDF documents. Is there a way?
Viewing the batch of printed invoices is equally hideous in OI, as the INIT and TERM reinitializes the viewer with each invoice, so only the last invoice in the batch can be viewed, although they all display temporarily. My audit report is done in RList, so that it prints as a continuous report with page breaks for each invoice, but only one INIT and TERM.
I am guessing that you are planning to email the invoices and audit reports. Then maybe some naming convention could be used to capture the invoice and the audit report. Since the invoice is native OIPI and the audit report is RList, they would have to come out as two documents instead of one.
The ATLAS framework has a built-in email feature to send a report as it is generated. Here, two reports are required and so two emails would be generated. Logically you would like to send this as a single email, preferrably with one attachment file. Let me know if you figure this one out!
Gerald
Why can't you make the printing of Invoices a separate process from Emailing? or have the Email happen right after the print?
A down and diry way to print a pdf is to use
filename=c:\temp\test.pdf'
call Utility("RUNWIN", "cmd /c start print " : filename )
a better way is to use ShellExecute.
Finally, It looks like you can use the the PDF activex objects that are installed with the reader, control them using OI's OLEInstance and OLEMethod functions
HTH
Bob
What is ATLAS frame work and where can i download it?
William,
Inquiries regarding ATLAS may be addressed to me directly at [email protected]. ATLAS is a non-commercial development framework which adds many new capabilities to OI, along with some old AREV-like features which OI lacks. ATLAS has three main characteristics:
* ATLAS tools are data-defined, inheritable, locally modifiable, and extensible. A modular DEPOSITORY inheritance scheme stores design definitions, and developers may extend this feature to their own objects.
* ATLAS componentizes programs into processes which are reentrant and support multi-threading through remote engines. Processes replace large parts of application programming with simple, uncompiled data definitions.
* ATLAS provides a prebuilt Rapid Development Framework with a broad selection of data management utilities for things like key change, column copy, metaphonic indexes, spell check, promoted events, access security, etc.
ATLAS beta 1 was on the WORKS disk, or email me and I will provide a download address. Beta 2 with source code will be available in July.
Gerald
Here is my code…
RESULT=SEND_MESSAGE(OLE_PDF_FOCUS,'LOADFILE',PATH)OLE_OBJECT=OLECREATEINSTANCE('pdf.pdfctrl.6')RESULT=OLECALLMETHOD(OLE_OBJECT,'PrintPagesSilent')I have been able to create an OLE so as to display the PDF. I just can not get the "print" part to work.
LOADFILE works, the PDF displays.
OLECREATEINSTANCE works, I do get "" in the OLE_OBJECT variable.
The OLECALLMETHOD does nothing. No print.
Here is my code…
RESULT=SEND_MESSAGE(OLE_PDF_FOCUS,'LOADFILE',PATH)
OLE_OBJECT=OLECREATEINSTANCE('pdf.pdfctrl.6')
RESULT=OLECALLMETHOD(OLE_OBJECT,'PrintPagesSilent')
I have been able to create an OLE so as to display the PDF. I just can not get the "print" part to work.
LOADFILE works, the PDF displays.
OLECREATEINSTANCE works, I do get "" in the OLE_OBJECT variable.
The OLECALLMETHOD does nothing. No print.
Richard
You're getting a little confused.
OLECREATEINSTANCE will create a new PDF container so there is nothing to print. It seems you're trying to send a print command to the ole control that already exists?
World leaders in all things RevSoft