|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
set defaultprinterHi
Is it possible to set a defaultprinter through vb.net? thanks for help philippe I just got the solution. thanks anyway!
masterphilch schrieb: Show quoteHide quote > Hi > > Is it possible to set a defaultprinter through vb.net? > > thanks for help > philippe "masterphilch" <masterphi***@gmx.net> schrieb: It would be great if you could share the solution with the community, if >I just got the solution. thanks anyway! > >> Is it possible to set a defaultprinter through vb.net? possible. -- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://classicvb.org/petition/> In WMI its around 6 lines of code
Show quoteHide quote "Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message news:ezdMtrMZGHA.3832@TK2MSFTNGP04.phx.gbl... > "masterphilch" <masterphi***@gmx.net> schrieb: > >I just got the solution. thanks anyway! > > > >> Is it possible to set a defaultprinter through vb.net? > > It would be great if you could share the solution with the community, if > possible. > > -- > M S Herfried K. Wagner > M V P <URL:http://dotnet.mvps.org/> > V B <URL:http://classicvb.org/petition/> > Do you have those 6 lines of code?
-- Show quoteHide quoteDennis in Houston "Peter" wrote: > In WMI its around 6 lines of code > > > "Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message > news:ezdMtrMZGHA.3832@TK2MSFTNGP04.phx.gbl... > > "masterphilch" <masterphi***@gmx.net> schrieb: > > >I just got the solution. thanks anyway! > > > > > >> Is it possible to set a defaultprinter through vb.net? > > > > It would be great if you could share the solution with the community, if > > possible. > > > > -- > > M S Herfried K. Wagner > > M V P <URL:http://dotnet.mvps.org/> > > V B <URL:http://classicvb.org/petition/> > > > > > See the "SetDefaultPrinter" method described here:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmisdk/wmi/win32_printer.asp cheers, jw Dennis wrote: Show quoteHide quote > Do you have those 6 lines of code?
Getting Exception on Command Line Args, but works within IDE debug
Multi-line comments Communication between forms Mutable Types and Read-Only Fields Datagrid binding problem Maximize form problem->bottom hidden by start bar Is there a way to see if a file is in use? VS2005 - Passing NumericUpDown into a class method? Editing Multiple DataGridViews Retrieving a list of available fonts on system. |
|||||||||||||||||||||||