set defaultprinter

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • masterphilch

    #1

    set defaultprinter

    Hi

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

    thanks for help
    philippe
  • masterphilch

    #2
    Re: set defaultprinter

    I just got the solution. thanks anyway!

    masterphilch schrieb:[color=blue]
    > Hi
    >
    > Is it possible to set a defaultprinter through vb.net?
    >
    > thanks for help
    > philippe[/color]

    Comment

    • Herfried K. Wagner [MVP]

      #3
      Re: set defaultprinter

      "masterphil ch" <masterphilch@g mx.net> schrieb:[color=blue]
      >I just got the solution. thanks anyway!
      >[color=green]
      >> Is it possible to set a defaultprinter through vb.net?[/color][/color]

      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/>

      Comment

      • Peter

        #4
        Re: set defaultprinter

        In WMI its around 6 lines of code


        "Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message
        news:ezdMtrMZGH A.3832@TK2MSFTN GP04.phx.gbl...[color=blue]
        > "masterphil ch" <masterphilch@g mx.net> schrieb:[color=green]
        > >I just got the solution. thanks anyway!
        > >[color=darkred]
        > >> Is it possible to set a defaultprinter through vb.net?[/color][/color]
        >
        > 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/>
        >[/color]


        Comment

        • Dennis

          #5
          Re: set defaultprinter

          Do you have those 6 lines of code?
          --
          Dennis in Houston


          "Peter" wrote:
          [color=blue]
          > In WMI its around 6 lines of code
          >
          >
          > "Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message
          > news:ezdMtrMZGH A.3832@TK2MSFTN GP04.phx.gbl...[color=green]
          > > "masterphil ch" <masterphilch@g mx.net> schrieb:[color=darkred]
          > > >I just got the solution. thanks anyway!
          > > >
          > > >> Is it possible to set a defaultprinter through vb.net?[/color]
          > >
          > > 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/>
          > >[/color]
          >
          >
          >[/color]

          Comment

          • mr_unreliable

            #6
            Re: set defaultprinter

            See the "SetDefaultPrin ter" method described here:

            http://msdn.microsoft.com/library/de...32_printer.asp

            cheers, jw

            Dennis wrote:[color=blue]
            > Do you have those 6 lines of code?[/color]

            Comment

            Working...