Posted by Bob A on October 05, 2012 at 08:29:21:
In Reply to: Re: can anyone recommend a good way to print from .txt to RAW printers? posted by Barbara Brazil on October 05, 2012 at 08:05:52:
BB:
very slick! Gotta get goin' on Comet32... but will stick to Comet16 for the immediate future as I fight fires after our go-live.
the missing piece in my understanding about DocProc was that the JobName$ comes back with a UNC header (\\ALLSYS2\DATA2\) and I didn't have the right number of back slashes to make it fly.
my only problem now... is that with the "green-bar" I've got to put back in the (FF) logic which appears in the TXT output in the Spool as a line of "-~-~-~-~".... If I don't get this right, the forms won't line up
For the record....
length dynamic & local TheFile$
TheFile$ = InputFile(JobName$) ! JobName$ in DocProc has the full path to the text document file
close (1) & open (1) "LPx"
print (1) TheFile$
close (1)
is not the "Holy Grail" of programming (the one line program)... but it's damn close!
Thanx
Bob "A"
P.S. from 1973 to 1976 worked in APL... that's where the "one line" program came to the fore... unfortunately it was sometimes a WORN programming language (Write Once, Read Never).... I'd come back to something a year later and was stumped :)
Each file can be a maximum of 1MB in length Uploaded files will be purged from the server on a regular basis.