Re: can anyone recommend a good way to print from .txt to RAW printers?


[ Follow Ups ] [ Post Followup ] [ Signature.net Forum ]

Posted by Barbara Brazil on October 05, 2012 at 08:05:52:

In Reply to: Re: can anyone recommend a good way to print from .txt to RAW printers? posted by Bob A on October 05, 2012 at 07:24:05:

Bob:

No, there's no restriction on using LUN 0. That would be a very normal thing to want to do, say to ask for a printer name.

I'm going to give you something that is so easy to try you won't believe it ;-) If all you're trying to do is print a text file and you are running Comet32, use this code in your DocProc processing:

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)

That's it! The InputFile function (Comet32 only) allows you to input the contents of an entire file into a string. Use a dynamic string since you don't know how many bytes are in the file. The function version of InputFile works on non-Comet files! Here's a link to more doc.

Let me know if it works! :-)




Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

What is the name of the main Signature System's Product?  

Comments:

Optional Link URL:
Link Title:
Optional Image URL:

You may attach up to 5 files to your followup (see below):





Each file can be a maximum of 1MB in length Uploaded files will be purged from the server on a regular basis.


[ Follow Ups ] [ Post Followup ] [ Signature.net Forum ]