Printing text file on postscript printer from NT batch job 
Author Message
 Printing text file on postscript printer from NT batch job

Hello,

On an NT server, I am running a perl script as a batch job from which I
would like to print a text file directly to a specific postscript printer on
the network.  Unfortunately it's not as easy as executing the DOS print
command.  I just get Postscript 'undefined' errors, since it's expecting
postscript commands and not just the text itself.

Is there a simple way to print a text file report (multiple lines), as is,
to a postscript printer, without 3rd party software, (unless somehow Notepad
or Wordpad print can be piggybacked on)?  Or do I have to wrap some
postscript commands around the report, and possibly imbed new line
characters?  ....Or can I possibly even circumvent postscript all together?

Any help would be appreciated!
NOTE:  Please Remove 'nospam' from kodak.com when replying.

Thanks,
Don



Mon, 15 Mar 2004 08:25:37 GMT  
 Printing text file on postscript printer from NT batch job

Quote:

> Hello,

> On an NT server, I am running a perl script as a batch job from which I
> would like to print a text file directly to a specific postscript printer on
> the network.  Unfortunately it's not as easy as executing the DOS print
> command.  I just get Postscript 'undefined' errors, since it's expecting
> postscript commands and not just the text itself.

> Is there a simple way to print a text file report (multiple lines), as is,
> to a postscript printer, without 3rd party software, (unless somehow Notepad
> or Wordpad print can be piggybacked on)?  Or do I have to wrap some
> postscript commands around the report, and possibly imbed new line
> characters?  ....Or can I possibly even circumvent postscript all together?

> Any help would be appreciated!
> NOTE:  Please Remove 'nospam' from kodak.com when replying.

> Thanks,
> Don

If you can manage to prepend a PostScript prolog to your text to be
printed, my
line printer emulation code might help you.
Drop me an e-mail if you are interested.

Helge
--





Wed, 17 Mar 2004 23:24:37 GMT  
 Printing text file on postscript printer from NT batch job
Hi Don,

Quote:

> On an NT server, [...]

> Is there a simple way to print a text file report (multiple lines),
> as is, to a postscript printer, without 3rd party software, (unless
> somehow Notepad or Wordpad print can be piggybacked on)?

Actually that is one of the options.  If you look into the file types
for "TXT" and "DOC", you will notice the "print" and "printTo"
commands.  On my W2K system here they are defined as follows:

TXT, print:

  C:\WINNT\system32\NOTEPAD.EXE /p %1

TXT, printto:

  C:\WINNT\system32\NOTEPAD.EXE /pt "%1" "%2" "%3" "%4"

and similar for "DOC" just with Wordpad.

Quote:
> Or do I have to wrap some postscript commands around the report, and
> possibly imbed new line characters?

You said "without 3rd party software", but still: I know of two Unix
tools on the net that do that, called "a2ps" and "mpage".  You may
want to search for Windows version of these.

so long, benny



Thu, 18 Mar 2004 03:04:08 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Printing text files on Unix to a Postscript Printer

2. Printing PS files to PS printer through NT server print queue

3. Printing straight ASCII text on a postscript printer?

4. Printing Postscript files on non-Postscript printers

5. Printing Postscript Files on a Non-Postscript Printer

6. Printing a postscript file as Postscript to a networked hp printer

7. Printer not printing, except text files

8. Printing Postscript files on non-PostScript printer from UNIX

9. Printing Postscript files to non PostScript printers

10. Help: error printing text file to PS printer

11. Printing Text File to printer

12. Finding out what printer a print job goes to

 

 
Powered by phpBB® Forum Software