PrintDialog fubar ?

  • Thread starter Thread starter Nick Butler
  • Start date Start date
N

Nick Butler

Hopefully, I'm missing something here, but this is my problem :

I instantiate a PrintDialog object and set the PrinterSettings property. I
call ShowDialog, and the user selects PrinterResolution and Landscape
values.

Now, because these properties are in PageSettings, not PrinterSettings,
there is no way to find out what the user selected ?
 
Hello Nick,

Thanks for posting in the group.

Based on my understanding, now the question is: How to get the current
page's PrinterResolution and Landscape property when using PrintDialog.
Please correct me if I have misunderstood anything.

Generally PrinterSetting is used for setting of the Printer. It only has
the DefaultPageSettings for page settings. The PrinterResolutions property
of it gets all the resolutions that are supported by this printer. We can't
get the current PrinterResolution by it.

In order to achieve what you need, we can call PageSetupDialog instead. By
doing it, we can call its PageSettings property to get PageSettings of the
page and then get the PrinterResolution. This way also applies to Landscape
property.

Does that answer your question?

Best regards,
Yanhong Huang
Microsoft Community Support

Get Secure! ¨C www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
 
I do use the PageSetupDialog from my "File/Page Setup" menu item to set the
default PageSettings.

My problem is that I need to use the PrintDialog from my "File/Print" menu
item to allow the user to select a page range to print. This should also
allow the user to override the previously-set PageSettings for just this
print.

The PrintDialog has options for PrinterResolution and Landscape via the
printer Properties button. These are the settings I want to retrieve.
 
Hello Nick,

How are things going? I would appreciate it if you could post here to let
me know the status of the issue. If you have any questions or concerns,
please don't hesitate to let me know. I look forward to hearing from you,
and I am happy to be of assistance.

Thanks for participating the community.

Best regards,
Yanhong Huang
Microsoft Community Support

Get Secure! ¨C www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
 
Back
Top