Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

AFP / Tiff questions

62 views
Skip to first unread message

steve...@my-deja.com

unread,
Aug 12, 1999, 3:00:00 AM8/12/99
to
hi, i'm brand new to AFP stuff... anyway
i'm trying to convert a *.tif file to an *.afp file by programmatically
streaming the tif data
through an AFP driver. (i'm on WindowsNT, btw). the result is simply
the data in the original tif file.
i CAN do it if i convert it to a bitmap and use a Windows device
context, but i was hoping i could
just stream tif data through the AFP driver.
guess my question is: how can i convert a tif file to an afp file in
Windows? i've read that
afp "supports" tiff but the docs never say what "support" means.
(btw, by an "afp file" i mean a file i can view with an afp viewer)
thanks!!!


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.

Rodney Johnson

unread,
Aug 13, 1999, 3:00:00 AM8/13/99
to
Steve, One possibility, is to store the .tif file in IFS and use the
Convert Image API QIMGCVTI to convert the .tif to .afp. This API was
added in V4R2, so you would need to have OS/400 V4R2. If I remember
right, the API allows you to input from an IFS file and output to and IFS
file. Or, you could even input and output to a spooled file (check the
API documentation to verify).

The API is located with the Print APIs under the AS/400 Online
publications.

steve...@my-deja.com wrote:

--
Rodney A Johnson
Technical Team Lead for AS/400 Spool
Dept GJC
IBM Rochester, Minnesota

The contents of this message express only the sender's opinion.
This message does not necessarily reflect the policy or views of
my employer, IBM. All responsibility for the statements
made in this Usenet posting resides solely and completely with the
sender.


Chain Link Fence

unread,
Aug 16, 1999, 3:00:00 AM8/16/99
to
I use the IBM AFP 3812 printer driver to output the data in a format that
can be interpreted by AFP..I still have a little work to do once it gets to
a folder on the 400 but it works. I got this from the February 98 issue of
AS/400 Technology Showcase which discusses the issue step-by-step..

Mike

Rodney Johnson <rjoh...@rchland.ibm.com> wrote in message
news:37B417FA...@rchland.ibm.com...

Cyber Lizard

unread,
Aug 28, 1999, 3:00:00 AM8/28/99
to
I am attempting to use the QIMGCVTI API and having some trouble with
it. I am writing in ILE RPG. I keep getting the message that the
error code parameter is not valid. I have read all of IBM's softcopy
books on the error code and the API and can't seem to resolve this
issue. I would be interested in perhaps a code snippet for loading
the DS's for the parms and calling the API. Right now, I am using the
/COPY from QIMGAPII and QUSEC. I think the issue might be with
certain lengths of parameters, but I can't seem to find out what. Any
information would be appreciated on using this API.

Aaron Wadley
Programmer
PDS, Inc.

B. Kolb

unread,
Aug 30, 1999, 3:00:00 AM8/30/99
to
While I'm not versed in RPG, I did talk to someone who gave me some pointers. Here's one way it could be done:

D/COPY QSYSINC/QRPGLESRC,QUSEC
.
.
.
Z-ADD 0 QUSBPRV                                         <------------ will cause exceptions to be sent to your pgm
.
.
.
CALL QIMGCVTI
.
.
.
.
.
.
 PARM QUSEC
 
 

I hope this helps

0 new messages