|
Hi Terry If you have version 5 or above of Acrobat Reader installed on the PC then you can use STRPCO/STRPCCMD or RUNRMTCMD to achieve what you want. You need to call the ACRORD32.EXE passing it input switches /p and /h followed by the qualified name of the document to be printed. For example: C:\Program Files\Adobe\Acrobat 5.0\Reader\AcroRd32.exe /p /h X:\ifspath\document.pdf You may find it easier to encapsulate this into a *.BAT file such as: @ECHO OFF SET ACROCMD="C:\Program Files\Adobe\Acrobat 5.0\Reader\AcroRd32.exe" /p /h SET PDFFILE="C:\Documents and Settings\masonj02\My Documents\freelancingguide.pdf" %ACROCMD% "%PDFFILE%" You would need to ensure that either your IFS is mapped to a network drive for the users PC, or you qualify the full server path to the IFS document. Hope that helps Best regards Jonathan www.astradyne-uk.com -----Original message----- From: "Terry Nonamaker" TNonamaker@xxxxxxxxxxxxxxxx Date: Tue, 26 Oct 2004 16:00:48 +0100 To: "'RPG programming on the AS400 / iSeries'" rpg400-l@xxxxxxxxxxxx Subject: RE: Printing a pdf document from ile/cl > Thank you for your response > > When the Invoice is created, the path data and page # is stored. > > We use a product called MRC, of which creating pdf's is one of it's > abilities. > > The reason for re-printing would be that the customer says .... > .... we didn't get it in the mail, e-mail, or fax ... could you re-send it. > .... at this time we do not store the means to totally re-create that > .... particular invoice after a given length of time. > > So, this would not happen very often, but would be quite useful. > ... if I don't find a relatively easy solution, that is fine > ..... it was just a shot in the dark. > > Thanks > > Terry Nonamaker > > -----Original Message----- > From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] > On Behalf Of daparnin@xxxxxxxxxxxxxxxxxx > Sent: Tuesday, October 26, 2004 6:58 AM > To: rpg400-l@xxxxxxxxxxxx > Subject: RE: Printing a pdf document from ile/cl > > > > > > What is the source of your invoice data and what was used to create the PDF > in the first place? Would it be any easier to print it either while you're > generating the PDF or provide a mechanism to regenerate a spool file using > the same methodology that was used to create the PDF? How many will need > to be printed and how often will this happen? Since you mentioned the page > range how will it be known which pages to print? > > On the surface this sounds like an occasional job for someone at a PC. If > they are making the selection from a green screen maybe you could submit a > remote command to their PC to launch Acrobat with the IFS file? > > > Dave Parnin > Nishikawa Standard Company > Topeka, IN 46571 > daparnin@xxxxxxxxxxxxxxxxxx > > > > > > > Terry Nonamaker > > <TNonamaker@exteri To: RPG programming on > the AS400 / iSeries > orwood.com> > <rpg400-l@xxxxxxxxxxxx>@SMTP@CTB > Sent by: cc: (bcc: David A > Parnin/Topeka/NISCO/SPCO) > rpg400-l-bounces@m Subject: RE: Printing a pdf > document from ile/cl > idrange.com > > > > > > 10/25/2004 07:04 > > PM > > Please respond to > > RPG programming on > > the AS400 / > > iSeries > > <rpg400-l@midrange > > .com> > > > > > > > > > Yes, that would be the easier way, and we already do that. > > In this case the document is an Invoice that is archived down through > several directories/folders and is findable but takes time. > > Programmatically, I know where it is. I just want to select it and do it. > ... No confusion for the user. Just open and print. > > Thanks > > Terry Nonamaker > > -----Original Message----- > From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] > On Behalf Of Eric A. Wolf > Sent: Monday, October 25, 2004 4:11 PM > To: RPG programming on the AS400 / iSeries > Subject: Re: Printing a pdf document from ile/cl > > If the data is staying in a folder in the IFS and the naming convention was > such that it would describe what document it was, couldn't you use a shared > folder so the user's could just click on the .pdf document to open it up? > Then you could just print it from Adobe... > > Did I over simplify this? I am already doing this with .CSV's that I am > creating and I think it should work for .PDF's. > > Eric A. Wolf > > > ----- Original Message ----- > From: "Terry Nonamaker" <TNonamaker@xxxxxxxxxxxxxxxx> > To: "'RPG programming on the AS400 / iSeries'" <rpg400-l@xxxxxxxxxxxx> > Sent: Monday, October 25, 2004 3:48 PM > Subject: RE: Printing a pdf document from ile/cl > > > > Thanks for the response, but I may have miss-stated my objective > > > > The document I want to print has already been created as a pdf and put > into > > the ifs. We already have a tool to put it there. > > > > What I would like to do is re-print that pdf, possibly weeks later, but > get > > my selection data from a program and then pass the proper info to print > it > > through acrobat or distiller. Or may there is a way to just point it to > the > > printer it needs to go to, which would be an windows type printer. > > > > Sorry if I confused the issue. > > > > Terry Nonamaker > > > > -----Original Message----- > > From: rpg400-l-bounces@xxxxxxxxxxxx > [mailto:rpg400-l-bounces@xxxxxxxxxxxx] > > On Behalf Of Jim Franz > > Sent: Monday, October 25, 2004 3:21 PM > > To: RPG programming on the AS400 / iSeries > > Subject: Re: Printing a pdf document from ile/cl > > > > it's not easy... there are several tools on the market (very reasonable > > price) > > if you have the software product Infoprint Server from ibm you have the > > commands. > > I use a utility from Gumbo Software. Brad Stone's tool site has another. > > If you want to get into java from ile there is some stuff out there. > > Be sure you match what kind of spool file with the tools. It makes a huge > > difference > > if printing *afpds spool files, *ipds spool files, *scs (standard default > > spool file). > > jim > > ----- Original Message ----- > > From: "Terry Nonamaker" <TNonamaker@xxxxxxxxxxxxxxxx> > > To: <rpg400-l@xxxxxxxxxxxx> > > Sent: Monday, October 25, 2004 5:45 PM > > Subject: Printing a pdf document from ile/cl > > > > > > Is there a way to print an existing pdf document from the ifs using ile > or > > cl program? > > > > > > > > If so, what commands do you use to do that? > > > > . Invoking acrobat to print or something like that? > > > > . could I pass it a page range? > > > > > > > > This may be very easy, but I can't seem to find anything that actually > tells > > me what commands to execute. > > > > > > > > Thanks > > > > > > > > Terry Nonamaker > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Terry Nonamaker > > System Administrator > > > > Exterior Wood Inc. > > > > > < > http://maps.yahoo.com/py/maps.py?Pyt=Tmap&addr=2685+Index+St&csz=Washougal% > > 2C+Wa+98671&country=us> 2685 Index St > > Washougal, Wa 98671 > > > > > > <mailto:tnonamaker@xxxxxxxxxxxxxxxx> tnonamaker@xxxxxxxxxxxxxxxx > > > > > > tel: > > fax: > > mobile: > > > > (360)838-2234 > > (360)838-8754 > > (503)314-0645 > > > > > > > > > > > > <http://www.plaxo.com/signature> Signature powered by Plaxo > > > > <http://www.plaxo.com/signature> Want a signature like this? > > > > > > <https://www.plaxo.com/add_me?u=25770438625&v0=1260782&k0=1017073662> > Add > > me to your address book... > > > > > > > > > > > > > > > -------------------------------------------------------------------------- > -- > > ---- > > > > > > > -- > > > This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing > list > > > To post a message email: RPG400-L@xxxxxxxxxxxx > > > To subscribe, unsubscribe, or change list options, > > > visit: http://lists.midrange.com/mailman/listinfo/rpg400-l > > > or email: RPG400-L-request@xxxxxxxxxxxx > > > Before posting, please take a moment to review the archives > > > at http://archive.midrange.com/rpg400-l. > > > > > > > > > > > > -- > > This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing > list > > To post a message email: RPG400-L@xxxxxxxxxxxx > > To subscribe, unsubscribe, or change list options, > > visit: http://lists.midrange.com/mailman/listinfo/rpg400-l > > or email: RPG400-L-request@xxxxxxxxxxxx > > Before posting, please take a moment to review the archives > > at http://archive.midrange.com/rpg400-l. > > > > > > > > > > > > > > -- > > This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing > list > > To post a message email: RPG400-L@xxxxxxxxxxxx > > To subscribe, unsubscribe, or change list options, > > visit: http://lists.midrange.com/mailman/listinfo/rpg400-l > > or email: RPG400-L-request@xxxxxxxxxxxx > > Before posting, please take a moment to review the archives > > at http://archive.midrange.com/rpg400-l. > > > > > -- > This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list > To post a message email: RPG400-L@xxxxxxxxxxxx > To subscribe, unsubscribe, or change list options, > visit: http://lists.midrange.com/mailman/listinfo/rpg400-l > or email: RPG400-L-request@xxxxxxxxxxxx > Before posting, please take a moment to review the archives > at http://archive.midrange.com/rpg400-l. > > > > > > -- > This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list > To post a message email: RPG400-L@xxxxxxxxxxxx > To subscribe, unsubscribe, or change list options, > visit: http://lists.midrange.com/mailman/listinfo/rpg400-l > or email: RPG400-L-request@xxxxxxxxxxxx > Before posting, please take a moment to review the archives > at http://archive.midrange.com/rpg400-l. > > > -- > This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list > To post a message email: RPG400-L@xxxxxxxxxxxx > To subscribe, unsubscribe, or change list options, > visit: http://lists.midrange.com/mailman/listinfo/rpg400-l > or email: RPG400-L-request@xxxxxxxxxxxx > Before posting, please take a moment to review the archives > at http://archive.midrange.com/rpg400-l. > > > > > > > -- > This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list > To post a message email: RPG400-L@xxxxxxxxxxxx > To subscribe, unsubscribe, or change list options, > visit: http://lists.midrange.com/mailman/listinfo/rpg400-l > or email: RPG400-L-request@xxxxxxxxxxxx > Before posting, please take a moment to review the archives > at http://archive.midrange.com/rpg400-l. > Jonathan Mason www.astradyne-uk.com
As an Amazon Associate we earn from qualifying purchases.
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.