0

我在 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)

在打印预览窗口上只出现红十字。

任何想法?请帮帮我 :)

4

1 回答 1

0

在我的情况下,问题原因是类型为“DECIMAL”的报告参数。将其替换/转换为“字符串”(在 AX 端和 SSRS 端)后 - 问题已解决。

这是 Standart AX 2012 报告:AssetExploatiation

于 2015-10-19T14:23:08.810 回答