PageSetUpDialog not showing Defaults

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am trying to use the PageSetUpDialog and set some defaults before it shows;

PageSetUpDialog1.Document.DefaultPageSettings.Landscape =True
PageSetUpDialog1.PrinterSettings.DefaultPageSettings.Landscape = True
PageSetUpDialog1.ShowDialog

However, the dialog shows the Portrait checked, not the landscape when it
shows up. This is also the case when I try to set the default margins. Why
does the dialog not show the defaults that I have set?
 
Never mind, I finally got it. I needed to set the
PageSetUpDialog1.PageSettings to the initial values, not the Document
defaultsettings.
 

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