How to open Print Preview maximized

Hi,

I’m trying to get the Print Preview of the Diagram (v 2.2.1) to show up
maximized when opened. The method PrintPreview() doesn’t take any
arguments and I can’t seem to locate any intuitive attributes that
would preset that.

Any suggestions?

Thanks.

Mike

You’ll need to override GoView.PrintPreviewShowDialog. Here’s the implementation in GoView:
protected virtual void PrintPreviewShowDialog(PrintDocument pd) {
PrintPreviewDialog dlg = new PrintPreviewDialog();
dlg.UseAntiAlias = true;
dlg.Document = pd;
dlg.ShowDialog();
}