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.


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



RELATED CONTENT
iSeries PC/Windows Connectivity
How to print RPG output using iSeries Access
How to view source files in the library
User being locked out by Windows share on iSeries
Blocking AS/400 DB2 users
Trouble accessing IFS path from Win2k3 server
How to use an API for adding users to EIM SSO implemenation
Incorrect CCSID on FTP connection from AS/400 to Windows
Remove character limits from domain or users on RMTUSER
Generically send a text file from the IFS via FTP
Send parameters correctly to the browser when creating a PHP page

Connecting to Printers
Creating a remote output printing queue from the AS/400
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?
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


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.




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



iSeries Networking - Printing, Remote Access, TCP/IP
HomeNewsTopicsITKnowledge ExchangeTipsBlogsAsk the ExpertsMultimediaWhite PapersProducts
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




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