ActiveReports打印的问题(this.Document.Print();怎么调用呢)
我是用 DataDynamics.ActiveReports.Web 控件,来显示.rpx 报表文件的。
button事件打印代码是:
{
//WebViewer1.Report.Run();
WebViewer1.Report.Document.Print();
}
报错说:
It is invalid to show a modal dialog or form when the application is not running in UserInteractive mode. Specify the ServiceNotification or DefaultDesktopOnly style to display a notification from a service application.