大家好,当我的网站处于活动状态时尝试显示打印预览对话框时出现此错误
PrintPreviewDialog ppdlg = new PrintPreviewDialog();
ppdlg.ShowDialog();
我该如何解决这个错误
完全错误
Showing a modal dialog box or form when the application is not running in UserInteractive mode is not a valid operation. Specify the ServiceNotification or DefaultDesktopOnly style to display a notification from a service application.