Direct copy to printer port under Win NT
Hi all,
I need to make a litle program that only copy the
to lpt1 on Win NT.
All is ok with the code, but after starting the printer do not print.
I try to start in MS DOS copy myfile lpt1.
The system reports : 1 file copied and so on, but nothig happen with printer.
The printer is ok and I can print with edit.
Is it possible to use lpt1 directly under NT ?
Many thanks.
Re: Direct copy to printer port under Win NT
look in MSDN Library at CreateFile API Reference
let me know if this help
Re: Direct copy to printer port under Win NT
Thanks for the answer, but it is not the solution.
I use the sandart ASCII open for file open and all
working well on Win98.
I do not know if it is NT bug or NT setting.
It is not working also on 2000 and NT Workstation.
Many thanks.
Re: Direct copy to printer port under Win NT
can you, please, post some code here?
Re: Direct copy to printer port under Win NT
Hi,
the code is very simple.
But you can try it with simple MS DOS copy to lpt1.
Regards.