Home All Groups Group Topic Archive Search About
Author
20 Apr 2006 9:43 PM
masterphilch
Hi

Is it possible to set a defaultprinter through vb.net?

thanks for help
philippe

Author
20 Apr 2006 9:53 PM
masterphilch
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
Author
20 Apr 2006 10:36 PM
Herfried K. Wagner [MVP]
"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/>
Author
20 Apr 2006 10:46 PM
Peter
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/>
>
Author
20 Apr 2006 11:15 PM
Dennis
Do you have those 6 lines of code?
--
Dennis in Houston


Show quoteHide quote
"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/>
> >
>
>
>
Author
25 Apr 2006 9:12 PM
mr_unreliable
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?