Printer PageSetupDialog PageSettings not being initialized for AdobePDF?

E

Ed Sutton

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
(e-mail address removed)
 
E

Ed Sutton

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top