Page 1 of 1

Runtime XML settings

Posted: Mon Nov 03, 2014 1:10 am
by dikan
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

Re: Runtime XML settings

Posted: Mon Nov 03, 2014 11:21 am
by HighAley
Hello.

Could you specify what file do you need to create?
Please, describe your issue more detailed.

Thank you.

Re: Runtime XML settings

Posted: Thu Nov 06, 2014 12:27 pm
by dikan
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.

Re: Runtime XML settings

Posted: Thu Nov 06, 2014 12:38 pm
by HighAley
Hello.

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";
Thank you.

Re: Runtime XML settings

Posted: Thu Nov 06, 2014 11:52 pm
by dikan
Thank you Aeksey. It was just what I needed.

Best regards,

Djordje Radovanovic

Re: Runtime XML settings

Posted: Fri Nov 07, 2014 5:56 am
by Andrew
Great!

Have a nice day!