XML problem
-
- Posts: 2
- Joined: Wed Jul 27, 2016 8:21 pm
XML problem
I was trying to export a report to xml but the DATATABLE class was converted with the name “table1” instead of their true name.
Re: XML problem
Hello.
Sorry, maybe we don't understand you right.
Could you describe your scenario more detailed?
Thank you.
Sorry, maybe we don't understand you right.
Could you describe your scenario more detailed?
Thank you.
Re: XML problem
Hello,
I have the same problem.
if I try to export a report as xml, the name of the node elements is not being assigned correctly.
I created a example on GitHub to illustrate the problem.
https://github.com/RodrigoGT/StimulsoftSample
the sample shows two xml, the first xml is what I expected to be generated by the report
and second xml was generated by the report.
if you look into the xml generated by the report, you'll notice that the element name appears as "Table1" but it supposed to look like "Category".
how do I set the element name correctly?
I have the same problem.
if I try to export a report as xml, the name of the node elements is not being assigned correctly.
I created a example on GitHub to illustrate the problem.
https://github.com/RodrigoGT/StimulsoftSample
the sample shows two xml, the first xml is what I expected to be generated by the report
and second xml was generated by the report.
if you look into the xml generated by the report, you'll notice that the element name appears as "Table1" but it supposed to look like "Category".
how do I set the element name correctly?
Re: XML problem
Hello, Fabiano.
We have added a new export setting:
StiXmlExportSettings.TableName
It will be available in the 2018.1.4 build.
You could set this option and get necessary result.
Thank you.
We have added a new export setting:
StiXmlExportSettings.TableName
It will be available in the 2018.1.4 build.
You could set this option and get necessary result.
Thank you.
Re: XML problem
Hello,
the problem was not fixed.
the export settings are not being passed on "StiReport.Export.cs" to "StiXmlExportService", on method "public void ExportDocument(StiExportFormat exportFormat, StiExportService exportService, Stream stream, StiExportSettings settings)"
a possible solution is
the problem was not fixed.
the export settings are not being passed on "StiReport.Export.cs" to "StiXmlExportService", on method "public void ExportDocument(StiExportFormat exportFormat, StiExportService exportService, Stream stream, StiExportSettings settings)"
a possible solution is
Re: XML problem
Hello.
Yes, there was an issue with ExportDocument() method.
We are fixing this issue right now.
You should set the TableName of the StiXmlExportSettigns and use the ExportXML() method.
Thank you.
Yes, there was an issue with ExportDocument() method.
We are fixing this issue right now.
You should set the TableName of the StiXmlExportSettigns and use the ExportXML() method.
Thank you.
Re: XML problem
Hello,
An error was introduced in update 2018.1.5, an argument exception "An DataType property of the StiXmlExportSettings class can't be changed!" was thrown when I created a new instace of StiXmlExportSettings.
An error was introduced in update 2018.1.5, an argument exception "An DataType property of the StiXmlExportSettings class can't be changed!" was thrown when I created a new instace of StiXmlExportSettings.
Re: XML problem
Hi Rodrigo,
Thank you for the sample project that reproduces the issue. The problem has been confirmed, we will let you know in this topic once it is fixed.
Thank you,
Edward
5629
Thank you for the sample project that reproduces the issue. The problem has been confirmed, we will let you know in this topic once it is fixed.
Thank you,
Edward
5629
Re: XML problem
Hi Rodrigo,
The issue has been fixed and the next build will have the fix included.
In the meantime, could you please use the following code, that will create a similar object of settings:
Thank you,
Edward
The issue has been fixed and the next build will have the fix included.
In the meantime, could you please use the following code, that will create a similar object of settings:
Code: Select all
var settings = new StiDataExportSettings(StiDataType.Xml);
Edward