Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I reprint a spool file?

Is there a way to reprint a spool file?

I can't find any example or article to say if there is a way or not.

edit: when i say reprint it, i mean to the same printer

like image 559
sgkin Avatar asked Nov 14 '22 06:11

sgkin


1 Answers

Yes you can. Read the complete SPL file into a byte array and have a look at this article:

http://support.microsoft.com/kb/322090/en-us

It shows you how to send raw data to a printer. Use that to send your byte array to the printer. Beware: a SPL file can actually contain various data types, such as EMF, PCL, ESC-P etc. Your must make sure that the format of the SPL file you have is appropriate for your specific printer.

like image 92
svenv Avatar answered Nov 16 '22 03:11

svenv