CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    May 1999
    Posts
    16

    how to query printer status thru code?

    Hi,

    Can someone tell me how to query the status of a printer, attached/ connected to one's desktop, thru code.?
    I need to find out if the printer my application is trying to print to, is valid/ offline/ ... before attempting to print, to save on parsing log files, to find out why the print job did not print.

    Parsing Log files, may look a small job, but for my application they are huge - 16Kb and higher.

    Any clues, in VB/ VC/Win SDK will be appreciated, as I dont know MFC and Java.

    regards

    Jeevan





  2. #2
    Join Date
    May 1999
    Posts
    3,332

    Re: how to query printer status thru code?

    the printer status can be obtained from the PRINTER_INFO_2 structure (field "Status") using the GetPrinter API function (sorry, don't have a VB solution).


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured