Printer Status
Hi,
I want to retreive printer status information which is connected to a computer on a network computer.I want to get info about online/offline/busy/paper out/error/printing etc. Can i get the code for this.This is very urgent for me.
Also I am very new to .net.So please anybody can help me???
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Mike GoldRank #50 · 30.6K pointsPosted Jul 29, 2007, 6:54 PM EDT
Rahul Kadu3 pointsPosted Jul 30, 2007, 2:48 AM EDT
Mike GoldRank #50 · 30.6K pointsPosted Jul 30, 2007, 7:12 AM EDT
[DllImport("winspool.drv", CharSet=CharSet.Auto, SetLastError=true)]
static extern uint GetPrinterData(IntPtr hPrinter, string pValueName, out uint pType, byte[] pData, uint nSize, out uint pcbNeeded);
Best,
-Mike