Home > Ask the AS/400 Experts > iSeries PC/Windows Connectivity Questions & Answers > Print a PDF file from the iSeries
Ask The iSeries 400 Expert: Questions & Answers
EMAIL THIS

Print a PDF file from the iSeries

Shahar Mor EXPERT RESPONSE FROM: Shahar Mor

Pose a Question
Other iSeries 400 Categories
Meet all iSeries 400 Experts
Become an Expert for this site


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


>
QUESTION POSED ON: 19 January 2006
I'm having trouble with embedded spaces with the STRPCCMD command. The following works when I type it into the Windows start, run box: "C:Program FilesAdobeAcrobat 6.0acrobat.exe /p M:Blueprintssample.pdf"

When I try to type the same string into the PCCMD parameter of the STRPCCMD command, I get an error that the command does not like the space between the "program" and "files".

STRPCCMD works if I just pass the "M:Blueprintssample.pdf", my PC opens the file with Adobe, and I can view the blueprint. But what I am really trying to do is to print the blueprint, so I was hoping to call Adobe Acrobat with the "/p" switch, which would get me one step closer to printing the blueprint.

I hope either you can tell me how to pass a file name with embedded spaces to the STRPCCMD, or perhaps you have a better way to print a PDF file from the iSeries.

>
EXPERT RESPONSE
You can use ftp to create a spool file with the PDF in it. For example:

1. crtprtf mylib/myprtf *usrascii
2. ftp loopback
user password
bin
cd mylib
put mypdf myprtf
quit

This creates a new spool file with the PDF file in it.


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


RELATED CONTENT
iSeries PC/Windows Connectivity
Tools for printing a PDF from IFS on iSeries
File transfer DTF "hooks"
Users not recognized on iSeries when logged in from Windows 2000
Remote access from behind a SonicWall firewall
Setting up personal communications between iSeries and Windows via the internet
Using remote AS400 commands in a Windows environment
How to FTP an IFS file on AS/400
Using a Windows FTP server to pull data from an IFS directory
Using an FTP script to send a text file from AIX to AS/400
Monitoring logins over TCP/IP using FTP

Connecting to Printers
PC/Windows connectivity: Top 10 expert Q&As
Fast guide to Redbooks and guides on printing/output
Problems with new server and PC
iSeries to PC printing on HP printers
Problems printing from the iSeries
Invisible traffic that steals bandwidth
Top five tips for improving network performance
Error during printer emulation
Is there a way to continue output after logging off server?
Why can we no longer print to local printers using V4R5?
Connecting to Printers Research

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary



Search and Browse the Expert Answer Center
Search and browse more than 25,000 question and answer pairs from more than 250 TechTarget industry experts.
Browse our Expert Advice

HomeNewsTopicsITKnowledge ExchangeTipsBlogsAsk the ExpertsMultimediaWhite PapersProducts
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides enterprise IT professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective IT purchase decisions and managing their organizations' IT projects - with its network of technology-specific Web sites, events and magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Reprints  |  Site Map




All Rights Reserved, Copyright 1999 - 2008, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts