Hello Reygie,
>Any one who knows a function to detect if a printer is online of offline?
>The printstatus() function of foxpro always returns online even if the printer is not connected or offline.
Both PrintStatus() and Sys(13) are of no use in Visual FoxPro, because they always return the same value: .T. They were useful back in the DOS environment.
I'm not sure there's an easy way, short of calling some Windows OS function, to determine the true status of the printer. Expanding on what Hilmar said, the Windows print buffer is designed to hold a printjob until the printer is ready.
HTH,
Randy Bosma
VFP - Because life is too short to code in something else...