Runtime XML settings
Runtime XML settings
I would like to create XML file in temporary folder during program execution. I can easily obtain temporary path of workstation but did not found proper way to assign newly created file to report.
If XML is in default folder everything works fine.
I tried to find solution in Programming Manual but no luck.
Djordje
If XML is in default folder everything works fine.
I tried to find solution in Programming Manual but no luck.
Djordje
Re: Runtime XML settings
Hello.
Could you specify what file do you need to create?
Please, describe your issue more detailed.
Thank you.
Could you specify what file do you need to create?
Please, describe your issue more detailed.
Thank you.
Re: Runtime XML settings
Program creates xml file during execution and places it in same folder where program is. When i try to use that xml file from other workstation report is not working cause path to xml file is not ok (cause on that workstation there is no such folder). My question is: how to tell report where is the path of xml file? I want to make and send path of xml file to report.
Thank you.
Thank you.
Re: Runtime XML settings
Hello.
You could use next code to change path:
Thank you.
You could use next code to change path:
Code: Select all
(report.Dictionary.Databases[0] as StiXmlDatabase).PathData = "C:\\Program Files (x86)\\Stimulsoft Reports.Ultimate 2014.2 Trial\\Bin\\Data\\Demo2.xml";
(report.Dictionary.Databases[0] as StiXmlDatabase).PathSchema = "C:\\Program Files (x86)\\Stimulsoft Reports.Ultimate 2014.2 Trial\\Bin\\Data\\Demo2.xsd";
Re: Runtime XML settings
Thank you Aeksey. It was just what I needed.
Best regards,
Djordje Radovanovic
Best regards,
Djordje Radovanovic
Re: Runtime XML settings
Great!
Have a nice day!
Have a nice day!