Hello Mr.Antonio
Thank you for your reply.
I have tested the above code. I felt that this code is useful only when
we use windows printers but not for dos printers.
I have replaced the code in TDosPrn and I found that even though the
printer is not switched off, PrnStatus("LPT1:") is always returning 0.
It might be due to windows printing is routed through the spooler and we
always get the PrnStatus("LPT1::") as 0 unlike Clipper's ISPRINTER().
But the code you have given is very useful when we use Windows printers.
I have gone through so many articles in our forum and on the net. But
I did not find any replacement function/method or at least a workaround
way to replace Clipper's ISPRINTER() functionality for Windows Printers.
I use only TDosPrn() to print outputs in most my applications. Most of my
application users have used my clipper applications earlier and now using
windows application. They are normally not interested to know our
technical issues. They always take it granted that every thing is possible
to do in computers.
If you can suggest me any way out to test whether the printer is in it ON
state or OFF state before I issue a print command, I will be very happy.
Regards,