(code below is a VFP function with syntax adjusted from VB)
LPARAMETERS
&&#DEFINE cJobs_OFFSET 77
DECLARE INTEGER
cPrinter=tcprintername
hPrinter=0
IF
ENDIF
= ClosePrinter(hPrinter)
RETURN
I found this http://www.merrioncomputing.com/Programming/PrintStatus.htm and I think my answer for creating a dll in .net may be in here but putting it together is a little beyound my current understanding of how these pieces fit.
Anyone who has solved this, knows of a third party dll that can be obtained or purchased, or who has already invented this wheel - you guidance will be greatly appreciated.
Charles
I found the code below in google http://bytes.com/forum/thread351305.html
PrinterIdle = 3
PrinterPrinting = 4
PrinterWarmingUp = 5
s =
PrinterStatusToString = s
)
strPrintServer =
WMIObject =
PrinterSet = GetObject(WMIObject).InstancesOf(
MsgBox( _
Printer.Name &
PrinterStatusToString(Printer.PrinterStatus) _
Copy the above code to an empty form and test the result. I don't know if this is the best way to deal with this, but it may get you started.