Hi,
I have a question about printing. I use the following script for printing in windows:
import win32print
printer_name = win32print.GetDefaultPrinter ()
hPrinter = win32print.OpenPrinter (printer_name)
hJob = win32print.StartDocPrinter (hPrinter, 1, ("test of raw data", None, "RAW"))
win32print.WritePrinter (hPrinter, open("C:\\test.txt",'rt').read())
win32print.EndDocPrinter (hPrinter)
win32print.ClosePrinter (hPrinter)
My lines start on new lines but the string starts where the string for the above line ended.Something like this:
test
test
test
test
Thanks for any suggestions.
Vero
I have a question about printing. I use the following script for printing in windows:
import win32print
printer_name = win32print.GetDefaultPrinter ()
hPrinter = win32print.OpenPrinter (printer_name)
hJob = win32print.StartDocPrinter (hPrinter, 1, ("test of raw data", None, "RAW"))
win32print.WritePrinter (hPrinter, open("C:\\test.txt",'rt').read())
win32print.EndDocPrinter (hPrinter)
win32print.ClosePrinter (hPrinter)
My lines start on new lines but the string starts where the string for the above line ended.Something like this:
test
test
test
test
Thanks for any suggestions.
Vero