JockMullin
MIS
I am trying to set up a legacy app currently generating print output to a disk file to send the disk file to the default Windows printer after completion. I have created a little test file called spool.txt which just has a few lines (132 chars) of plain text.
I try to print it using this little program:
It runs, and gives a return code of 1, which indicates success. The print job shows up in the spooler, has the correct length, but sits there for 10 seconds and disappears without printing. This on a HP LJ1000.
When I try another printer (HP Officejet) the spooler gives an error saying the job failed to print, and I have to delete it from the queue.
Environment is XP Pro SP2. xHarbour 0.99.60
Any thought gratefully appreciated.
Jock
I try to print it using this little program:
Code:
local ptr,fil,ret
ptr:=getdefaultprinter()
fil:='spool.txt'
ret:=printfileraw(ptr,fil)
clear
? str(ret)
return
It runs, and gives a return code of 1, which indicates success. The print job shows up in the spooler, has the correct length, but sits there for 10 seconds and disappears without printing. This on a HP LJ1000.
When I try another printer (HP Officejet) the spooler gives an error saying the job failed to print, and I have to delete it from the queue.
Environment is XP Pro SP2. xHarbour 0.99.60
Any thought gratefully appreciated.
Jock