need help - Where to get "paper size" and "color" been used for a specific PrintJob?

F

F. C.

Hi,

For a specific PrintJob, how can we know the paper size and color been
used?

In WIN32_PrintJob, there's no such property and I can only find
PaperSizeSupported in WIN32_Printer, PaperSize and Color in
WIM32_PrinterConfiguration.

So, how to know the paper size and color for a specific print job?

Thanks,
 
F

F. C.

just more info - I'm using system.management and WMI to track print job
information. I can get all information I need (such as doc name, printer
name..etc.), except the paper size and color. Anyone has done this before?
or any thoughts? Thanks in advance.
 
F

F. C.

The Color and PaperSize info that I needed I guess it's from
WIM32_PrinterConfiguration.

But again, how can I "link" it to a specific print job to determine what
paper size or color/mono been used?

BTW, in the MSDN online, it says the PaperSize is string. "A4 or Letter".
However, I'm getting "1" as the value returned from "SELECT * FROM
Win32_PrinterConfiguration".
Any idea on this?

Thanks.
 
F

F C

Hmm... why the paper size and color properties can not be found in
Win32_PrintJob? Or I missed something here? Thanks.
 
F

F. C.

Here's something I found out by experiment - PaperSize in
win32_printerconfiguration from MSDN document is actually wrong

http://msdn.microsoft.com/library/d...-us/wmisdk/wmi/win32_printerconfiguration.asp
it states:
PaperSize
Data type: string
Access type: Read-only
Size of the paper.
Example: "A4 or Letter"

What I got are "numbers" i.e. 5, 9, 8 and they match up to this page -
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/intl/nls_Paper_Sizes.asp
Just FYI.

Now I can get the papersize and color from win32_printerconfiguration at run
time, BUT it's not necessary the same setting associated with A PrintJob.
For example, a user changes the paper size to print a page from his PC.
That's something the server program can't get from
win32_printerconfiguration at the server.

So, my question is which direction should I approach on this topic to get
the papersize and color properties that do NOT exist in win32_printjob?
Really appreciate if anyone can point this out. MVPs, please? Thanks in
advance.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top