printing to file
scooter6 at gmail.com
scooter6 at gmail.com
Thu Nov 4 09:07:34 PDT 2010
I am trying to diminish some of the paper we're using here and am trying to
divert certain reports, etc to be printed to a file rather than printed to a
printer.
This is my first attempt at doing this, so forgive my ignorance to a degree
ha
In looking at the filePro manual, you should enter:
printer file "/tmp/output" <--- as path to where you want the output
directed to
printer reset <---- to reset all printer functions back to where they
started before processing started
So, I have a report called recap for a file called PDMbal
So, in output processing for 'recap', I do one simple looking to grabt the
value of a dummy field
Then: lookup sta = filename k=16 i=A -nx
Then: aa(4,allup)=sta(2)
Then: printer file "/tmp/output"
Then: printer reset
It DOES create /tmp/output, however it appears all it captures in that is
the print code hex values or something....
If I look at the output of /tmp/output, using vi:
^[%100^[(10OU^O^[E
The actual report then does print (kind of) to my system default printer,
but prints it in 2 pages, the first page looks normal like it should,
then it prints the 2nd record on a 2nd page, with much larger print
type....(there are only 2 records on this report, and when printed
'normally' it prints both records out in condensed print style just as I've
asked it to.
I also even tried putting the printer commands above in a -v processing
table, but that had no effect and I got the same results.
What am I missing here???
BTW this is SCO OpenServer 5.0.5 w/filePro 5.6.07R4
Thanks
Scott
PDM
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.celestial.com/pipermail/filepro-list/attachments/20101104/5affd8d2/attachment.html
More information about the Filepro-list
mailing list