The OVRPRTF syntax looks like...

OVRPRTF FILE(QPDSPFFD) DEVTYPE(*AFPDS) +
TOSTMF(&STRFILE) WSCST(*PDF)

-----Original Message-----
From: Needles,Stephen J
Sent: Friday, October 15, 2010 9:24 AM
To: 'Midrange Systems Technical Discussion'
Subject: RE: Forms printing

Mike...

Part of the answer might be to use the OVRPRTF command to convert the output to a PDF on the IFS.

Follow up that process by using the QtmmSendMail API to email the result to the user of your choice.

Then create a rule in your customer's email program to open the email from specific user and open the applicable PC application on receipt. From this point, however, the user will need to actively choose to print the document.

Just thinking out-loud, but after the PDF is created on the IFS, couldn't we use STRPCCMD to execute a command on the user's PC (providing they are inside your network) and instigate a string of PC commands to cause the print to be routed to the PC/Network Printer?

Just food for thought.

Sample codelet for a CL to execute a PC command:

CHGVAR VAR(&PATH) VALUE('C:\Windows\Media\Windows +
XP Shutdown.wav')
CHGVAR VAR(&CMD) VALUE('rundll32 +
shell32,ShellExec_RunDLL ' *BCAT &PATH)
STRPCCMD PCCMD(&CMD) PAUSE(*NO)

steve

-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Mike Cunningham
Sent: Friday, October 15, 2010 8:52 AM
To: Midrange Systems Technical Discussion
Subject: RE: Forms printing

Change of direction a little on the topic. But does anyone know of a way to print a PDF document without user interaction? I have an existing RPG app that writes a spool file with an overlay and creates an AFP print file. I then have a tool that will convert that spool file to PDF and currently send the PDF to the user who has to open it and print it (sometimes). The user wants to sometimes email, sometimes fax and sometimes print and mail the form. How they get the PDF in an email and forward to the vendor, or email to our fax server as an email or open it and print it. I would like to try and ask them when they request the print what they want to do with it and directly email to the vendor or the fax server or direct the PDF to a printer in the user office. I know one option would be to get an AFP capable printer for this office but the use might expand to possibly dozens of other offices. We have a big Xerox printer connected to a Sun server and on that we can FTP to the server and it will automatically print the document. I might also be able to setup a Windows PC to accept incoming commands from the iSeries and FTP to the PC then send a command to print the PDF to the printer but I really would prefer to do this without that complexity added and just go direct form the iSeries to the printer.

-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Charles Wilt
Sent: Friday, October 15, 2010 9:36 AM
To: Midrange Systems Technical Discussion
Subject: Re: Forms printing

Overlays are _ALWAYS_ full page...

If you want just pieces of pages, you need to create page segments instead of overlays.

HTH,

Charles


On Fri, Oct 15, 2010 at 1:06 AM, PaulMmn <PaulMmn@xxxxxxxxxxxxx> wrote:
Overlays can be full page bitmaps as described above, or they can be
smaller pieces (ie your logo/letterhead) that you position on the page
wherever you need it.  This doesn't need to be a full page bitmap.
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/midrange-l.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.