473,465 Members | 1,929 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Print Dialog

Hi,

I have written some code using the printdocument object, the code works fine
, but when the printer is printing an xp dialog box appears ( same one that
appears when you print in notepad ) stating what page number is printing. I
have looked at the PrintDocument to try and find a way of removing it in
code, but didnt see it....

if anyone knows how to do this in code or even as some form of windows
setting or tweak could they tell me please?

Thanks

Jon
Nov 21 '05 #1
3 1763
Hi,

The printdocuments printcontroller display that window. Try
this

PrintDocument1.PrintController = New
System.Drawing.Printing.StandardPrintController

http://msdn.microsoft.com/library/de...ollertopic.asp
Ken
------------------

"Jon Vaughan" <jo**********@hotmail.com> wrote in message
news:qV********************@fe07.news.easynews.com ...
Hi,

I have written some code using the printdocument object, the code works fine
, but when the printer is printing an xp dialog box appears ( same one that
appears when you print in notepad ) stating what page number is printing. I
have looked at the PrintDocument to try and find a way of removing it in
code, but didnt see it....

if anyone knows how to do this in code or even as some form of windows
setting or tweak could they tell me please?

Thanks

Jon

Nov 21 '05 #2
Hello,

Are we talking about the same dialog box ?
The one I mean is a small one that reads like :

PRINTING
Page X of Doc Y
"Ken Tucker [MVP]" <vb***@bellsouth.net> wrote in message
news:uW**************@TK2MSFTNGP14.phx.gbl...
Hi,

The printdocuments printcontroller display that window. Try
this

PrintDocument1.PrintController = New
System.Drawing.Printing.StandardPrintController

http://msdn.microsoft.com/library/de...ollertopic.asp
Ken
------------------

"Jon Vaughan" <jo**********@hotmail.com> wrote in message
news:qV********************@fe07.news.easynews.com ...
Hi,

I have written some code using the printdocument object, the code works
fine
, but when the printer is printing an xp dialog box appears ( same one
that
appears when you print in notepad ) stating what page number is printing.
I
have looked at the PrintDocument to try and find a way of removing it in
code, but didnt see it....

if anyone knows how to do this in code or even as some form of windows
setting or tweak could they tell me please?

Thanks

Jon

Nov 21 '05 #3
Hi,

That will prevent it from showing up.

Ken
-------------------
"Jon Vaughan" <jo**********@hotmail.com> wrote in message
news:ZC********************@fe07.news.easynews.com ...
Hello,

Are we talking about the same dialog box ?
The one I mean is a small one that reads like :

PRINTING
Page X of Doc Y
"Ken Tucker [MVP]" <vb***@bellsouth.net> wrote in message
news:uW**************@TK2MSFTNGP14.phx.gbl...
Hi,

The printdocuments printcontroller display that window. Try
this

PrintDocument1.PrintController = New
System.Drawing.Printing.StandardPrintController

http://msdn.microsoft.com/library/de...ollertopic.asp
Ken
------------------

"Jon Vaughan" <jo**********@hotmail.com> wrote in message
news:qV********************@fe07.news.easynews.com ...
Hi,

I have written some code using the printdocument object, the code works
fine
, but when the printer is printing an xp dialog box appears ( same one
that
appears when you print in notepad ) stating what page number is printing.
I
have looked at the PrintDocument to try and find a way of removing it in
code, but didnt see it....

if anyone knows how to do this in code or even as some form of windows
setting or tweak could they tell me please?

Thanks

Jon


Nov 21 '05 #4

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

Similar topics

0
by: KohlerTommy | last post by:
In my application I need to give the user the ability to print duplex if the selected printer supports duplex printing. Many of the printer options do not make much sense in my application, and...
1
by: John | last post by:
Hello, Is it possible to modify the print dialog box that appears when a user clicks File->Print? Is it possible to make this modification so that all Windows programs use the modified print...
1
by: hamil | last post by:
I am trying to print a graphic file (tif) and also use the PrintPreview control, the PageSetup control, and the Print dialog control. The code attached is a concatination of two examples taken out...
22
by: stephen | last post by:
I have created an order form that users javascript to create a new html document when the customers clicks the "print page" button. Once the new document has been created it then prints the...
3
by: John Peterson | last post by:
Hello all! I'm at my wits end trying to search for what I assumed to be a relatively straightforward task. I have a Web application written in C#, and I have a button on the form that I want to...
0
by: Siv | last post by:
Hi, This is driving me nuts, I have created a custom print preview dialog, I have a toolbar at the top of the window that allows the user to select a page setup dialog and a printer dialog. All...
1
by: milti | last post by:
Hi All!! Is there any way, I can avoid the Print Dialog from appearing multiple times? Let me be more clear. I've say three files. file1.html, file2.html and file3.html. there's a button...
2
by: Brad Pears | last post by:
I have some sample code that uses the print dialog, print preview and a print direct options. If I select print preview and then click the printer icon from that, the document prints. If I...
1
by: Jorgen Bodde | last post by:
Hi All, I am at a loss. This is slightly OT because it concerns Windows and HTML printing. I would like to print a HTML document from Python, but not showing the printing dialog. After numerous...
0
by: Andrew Meador | last post by:
I have implemented a printing scenario where an html file is printed using the the following code: public void PrintHtmlFile(string url) { RegistryKey IERegKey; string header = null; string...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
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...
0
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...
0
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,...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
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 ...

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.