|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
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.
http://www.startvbdotnet.com/controls/printdialog.aspx
--
Show quote
Hide quote
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. 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. > > > 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 -- Show quoteHide quoteGet a powerful web, database, application, and email hosting with KJM Solutions http://www.kjmsolutions.com "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. >> >> >>
hierachical related data in datatset
VB2005 Pro Edition--Data Sources window is disabled when viewing forms Binding to an enumeration Multithreading Problem web reference to system.web.dll Converting VB Script Code to VB.NET 2005 Traversing a Collection SelectionChangeCommitted event evaluate or transform or ??? VB.net + SQLDMO = slower than VB6 !!! |
|||||||||||||||||||||||