× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



from archives.
- 07:44pm APR 09, 2007 pst (9.1) [ Reply ] [ Bookmark ]

Re: Limited Amount of Space???

Hi Shane

Only just read your post, but in case you're still trying to get the PDFs to work with 198 characters or for any lurkers, there is a solution.

If you edit the RPGLE source member "WRKCGISPLF", you need to find the "PDFNewPage" sub-procedure. Within this procedure there is a select clause that sets the text size according the CPI attribute from the spool file.

The conditions in the select clause use CPI settings measured in tenths of inches, so a CPI of 15 is held as 150, etc.

Hope it helps

Jonathan www.astradyne-uk.com

Simon Coulter wrote:
On 07/06/2007, at 10:56 PM, Don Cavaiani wrote:

I have had the WRKCGISPLF program working for some time now and it is being used regularly!

Today, I ran across a hiccup. We have a System i5 query which is 198 characters wide. When this report is accessed with the WRKCGISPLF, it is cut off on the right side - in the PDF format. The HTML format shows the entire width of the report.

Not sure what is going on?

Most likely cause is that the paper size (or page size i.e. media bounding box) specified in the PDF is not wide enough to show all the data. Other possible cause is that the font has not been scaled to fit the paper size.

If you open the PDF file in text editor you should be able to see whether all the data is present. I'm fairly sure WRKCGISPLF does not compress the data stream so it should be legible in plain text. If each line of data is complete in the PDF then the problem is caused by incorrect paper size of incorrect font size. If the data is truncated then the problem is in the processing of the spooled file data.

Regards,
Simon Coulter.
--------------------------------------------------------------------
FlyByNight Software OS/400, i5/OS Technical Specialists

http://www.flybynight.com.au/
Phone: +61 3 9899 0985 Mobile: +61 0411 091 400 /"\
Fax: +61 3 9899 0985 \ /
X
ASCII Ribbon campaign against HTML E-Mail / \
--------------------------------------------------------------------




As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.