Changing the default printer

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

    Changing the default printer

    Hi,

    I have some code that prints out a word document

    but i need to be able to send this document to a specific printer

    so far i have imported system.drawing. printing

    and have tried this

    Dim prtdoc As New PrintDocument
    prtdoc.PrinterS ettings.Printer Name = "my printer"

    but this doesnt actually change the printer and im now completely stuck

    any help with this is much appreciated

    Thanks

    Mike Fellows


  • Ken Tucker [MVP]

    #2
    Re: Changing the default printer

    Hi,



    Ken
    -----------------
    "Mike Fellows" <michael.fellow s@equityhouse.N OSPAM.co.uk> wrote in message
    news:OJidneHcC5 8stG7fRVn_vQ@gi ganews.com...
    Hi,

    I have some code that prints out a word document

    but i need to be able to send this document to a specific printer

    so far i have imported system.drawing. printing

    and have tried this

    Dim prtdoc As New PrintDocument
    prtdoc.PrinterS ettings.Printer Name = "my printer"

    but this doesnt actually change the printer and im now completely stuck

    any help with this is much appreciated

    Thanks

    Mike Fellows



    Comment

    • Mike Fellows

      #3
      Re: Changing the default printer

      Thanks



      "Ken Tucker [MVP]" <vb2ae@bellsout h.net> wrote in message
      news:OaSuELamFH A.3256@TK2MSFTN GP12.phx.gbl...[color=blue]
      > Hi,
      >
      > http://www.windowsformsdatagridhelp....0-673c63efa8cc
      >
      > Ken
      > -----------------
      > "Mike Fellows" <michael.fellow s@equityhouse.N OSPAM.co.uk> wrote in message
      > news:OJidneHcC5 8stG7fRVn_vQ@gi ganews.com...
      > Hi,
      >
      > I have some code that prints out a word document
      >
      > but i need to be able to send this document to a specific printer
      >
      > so far i have imported system.drawing. printing
      >
      > and have tried this
      >
      > Dim prtdoc As New PrintDocument
      > prtdoc.PrinterS ettings.Printer Name = "my printer"
      >
      > but this doesnt actually change the printer and im now completely stuck
      >
      > any help with this is much appreciated
      >
      > Thanks
      >
      > Mike Fellows
      >
      >
      >[/color]


      Comment

      Working...