× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Bob,

I used an open source service pgm (thanks again Scott) called PRTSTMFR4 along with HTTPAPI. I used HTTPAPI to get the PDF and then run PRTSTMF command in the same rpg pgm:

cmdstring = 'prtstmf stmf(' + q + %trim(stmf) + q + ') ' +
'outq(' + %trim(outq) + ')';
monitor;
callp qcmdexc(cmdstring:%len(cmdstring)); // Print PDF Stmf
on-error;
return;
endmon;

Greg

-----Original Message-----
From: RPG400-L [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Bob Cagle
Sent: Wednesday, September 19, 2018 3:00 PM
To: RPG programming on the IBM i (AS/400 and iSeries) <rpg400-l@xxxxxxxxxxxx>
Subject: RE: How to automatically print webpage?

Steve & Greg - yes, I'm interested in which products you're using to actually print the PDFs?

Thanks

Bob Cagle
IT Manager
Lynk

-----Original Message-----
Steve M

We have a product running, on a Windows server, where you place a PDF in a folder and it is automatically printed at a defined printer. You can control printing aspect as well (orientation, duplex, etc...).
If you can get the PDF detached from the email and would like the information on the software, just reply back and I'll post it.
Works great for us; we route PDF invoices to different folders, then the software duplex prints with hands-off at different printers, since duplex is not a PDF attribute but a print time attribute.

Steve Meisinger

-----Original Message-----
Greg Wilburn

At one point I did this with Wayfair packing slips... until they changed how they produced the PDF.

I used HTTPAPI to "Get" the URL (sent via EDI) and saved it on my IFS using a meaningful name (i.e. the trading partner's order number .PDF). It stayed on the IFS until we shipped the order. At that point I used another utility (discussed here a few days ago) to send the PDF direct to an PDF-capable printer.

Like I said... this worked until the trading partner decided to change the software they used to create the PDF. The changes they made required the PDF be "opened" in an application where the PDF print driver could be used.

I think most PDFs can simply be sent direct to the printer.
--
This is the RPG programming on the IBM i (AS/400 and iSeries) (RPG400-L) mailing list To post a message email: RPG400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at https://archive.midrange.com/rpg400-l.

Please contact support@xxxxxxxxxxxx for any subscription related questions.

Help support midrange.com by shopping at amazon.com with our affiliate link: http://amzn.to/2dEadiD

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.