Hi
After adding SSRS DataMethod the report (AX 2012 R3) output shows #Error for the element calling the DataMethod.
[DataMethod(), PermissionSet(SecurityAction.Assert, Name = "FullTrust")] public static string GetDataMatrixCode(string currentPage, string totalPages, string custInvoiceAccount) { string currentPagePad = currentPage.PadLeft(3, '0'); string totalPagesPad = totalPages.PadLeft(3, '0'); string inputStr = currentPagePad totalPagesPad custInvoiceAccount; string outputStr; try { DataMatrix dm = new DataMatrix(inputStr, 0, 0); outputStr = dm.Encode(); dm.Dispose(); } catch (Exception ex) { outputStr = ex.Message ' ' ex.InnerException; } return outputStr; }
Returning just the inputStr works well, the problem seems to be when constructing the DataMatrix.dll. The referenced dll resides in client- and server bin.
How can we find the error reason? Must dll reference be placed somewhere else?
Thanks for help.
Jan