Default Printer.

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

    Default Printer.

    Was hopeing someone could point out a good primer on printing. Am trying to
    change the default printer, have the device names in a list box, but can't
    for the life of me figure out how to select one from the list box and set
    Printer = . Any help would be appreciated.

    Thank you,
    Josh Madarasz


  • Raoul Watson

    #2
    Re: Default Printer.


    "Josh Madarasz" <jmadsoftware@a lltel.net> wrote in message
    news:b7f1c$43e0 e02f$a6667525$2 1109@ALLTEL.NET ...[color=blue]
    > Was hopeing someone could point out a good primer on printing. Am trying[/color]
    to[color=blue]
    > change the default printer, have the device names in a list box, but can't
    > for the life of me figure out how to select one from the list box and set
    > Printer = . Any help would be appreciated.
    >
    > Thank you,
    > Josh Madarasz[/color]

    AFAIK there is no way to do it using the VB printer object.
    If you want to use API, check out OpenPrinter function.

    Then use StartDocPrinter , StartPagePrinte r, WritePrinter, EndPagePrinter,
    EndDocPrinter, and finally ClosePrinter.


    Comment

    • Randy Birch

      #3
      Re: Default Printer.

      Depending on your Windows version ...

      VBnet provides Intermediate and Advanced Win32 API code for VB developers. Comprehensive Code, FAQ, Developers Resources & News, alphabetical API/Type/Constant/Method Index, along with the largest Visual Basic-related links list on the net.


      VBnet provides Intermediate and Advanced Win32 API code for VB developers. Comprehensive Code, FAQ, Developers Resources & News, alphabetical API/Type/Constant/Method Index, along with the largest Visual Basic-related links list on the net.


      --

      Randy Birch
      MS MVP Visual Basic


      Please reply to the newsgroups so all can participate.




      "Josh Madarasz" <jmadsoftware@a lltel.net> wrote in message
      news:b7f1c$43e0 e02f$a6667525$2 1109@ALLTEL.NET ...
      : Was hopeing someone could point out a good primer on printing. Am trying
      to
      : change the default printer, have the device names in a list box, but can't
      : for the life of me figure out how to select one from the list box and set
      : Printer = . Any help would be appreciated.
      :
      : Thank you,
      : Josh Madarasz
      :
      :

      Comment

      • Josh Madarasz

        #4
        Re: Default Printer.


        "Randy Birch" <rgb_removethis @mvps.org> wrote in message
        news:43e811c2$0 $1571$c3e8da3@n ews.astraweb.co m...[color=blue]
        > Depending on your Windows version ...
        >
        > http://vbnet.mvps.org/code/system/defaultprinter.htm
        >
        > http://vbnet.mvps.org/code/system/setdefaultprinter.htm
        >
        > --
        >
        > Randy Birch
        > MS MVP Visual Basic
        > http://vbnet.mvps.org/
        >
        > Please reply to the newsgroups so all can participate.
        >
        >
        >
        >
        > "Josh Madarasz" <jmadsoftware@a lltel.net> wrote in message
        > news:b7f1c$43e0 e02f$a6667525$2 1109@ALLTEL.NET ...
        > : Was hopeing someone could point out a good primer on printing. Am
        > trying
        > to
        > : change the default printer, have the device names in a list box, but
        > can't
        > : for the life of me figure out how to select one from the list box and
        > set
        > : Printer = . Any help would be appreciated.
        > :
        > : Thank you,
        > : Josh Madarasz
        > :
        > :[/color]

        Thank you,
        Just what I needed. Was driving me crazy trying to figure
        it out. Guess thats what I get for starting out with x86 Assembly, Pascal,
        Fortran, and then Visual Basic. All self taught. Hmmm, Okay, so I Started
        out with Comodore Basic. :( :) But anyway, appreciate it, Helped out
        considerably.


        Comment

        Working...