Display datetime, company information and page number on SSRS report in D365FO
Hi,
Please refer to my earlier post to view the report SSRSPrecisionDesign related classes, tables and menuItem.
In this post, we will try to add the page number, company information and datetime stamp to know when the report was generated.
Step 1: Added a text box just beneath the report title and added the expression to display the company name.
Step 2: Added a text box to the extreme right that aligns with the report title and added the expression to display the text as "Page <currentPageNumber> of <TotalPages>"
=System.String.Format(Labels!@SYS179442, "" & Globals!PageNumber & " of " & Globals!TotalPages & "")
Step 3: Added a text box to the extreme right that aligns with the company name and added the expression to display the datetime stamp.
=Microsoft.Dynamics.Framework.Reports.DataMethodUtility.ConvertUtcToAxUserTimeZoneForUser(Parameters!AX_CompanyName.Value, Parameters!AX_UserContext.Value, System.DateTime.UtcNow, "d", Parameters!AX_RenderingCulture.Value) & vbCrLf & Microsoft.Dynamics.Framework.Reports.DataMethodUtility.ConvertUtcToAxUserTimeZoneForUser(Parameters!AX_CompanyName.Value, Parameters!AX_UserContext.Value, System.DateTime.UtcNow, "t", Parameters!AX_RenderingCulture.Value)
Step 4: Deployed the report and generated it to see the values displayed on the report.
Regards,
Chaitanya Golla

Like
Report
*This post is locked for comments