473,407 Members | 2,306 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,407 software developers and data experts.

Printer PageSetupDialog PageSettings not being initialized for AdobePDF?

My C# app. apparently has problems with PageSettings not being
initialized properly after calling PageSetupDialog. If a user selects a
non-default printer from PageSetupDialog, the PageSize is apparently
not-initialized properly. It appears to be printing to a very small
page size and only prints a small piece of each page. Alternatively, if
if a user selects the new printer, then user selects the paper size from
the printer properties, it works.
Steps to Reproduce Problem
--------------------------
1 - Open PageSetupDialog
2 - Click Printer button and a secondary Page Setup dialog displays
3 - Select the non-default printer Adobe PDF from the secondary Page
Setup dialog
4 - Back-out and close both dialogs by pressing OK
5 - Verify printed page size not correct after calling PrintDocument.Print
Work-Around
-----------

Re-select Letter Page Size from the Printer properties rather than
PageSetupDialog

1 - Open PageSetupDialog
2- Click Printer button and a secondary Page Setup dialog displays
3 - Select the non-default printer Adobe PDF from the secondary Page
Setup dialog
4 - Click Properties button on the secondary Page Setup dialog
5 - Click OK button without changing any settings on the secondary Page
Setup dialog
6 - Back-out and close both dialogs by pressing OK
7 - Verify printed page size is correct after calling PrintDocument.Print
Thanks in advance for any tips on PageSettings and using PageSetupDialog.

-Ed Sutton
no************@engius.com
Aug 22 '06 #1
1 4810
I found NET 1.1 bug reports concerning the use of metric margins with
PageSetupDialog. While I am using NET 1.1, I am not using metric.

-Ed

Ed Sutton wrote:
My C# app. apparently has problems with PageSettings not being
initialized properly after calling PageSetupDialog. If a user selects a
non-default printer from PageSetupDialog, the PageSize is apparently
not-initialized properly. It appears to be printing to a very small
page size and only prints a small piece of each page. Alternatively, if
if a user selects the new printer, then user selects the paper size from
the printer properties, it works.
Steps to Reproduce Problem
--------------------------
1 - Open PageSetupDialog
2 - Click Printer button and a secondary Page Setup dialog displays
3 - Select the non-default printer Adobe PDF from the secondary Page
Setup dialog
4 - Back-out and close both dialogs by pressing OK
5 - Verify printed page size not correct after calling PrintDocument.Print
Work-Around
-----------

Re-select Letter Page Size from the Printer properties rather than
PageSetupDialog

1 - Open PageSetupDialog
2- Click Printer button and a secondary Page Setup dialog displays
3 - Select the non-default printer Adobe PDF from the secondary Page
Setup dialog
4 - Click Properties button on the secondary Page Setup dialog
5 - Click OK button without changing any settings on the secondary Page
Setup dialog
6 - Back-out and close both dialogs by pressing OK
7 - Verify printed page size is correct after calling PrintDocument.Print
Thanks in advance for any tips on PageSettings and using PageSetupDialog.

-Ed Sutton
no************@engius.com
Aug 22 '06 #2

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

Similar topics

0
by: Tessa | last post by:
Is there any security reason why you cannot print to a network printer from ASP.NET under IIS6 on Windows 2003 server? I'm using ASP.NET code to print to a server print queue using...
0
by: Andy Sze | last post by:
Visual Studio.net 2003 no yet fix the PageSetupDialog bug. http://support.microsoft.com/?id=814355 Here is my new solution: Private Sub btnPageSetup_Click(ByVal sender As System.Object, _...
2
by: Amjad | last post by:
I use the PageSetupDialog box to allow the user to change the page margins before printing. The problem is when I open the dialog box and type in margin values in millimeters (as it says in the...
0
by: hamil | last post by:
I have a graphic file demo program that almost works. My form has a PageSetupDialog, PrintPreview, PrintDialog, and a PrintDocument control. Sample code follows. Now here is the quesion. When I...
1
by: Ratan | last post by:
Hello, I am using PageSetupDialog in my application to change the pagesettings of the document but i dont want to show all the page size to the user, I want to show only A3 and A4 size for...
4
by: c_shah | last post by:
How to change and set default printer using Visual Basic 2005 The following works within my VB 2005 application but does any one have better alternative. /**** Dim wshnetwork As Object =...
0
by: Fabio | last post by:
Hi all! I have some problems with the PrintDocument under Fw 1.1. I create a new document pd = new PrintDocument And it seems that the pd.PrinterSettings are the ones defined by the...
0
by: ppeterkin | last post by:
I customized a PrintPreviewDialog by adding a button to it's toolstrip that opens up a PageSetupDialog. The problem is changes made to the page setup are not passed to the PrintPreviewDialog until...
0
by: ywscr | last post by:
Hello, I am using PageSetupDialog in my application to change the pagesettings of the document,I changed PaperSize To "A4" in PageSetupDialog ,But it's result PaperSize no change ??I want Set...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.