PageSetupDialog "Printer..." button disabled

  • Thread starter Thread starter Joel Moore
  • Start date Start date
J

Joel Moore

This is driving me nuts. What would cause the "Printer..." button on the
PageSetupDialog to be disabled? I've got the AllowPrinter property set to
True but the button still won't enable.

Joel Moore
 
This is driving me nuts. What would cause the "Printer..." button on
the PageSetupDialog to be disabled? I've got the AllowPrinter
property set to True but the button still won't enable.

Joel Moore

Dammit!! Not two minutes after I posted this did I find the answer.

My app is using both the PageSetupDialog and the PrintPreviewDialog and I
never set the Document property for the PageSetupDialog. I was simply
setting the PageSetupDialog.PageSettings to
PrintDocument.DefaultPageSettings and then copying them back after
receiving a DialogResult.OK from PageSetupDialog.ShowDialog.

Hopefully that helps someone as dense as myself confused by this issue.

Joel Moore
 
Back
Top