我在 Dynamics AX 2012 中使用 DataProvider 类创建了 SSRS 报告。
当我在 AX 报告查看器窗口中打开报告时,一切正常,但问题是当我尝试生成打印预览或将报告直接发送到打印机时。
我得到例外:
Microsoft.Dynamics.AX.Framework.Reporting.Shared.ReportException: An error occurred rendering the report. Error message: The report execution 4ra2ylaiam4azjy1phpihni3 has expired or cannot be found. (rsExecutionNotFound)
at Microsoft.Dynamics.AX.Frameworks.Controls.ReportViewer.ServerReportAdapter.RenderReportViaURLAccess(Int32 startPage, Int32 endPage)
at Microsoft.Dynamics.AX.Frameworks.Controls.ReportViewer.ServerReportAdapter.RenderReportMetafiles(Int32 startPage, Int32 endPage)
at Microsoft.Dynamics.AX.Frameworks.Controls.PrintPreview.AxPrintPreviewControl.printPreviewPanel_Paint(Object sender, PaintEventArgs e)
at System.Windows.Forms.Control.OnPaint(PaintEventArgs e)
at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer)
at System.Windows.Forms.Control.WmPaint(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
在打印预览窗口上只出现红十字。
任何想法?请帮帮我 :)