- SingleWOSimplified_PM (19).mrt
- (2.3 MiB) Downloaded 5 times
Sorry, maybe we did not exactly understand your question. Could you explain your issue in more detail?
Please clarify which product and version are you use?
Could you send a sample project that reproduces the issue for analysis?
When I generate the report using the designer desktop (v 2022.4.5) the pdf is ok (see fromDesigner.pdf). But when I generate the report using .NET Engine (v 2022.4.5) the pdf is not ok, some tables are empty.
See table Remarks, Assets, Spares in the pdf generated by designer is ok but not in the file generated by NET library.
> But when I generate the report using .NET Engine (v 2022.4.5) the pdf is not ok, some tables are empty.
Could you show your code or send us a sample project that reproduces the issue?
What else do you need? I sent you all the information.
First create object "JObject data" according with the format, then:
// Load the template:
// create the dataset
var dataSet = StiJsonToDataSetConverter.GetDataSet(data);
// Assign the dataset
The problems raised in the arrays.
If you need further information, I recommend to have a screen sharing session.
We couldn't reproduce the issue.
Please send us a sample project that reproduces the issue for analysis.
- Screenshot 2022-11-28 235450.png (276.33 KiB) Viewed 47 times
Thanks of the response. First, let me comment that the pdf you show does not have the desired information. If you see the number of the dataset is "PM.AB5143R" and in the pdf it's shown "PM.AC0427I" (see the attachment). I think this is the test dataset.
I solved the issue by adding the clear statement (bold).
var report = new StiReport();
var dataSet = StiJsonToDataSetConverterV2.GetDataSetFromFile("C:\\SWO.IN.PRES.DEMO.PM.AB5143R.json")
report.Dictionary.DataSources.Clear(); //This comand solved the issue
Is it correct?
The other issue was the library, I was using StiJsonToDataSetConverter not StiJsonToDataSetConverterV2, what is the difference?
- Screenshot 2022-11-29 141519.png (40.22 KiB) Viewed 31 times
StiJsonToDataSetConverter is the old version. You should use StiJsonToDataSetConverterV2 version.