挂上PrintPreviewShowing事件,在事件中调整WindowState。- this.fpSpread1.PrintPreviewShowing += new PrintPreviewShowingEventHandler(fpSpread1_PrintPreviewShowing);
- void fpSpread1_PrintPreviewShowing(object sender, PrintPreviewShowingEventArgs e)
- {
- e.PreviewDialog.WindowState = FormWindowState.Maximized;
- }
复制代码 |