choupi wrote:
Hello,
Is there a way to call a printDialog from a printPreviewDia log (from print
icon for example)?
Indeed, the print icon in the printpreviewdia log 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
OnPrintButtonCl ick, 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
PrintButtonEnab led property or something like that.
PrintPreviewDia log and TabControl are two of the hokier controls in
..NET. I hope that someday they'll revisit them and make much-needed
improvements.