Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Accessing Local Print Server Properties

Status
Not open for further replies.

joshmshrf

Programmer
May 22, 2008
8
US
I'm currently working on a project that is using a 3rd party application to convert files from PDF to TIF.

That application uses a printer to do the conversion. What we've noticed is that there are a lot of warning messages logged to the Event Viewer in the System Event Log if the "Log spooler warning events" is checked for the local print server.

The problem with unchecking that is that it is system wide and not specific to a single printer.

I discussed this with the vendor and the issue is that it allows them to debug when there are problems with the conversion. It gives them info about what portion of the conversion fails.

What I would like to be able to do is programatically change that setting for my app so that it does not entirely fill up the event viewer.

Does anyone know if it is possible to access these advanced properties via vb.net or another method?

Any help or info is appreciated.

Thanks,

Josh
 
Try taking a look at Printing.PrinterSettings


I used to rock and roll every night and party every day. Then it was every other day. Now I'm lucky if I can find 30 minutes a week in which to get funky. - Homer Simpson

Arrrr, mateys! Ye needs ta be preparin' yerselves fer Talk Like a Pirate Day!
 
Thanks for the tip. Based on that I found Printing.PrintServer and used that to change the settings.

From what I can tell the enumerations aren't exactly correct. For instance, the "Success" enumeration enables the "Error" logging. "Warning" enables both warning and error logging and "All" does not include warnings. I'm using XP SP2 and VS 2008 so maybe they'd work fine in Vista.

Either way they're good enough to get me what I need for this project.

Thanks for your assistance.

Josh
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top