How to display Printer Settings Dialogue?

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

    #1

    How to display Printer Settings Dialogue?

    Hello,

    I am trying to display the "Printer Settings" dialogue in vb.net. I have
    found the code for performing this in VB6 but am wondering how this is done
    in vb.net. Thanks.
  • vbnetdev

    #2
    Re: How to display Printer Settings Dialogue?



    --
    Get a powerful web, database, application, and email hosting with KJM
    Solutions




    "UltimateNickFu ry" <UltimateNickFu ry@discussions. microsoft.com> wrote in
    message news:02781FD8-8179-48D9-9BDF-7150C554E755@mi crosoft.com...[color=blue]
    > Hello,
    >
    > I am trying to display the "Printer Settings" dialogue in vb.net. I have
    > found the code for performing this in VB6 but am wondering how this is
    > done
    > in vb.net. Thanks.[/color]


    Comment

    • UltimateNickFury

      #3
      Re: How to display Printer Settings Dialogue?

      This doesn't answer the question posted. I article only addresses the
      PrintDialogue and the PrintPreview dialogue which I already know how to
      display. The "PrinterSetting s" dialogue is displayed by clicking a button
      from the PrintDialogue. Again, how does one directly display the
      "PrinterSetting s" Dialogue form a form? Thanks.



      "vbnetdev" wrote:
      [color=blue]
      > http://www.startvbdotnet.com/controls/printdialog.aspx
      >
      > --
      > Get a powerful web, database, application, and email hosting with KJM
      > Solutions
      > http://www.kjmsolutions.com
      >
      >
      >
      > "UltimateNickFu ry" <UltimateNickFu ry@discussions. microsoft.com> wrote in
      > message news:02781FD8-8179-48D9-9BDF-7150C554E755@mi crosoft.com...[color=green]
      > > Hello,
      > >
      > > I am trying to display the "Printer Settings" dialogue in vb.net. I have
      > > found the code for performing this in VB6 but am wondering how this is
      > > done
      > > in vb.net. Thanks.[/color]
      >
      >
      >[/color]

      Comment

      • vbnetdev

        #4
        Re: How to display Printer Settings Dialogue?

        Private Sub Button1_Click(B yVal sender As System.Object, _
        ByVal e As System.EventArg s) Handles Button1.Click

        ' Create a PrintDocument object
        Dim prDoc As New PrintDocument
        ' Link the printing procedure with the PrintPage event.
        AddHandler prDoc.PrintPage , AddressOf Me.pd_PrintPage <
        ' Create the printer settings dialog box and associate
        ' it with the PrintDocument object.
        Dim prDlg As New PrintDialog
        prDlg.Document = prDoc
        ' Display dialog. If user closes dialog with OK,
        ' start printing.
        if prDlg.ShowDialo g = DialogResult.OK Then prDoc.Print()
        End Sub


        --
        Get a powerful web, database, application, and email hosting with KJM
        Solutions




        "UltimateNickFu ry" <UltimateNickFu ry@discussions. microsoft.com> wrote in
        message news:13A8D143-A578-4BAD-A74E-AD691653600D@mi crosoft.com...[color=blue]
        > This doesn't answer the question posted. I article only addresses the
        > PrintDialogue and the PrintPreview dialogue which I already know how to
        > display. The "PrinterSetting s" dialogue is displayed by clicking a button
        > from the PrintDialogue. Again, how does one directly display the
        > "PrinterSetting s" Dialogue form a form? Thanks.
        >
        >
        >
        > "vbnetdev" wrote:
        >[color=green]
        >> http://www.startvbdotnet.com/controls/printdialog.aspx
        >>
        >> --
        >> Get a powerful web, database, application, and email hosting with KJM
        >> Solutions
        >> http://www.kjmsolutions.com
        >>
        >>
        >>
        >> "UltimateNickFu ry" <UltimateNickFu ry@discussions. microsoft.com> wrote in
        >> message news:02781FD8-8179-48D9-9BDF-7150C554E755@mi crosoft.com...[color=darkred]
        >> > Hello,
        >> >
        >> > I am trying to display the "Printer Settings" dialogue in vb.net. I
        >> > have
        >> > found the code for performing this in VB6 but am wondering how this is
        >> > done
        >> > in vb.net. Thanks.[/color]
        >>
        >>
        >>[/color][/color]


        Comment

        Working...