Join The Works program to have access to the most current content, and to be able to ask questions and get answers from Revelation staff and the Revelation community

At 01 JUN 2006 01:39:38PM Richard Hunt wrote:

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?


At 01 JUN 2006 04:02PM Gerald Lovel wrote:

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


At 01 JUN 2006 04:26PM John Bouley wrote:

Why can't you make the printing of Invoices a separate process from Emailing? or have the Email happen right after the print?


At 01 JUN 2006 08:43PM Bob Carten wrote:

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


At 02 JUN 2006 12:03AM William Ng wrote:

What is ATLAS frame work and where can i download it?


At 02 JUN 2006 11:17AM Gerald Lovel wrote:

William,

Inquiries regarding ATLAS may be addressed to me directly at glovel@atlaswares.com. 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


At 02 JUN 2006 01:27PM Richard Hunt wrote:

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.


At 06 JUN 2006 07:19PM Richard Hunt wrote:

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.


At 06 JUN 2006 07:32PM [url=http://www.sprezzatura.com]The Sprezzatura Group[/url] wrote:

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?

The Sprezzatura Group

World leaders in all things RevSoft

View this thread on the Works forum...

  • third_party_content/community/commentary/forums_works/111d4f586dd8907a8525718000610380.txt
  • Last modified: 2023/12/30 11:57
  • by 127.0.0.1