473,326 Members | 2,095 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

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.
May 1 '06 #1
3 9115
http://www.startvbdotnet.com/controls/printdialog.aspx

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

"UltimateNickFury" <Ul**************@discussions.microsoft.com> wrote in
message news:02**********************************@microsof t.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.

May 1 '06 #2
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" <Ul**************@discussions.microsoft.com> wrote in
message news:02**********************************@microsof t.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.


May 1 '06 #3
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

"UltimateNickFury" <Ul**************@discussions.microsoft.com> wrote in
message news:13**********************************@microsof t.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" <Ul**************@discussions.microsoft.com> wrote in
message news:02**********************************@microsof t.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.


May 1 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: qumpus | last post by:
My program right now generates USPS style shipping label using System.Drawing.Graphics. It works fine except that the printer prints really slowly. I want to make my program take advantage of true...
1
by: Karthic | last post by:
When i right click on the .rpt file in the VS 2003, i see a property printer setting. It says "No printer" on the top and there is option to select printer and paper settings etc.. I want to...
1
by: Anthony Nystrom | last post by:
I need to within code control some printer settings before raising the print dialog... I need to set some properties for the printer such as "The Printer to Print too", Page settings such as paper...
1
by: sathyp | last post by:
Public Function SetPrinterDefaultsW(ByVal sPrinterName As String, _ ByVal nPaperSize As Long, ByVal nOrientation As Long) As Boolean Dim Prn As Printer Dim hPrinter As Long Dim pd As...
3
by: Giovanni Benedetti | last post by:
Hi everybody, sorry for my English first of all. I've an ASP page (ASP 3.0) used on an intranet which fill up some particular Mail sheets getting data from a database. Those pre-compiled sheets...
9
by: mukeshhtrivedi | last post by:
We have MS Access 2000 Application (on Network- file server) and it workd fine as intended. However in one of our Windows XP computer (workstation) in bookd jobs module 10 digit field shows 8...
4
by: Ian | last post by:
I have an Access 97 database, on a Report I have the print option set to print to the PC’s default printer rather than a printer selected from the list. My question is: Can I allow the user to...
1
by: Scott | last post by:
Hello- I have a contol button on a form that I want to code to open a report (rptReviews), then display the print dialogue box so that users can select a printer. This report needs color, but...
3
by: getmeidea | last post by:
Hi All, In javascript i am using the code window.print(). It opens the printer dialogue box and user has to confirm. I need the code to print the page directly without promoting Printer Dialogue...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.