473,657 Members | 2,597 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 9147
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" <Ul************ **@discussions. microsoft.com> wrote in
message news:02******** *************** ***********@mic rosoft.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 "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:
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" <Ul************ **@discussions. microsoft.com> wrote in
message news:02******** *************** ***********@mic rosoft.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(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
http://www.kjmsolutions.com

"UltimateNickFu ry" <Ul************ **@discussions. microsoft.com> wrote in
message news:13******** *************** ***********@mic rosoft.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 "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:
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" <Ul************ **@discussions. microsoft.com> wrote in
message news:02******** *************** ***********@mic rosoft.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
3452
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 type fonts. So I assume it's possible to send Font Type and the text to the printer, and the printer should digest and print faster. Still, barcode info needs to be sent as an image. When I print fifty copies of the same label it prints really...
1
12159
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 know how will this affect a report rendered by a crystal viewer. I have a web page with a crystal viewer rendering the report on the page. I build my application in one of my development machines and deploy it
1
4304
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 type (according to the list associated with the printer driver itself) and orientation... It would be nice to programmically control the printer, paper settings and orientation all together to avoid the print dialog and the potential for the user to...
1
6111
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 PRINTER_DEFAULTS Dim pinfo2 As PRINTER_INFO_2 Dim pinfo8 As PRINTER_INFO_8 Dim pinfo9 As PRINTER_INFO_9 Dim dm As DEVMODEW Dim yDevModeData() As Byte
3
5554
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 are then showed in IE 6 for checking and then have to be printed. To correct printing the sheets I have to change the print margins and paper orientation from IE 6 settings. Reading around it looks like I can't change IE 6 print settings without
9
1546
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 digits only and than we need to scroll with cursor to see last two digits. I have tried to change the display settings of monitor and even I replaced the monitor but still it shows 8 digit only. Is there any other settings for paricular workstaion I...
4
4528
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 change this setting so that by default the report will print to a specific printer that they select rather than the PC’s default printer? The reason for wanting to do this is that I don’t know the names of the printers they might have and the DB...
1
2513
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 most of my team has their default printer set to our departments monochrome printer. Thus i wanted to give them the option to run it to our color printer during the print process. Alternately, is there a way to code a button to drive a report to
3
2691
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 Box. Thanking you,
0
8392
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8823
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8503
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8605
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7321
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4301
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2726
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1950
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1607
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.