473,385 Members | 1,922 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,385 software developers and data experts.

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 1762
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: 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
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...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.