locked
Need help in Identifying Printer Properties RRS feed

  • Question

  • Hi,

    I have written a Printer Utility class whose functionality is to give the information about the printer to other class.
    I used the Win32_Printer API and Win32_PrintJob API to get all the required info for my default printer.(Lexmark E342n) which I have used it for testing this class.

    Whenever i try to run this class the status of the printer returns "unknown" everytime. I tried to get the error information as well but didnt worked. Say for instance, I didnt load paper in the tray and the class is supposed to get the information of this error in "DetectedErrorState" property as "4" or "3" for "No Paper" or "Low Paper". But always I get "0" unknown even when the printer displays the error info "Load Tray 1, Plain paper". So what could be the problem and how can I test it? Has anyone tried any of the printer utility class? Help is appreciated.


    --- Thanks & Regards, Guhan
    • Edited by Guhanath Monday, September 29, 2008 7:40 PM edited
    • Moved by Michael Sun [MSFT]Microsoft employee Thursday, October 2, 2008 3:31 AM Off Topic for Visual C# Language (Moved from Visual C# Language to Off-Topic Posts (Do Not Post Here))
    Monday, September 29, 2008 7:39 PM

Answers

  •  

    Hello Guhanath,

    Thank you for your post!  Unfortunately there is not a current forum to post the question you are asking so I would recommend that you post your question to one of the Printing, Imaging, and Fax Related Communities located here: http://www.microsoft.com/windowsxp/expertzone/communities/printers.mspx

    Hope that helps!


    Vijay Mullick Tier 2 Application Support Server and Tools Online Engineering Live Services Team
    • Proposed as answer by Vijay Mullick Tuesday, October 21, 2008 12:05 PM
    • Marked as answer by Vijay Mullick Thursday, November 6, 2008 1:11 PM
    Tuesday, October 21, 2008 12:04 PM