Sean,
Thanks, I was able to get those and provide my
Operations manager a copy - hopefully I get this for the New Year . . .
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Porterfield, Sean
Sent: Monday, December 17, 2012 8:08 AM
To: RPG programming on the IBM i / System i
Subject: RE: Spool to Image, QIMGCVTI or QimgCvtImg Example.
I don't see it documented in the V7R1 InfoCenter for CPYSPLF, but these two links reference the feature:
http://www-912.ibm.com/s_dir/SLKBase.nsf/be466e84249e5ef286257742004a40e4/86dd3e9145d160c286257888006ef8a1?OpenDocument
http://www-912.ibm.com/s_dir/SLKBase.nsf/1ac66549a21402188625680b0002037e/2bd8020c496ae912862575f400640da6
To convert the spooled files to Portable Document Format (PDF), you must download and apply 7.1 PTF SI43471 or a superseding PTF and you must also install licensed program 5770TS1, *BASE and Option 1, "IBM Transform Services for i" and "Transforms - AFP to PDF Transform"
--
Sean Porterfield
-----Original Message-----
From: Gary Thompson
Sent: Monday, December 17, 2012 09:23
To: RPG programming on the IBM i / System i
Subject: RE: Spool to Image, QIMGCVTI or QimgCvtImg Example.
Jorge,
I am curious about your example CPYSPLF command.
Attempting same on my system, however, I am not able
to specify *TOSTMF as the TOFILE:
Value '*TOSTMF ' for parameter TOFILE not a valid name.
In addition, I do not see the TOSTMF or WSCST parameters ???
P.S. System is V7R1M0
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Jorge Merino
Sent: Sunday, December 16, 2012 2:58 PM
To: RPG programming on the IBM i / System i
Subject: RE: Spool to Image, QIMGCVTI or QimgCvtImg Example.
I found that I can Copy a spool file to a GIF image using a *WSCST object with V7R1 very easily.
CPYSPLF FILE(QSYSPRT) TOFILE(*TOSTMF) SPLNBR(*LAST) TOSTMF('/home/jmerinoh/mygif.gif') WSCST(QWPGIF).
It also can be used to create TIFF images with QWPTIFFPB and QWPTIFFG4 *WSCST objects as well.
I'm still would be interested on an example to create an image QIMGCVTI or QimgCvtImg APIs if possible, so I'm looking to other Image Types such BMP or JPG.
Thanks all.
Jorge
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Jorge Merino
Sent: Sunday, December 16, 2012 2:25 PM
To: rpg400-l@xxxxxxxxxxxx
Subject: Spool to Image, QIMGCVTI or QimgCvtImg Example.
Hi guys!
I have a little project to generate text images and attach them into emails. So my options are pretty narrowed down to:
a) Have ILE RPG to write an image stream directly into IFS.
b) Write an Spool File and convert it to an image.
So, I was looking into the possibilities of QIMGCVTI/QimgCvtImg API, does somebody have an example to share? Or any suggestion?
Thank you all.
Jorge
--
This email is confidential, intended only for the named recipient(s) above and may contain information that is privileged. If you have received this message in error or are not the named recipient(s), please notify the sender immediately and delete this email message from your computer as any and all unauthorized distribution or use of this message is strictly prohibited. Thank you.
--
This is the RPG programming on the IBM i / System i (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.
As an Amazon Associate we earn from qualifying purchases.