http://qs321.pair.com?node_id=446178


in reply to Printing directly to a printer

I copied/pasted your code as shown here and ran it on my Windows XP. It runs just fine for me. (I typed "LPT1" as my printer port; however, your printer may not be on LPT1.)

buckaduck

Replies are listed 'Best First'.
Re^2: Printing directly to a printer
by merrymonk (Hermit) on Apr 09, 2005 at 10:03 UTC
    Many thanks for trying it on your PC
    and letting me know what happened.
    I think that the port may be an issue since my printer
    is attached to a USB port which is described as a
    Virtual Printer Port for USB.
    I shall try some more with a printer attached to LPT1