choupi wrote:
Hello,
Is there a way to call a printDialog from a printPreviewDialog (from print
icon for example)?
Indeed, the print icon in the printpreviewdialog prints directly the
document without lunching the printdialog (i.e. the user can't choose the
print parameters).
Thanks a lot.
I ended up creating a File --Print... menu option that brings up the
print dialog.
One of the irritating things about the print preview dialog is that a
lot of things that you would want to change (like this particular
point) are "private" within the control and therefore not changeable. I
would have liked to have seen protected methods like
OnPrintButtonClick, etc, so that one could override the behaviour.
It would also have been nice to be able to hide / disable buttons on
the toolbar if we wanted to, even if the only way were to set a
PrintButtonEnabled property or something like that.
PrintPreviewDialog and TabControl are two of the hokier controls in
..NET. I hope that someday they'll revisit them and make much-needed
improvements.