Pagination is lost when printing reports

Pagination is lost when printing reports

I am using OpsNav to send AS/400 reports to users via e-mail using the following procedure: With both OpsNav and Explorer windows opened, I drag and drop selected reports to c:my temp files. The reports are then in .txt format on my C drive. I then attach that reportxxx.txt to an e-mail. The problem is when we print these reports the pagination is lost. Is there a better way to do this without losing the page format?


    Requires Free Membership to View

    Register today to access targeted resources from our editorial writers and independent industry experts including news, tips, and advice to help you do your job more efficiently and effectively. Stay informed on the hottest topics and biggest challenges faced by IT professionals working with iSeries products and services.

    By submitting your registration information to Search400.com you agree to receive email communications from TechTarget and TechTarget partners. We encourage you to read our Privacy Policy which contains important disclosures about how we collect and use your registration and other information. If you reside outside of the United States, by submitting this registration information you consent to having your personal data transferred to and processed in the United States. Your use of Search400.com is governed by our Terms of Use. You may contact us at webmaster@TechTarget.com.

When you drag and drop a spool file to your desk top using OPS Nav all it does is a simple translation to a .TXT file. In order to maintain page breaks you would have to write a program that copies the spool file to a database file along with forms control characters:

*FCFC
Specifies that the first character of every record contains one of the ANSI forms control codes listed in the CL Reference manual.

And then read these control characters using this information to determine line spacing and page breaks.

Personally, I have not taken the time to develop a program like this because there are several software developers who have already done this. It is cheaper for me to spend a few bucks purchasing their software than to have my company pay me to develop something from scratch.

My personal choice is the spool manipulation products from Gumbo Software. The one I think you would find to be extremely useful is SpoolMail. Using their command interface, it is possible to e-mail a Spoolfile to a list of addresses in several different formats RTF, PDF and TIFF, not only TXT.

==================================
MORE INFORMATION ON THIS TOPIC
==================================

The Best Web Links: tips, tutorials and more.


This was first published in October 2001