Home All Groups Group Topic Archive Search About

How to display Printer Settings Dialogue?

Author
1 May 2006 2:49 PM
UltimateNickFury
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.

Author
1 May 2006 3:02 PM
vbnetdev
http://www.startvbdotnet.com/controls/printdialog.aspx

--
Get a powerful web, database, application, and email hosting with KJM
Solutions
http://www.kjmsolutions.com



Show quote Hide quote
"UltimateNickFury" <UltimateNickF***@discussions.microsoft.com> wrote in
message news:02781FD8-8179-48D9-9BDF-7150C554E755@microsoft.com...
> 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.
Author
1 May 2006 3:13 PM
UltimateNickFury
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 "PrinterSettings" dialogue is displayed by clicking a button
from the PrintDialogue. Again, how does one directly display the
"PrinterSettings" Dialogue form a form?  Thanks.



Show quoteHide quote
"vbnetdev" wrote:

> http://www.startvbdotnet.com/controls/printdialog.aspx
>
> --
> Get a powerful web, database, application, and email hosting with KJM
> Solutions
> http://www.kjmsolutions.com
>
>
>
> "UltimateNickFury" <UltimateNickF***@discussions.microsoft.com> wrote in
> message news:02781FD8-8179-48D9-9BDF-7150C554E755@microsoft.com...
> > 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.
>
>
>
Author
1 May 2006 3:22 PM
vbnetdev
Private Sub Button1_Click(ByVal sender As System.Object, _
  ByVal e As System.EventArgs) 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.ShowDialog = DialogResult.OK Then prDoc.Print()
End Sub


--
Get a powerful web, database, application, and email hosting with KJM
Solutions
http://www.kjmsolutions.com



Show quoteHide quote
"UltimateNickFury" <UltimateNickF***@discussions.microsoft.com> wrote in
message news:13A8D143-A578-4BAD-A74E-AD691653600D@microsoft.com...
> 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 "PrinterSettings" dialogue is displayed by clicking a button
> from the PrintDialogue. Again, how does one directly display the
> "PrinterSettings" Dialogue form a form?  Thanks.
>
>
>
> "vbnetdev" wrote:
>
>> http://www.startvbdotnet.com/controls/printdialog.aspx
>>
>> --
>> Get a powerful web, database, application, and email hosting with KJM
>> Solutions
>> http://www.kjmsolutions.com
>>
>>
>>
>> "UltimateNickFury" <UltimateNickF***@discussions.microsoft.com> wrote in
>> message news:02781FD8-8179-48D9-9BDF-7150C554E755@microsoft.com...
>> > 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.
>>
>>
>>