Posted 13 May 2024, 11:33 am EST
Hi,
Have ActiveReports18 installed. Working with standalone (rpx) reports where the parameter is being set with the OuterXml of an xml file which is then loaded into XMLDataSource to render the report. I also have some custom work done inside the report script to handle the logic related with different sub-elements of the xml passed in.
I would like to use the same report (rpx), but load the same parameter with json data (for different reasons) instead of xml as it is currently done.
If I pass the json instead of xml, how would I, inside the report script - ActiveReport.ReportStart, convert that json into xml? I would like to keep everything else in the report as it is. I assume the easiest would be to convert json to xml.
I know how one would convert json into xml in C#, but I did not see that ActiveReports18 supports Newtonsoft.Json, or any other System.XXX.Json assembly I could use to do this.
I’d appreciate the suggestion. Thank you…