How to format text file in pro-iv
Posted 11 March 2004 - 01:55 PM
I have CRON that runs every night and call a scheduler program written in pro-iv. This Scheduler is a recursive program that calls a bunch of report function. Every morning my user prints this report and forwarded these to the supervisors, managers and customer service.
There are 16 reports and each report average of 5 pages so we are talking here an average of 80 pages. Currently the total recipients of these reports are 6 people and could be more in the future, so there are 480 pages every morning spent on this report. Not all recipient are reading the status they just want a copy.
To reduce this paper works I come up with this idea of automatic email and attach the reports. The current system will stay the same but the user doesn’t need to print all the reports.
I’m done with all the coding, testing and debugging… in short it’s finished. The problems arise when I print the attachment because it’s not the same as the actual report. The spacing was short and the font size was not the same as the pro-iv report. The page was overlapping.
I was able to make a work around and it was okay for me but not for the user. They don’t want to setup the report. They just want to open the attachment and print it… NO MORE EXTRA ACTIVITY.
Right now I’m working on a solution and I’m doing it in VB.net. Basically the process was transferring this text file to a word document. I try the RTF yesterday but I cant find the properties for a landscape. In WORD object this property is available.
So that’s my story and that what keep me busy…
Posted 11 March 2004 - 03:13 PM
This can be found:
mpack, version 1.5
The actual package resides in ftp://ftp.andrew.cmu.edu/pub/mpack or from a mirror, like ftp://ftp.uu.net/networking/mail/mpack.
Posted 12 March 2004 - 01:05 AM
Yes I know about what's happening to Joe. He will be in Hospital next week....
In your case, wonder if your users accept to PRESS ONE MY BUTTON in MS Word? You can create a MACRO for them to format all reports with proper font size and font type after open up the attachment before print?
Posted 29 April 2004 - 11:00 AM
you may create the printfile as html file.
Add the following lines to the page header:
Add the following as last line to the end of report header:
Blank out page size and print only first page header.
Count the currently printed lines with @LINE.
After each x lines (i.e. 66) add the new html command "page-break-after" with the following syntax:
Your text line
Note: Internet Explorer 4.x or higher is required. This command will not work with other browsers.
As you are using html as output file, you may also specify a font (i.e. courier 8)
Boot the outputfile to Internet Explorer, you may use the SYSTEM() command.
Within Internet Explorer you simply print the entire page.
"Page-break-after" invokes proper page-breaks on your printer.
Posted 23 August 2004 - 06:52 PM
- 8.0 point
ascii2Pdf -l -p8 /raid0/glovia/prod/userdata/bude_shop.txt
Reply to this topic
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users