-
December 23rd, 2005, 01:13 AM
#1
How to get the printer status
hi all,
Can anyone please tell me how to get the printer status.Whether it is connected or not etc.
-
December 23rd, 2005, 01:28 AM
#2
Re: How to get the printer status
Try to use this function , just like this :
Code:
GetDeviceStatus(Identifier of your Device);
Hope that helps.
Cheers.
-
December 23rd, 2005, 01:36 AM
#3
Re: How to get the printer status
do u want to see the settings of printer also??
i mean page size and default printer attached and its port too??
ProElite
-
December 23rd, 2005, 01:40 AM
#4
Re: How to get the printer status
No, only whether the printer is connected or not and also whether it is offline or not.
-
December 23rd, 2005, 02:30 AM
#5
Re: How to get the printer status
did you try ::GetPrinter(..) ?
Cheers
-
December 23rd, 2005, 02:43 AM
#6
Re: How to get the printer status
Originally Posted by ashwath_h
No, only whether the printer is connected or not and also whether it is offline or not.
Pls. Check out the prototype of EnumPrinters from MSDN , just like this :
Code:
BOOL EnumPrinters(
DWORD Flags, // types of printer objects to enumerate
LPTSTR Name, // name of printer object
DWORD Level, // specifies type of printer info structure
LPBYTE pPrinterEnum, // pointer to buffer to receive printer info
// structures
DWORD cbBuf, // size, in bytes, of the buffer
LPDWORD pcbNeeded, // pointer to variable with no. of bytes
// copied (or required)
LPDWORD pcReturned // pointer to variable with no. of printer
// info. structures copied
);
Also , can try this way mentioned by golanshahar guy.
I am sure that will be able to realize your solutions.
Cheers.
Last edited by sunny_sz; December 23rd, 2005 at 02:47 AM.
-
December 23rd, 2005, 03:56 AM
#7
Re: How to get the printer status
I got it by using "GetPrinter".Thanks.
-
December 23rd, 2005, 04:06 AM
#8
Re: How to get the printer status
You are welcome !
Last edited by sunny_sz; December 23rd, 2005 at 04:09 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|