|
I've never done what you are asking about, so keep that in mind when you read the next bits... Page Segments are images. You can certainly use a PC application to create a picture of the paragraphs you need, fully formatted, etc. and then create AS/400 page segment objects from them, but I would guess that this will be a very poor performer, especially if you have variable data to insert into the paragraphs. I have not had the need to do extensive dynamic paragraph formatting. Neither AFP nor SCS do formatting on their own, as far as I know. IBM sells a product called PrintSuite/400 that *may* help you - I haven't used it... Here's a link to the manual: http://publib.boulder.ibm.com:80/cgi-bin/bookmgr/BOOKS/C5PX1M00/CCONTENTS Buck Calabro Billing Concepts Albany, NY mailto:mcalabro@commsoft.net > -----Original Message----- > From: Richard Wilson > Sent: Sunday, August 08, 1999 8:29 AM > To: MIDRANGE-L@midrange.com > Subject: Re: PC Objects to AFP Page segments? > > Re my question about AFP, > > Buck Calabro wrote: > > > Generally, I would use AFP to print graphics (logos, barcodes, boxes) or > > multiple fonts on AS/400 created output. When you say "PC objects" are > you > > talking about text or image data? For image data, I would fire up my PC > > > > snipped > > > For plain text, I would simply FTP the text to an AS/400 file and read > it in > > the AS/400 program. > > > > The problem area is in construction of a document printout which is built > from > several, varying, paragraphs. To allow flexibility on choice of font, > size, etc > the > concept is to squirt a stream of text at the printer (AFP) and allow it to > format > > line endings etc as we go. Did I mention that we have to insert variable > length > fields as we go. Rather like a mail-merge, but adding font size and > choice > capability > instead of the fixed length format of a normal PRTF. > > There are printer PDL (Page Description Languages) which will allow this, > by > defining an area on page and then dynamically fitting whatever text you > mark into > the box area. > > The nearest I can get to with my current level of knowledge of AFP is the > Page > segment. > I can calculate the number of characters per line within the HLL, but I > have no > way of > deciding when I reach line full when I'm using a proportional font at the > printer. > > > Or is there a way of defining a word wrap characteristic somewhere in all > this? > +--- | This is the Midrange System Mailing List! | To submit a new message, send your mail to MIDRANGE-L@midrange.com. | To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com. | To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: david@midrange.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.