Confused about the properties for PageSettingDialog

  • Thread starter Thread starter Just Me
  • Start date Start date
J

Just Me

PageSetupDialog has a property "Document" of type "PrintDocument"
It also has properties PageSettings and PrinterSettings
PrintDocument also has these 2 properties.
How are these different then the ones in "PrintDocument"
Before I call a PageSetupDialog does it make sense to set all 3 ?
After I call a PageSetupDialog where do I look for the changes?

Confused
Thanks for any help
 
By default when you create a PrintDocument the default configuration for the
default printer and default page settings are set so you don't need to set
them. The PageSetup dialog just makes it easy at runtime for the user to
change the print (printer and page) settings, for this you give it a
reference to your document and it automatically binds to the PrinterSettings
and PageSettings of the PrintDocument and any changes in the GUI will be
stored in your document.

PrintDocument doc = new PrintDocument();
PageSetupDialog pageDlg = new PageSetupDialog();
pageDlg.Document = doc;
pageDlg.ShowDialog();

--Liam.
 

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

Back
Top