Report using XML DataSource

Stimulsoft Reports.PHP discussion
Post Reply
jignesh
Posts: 2
Joined: Fri May 27, 2011 12:10 am
Location: india

Report using XML DataSource

Post by jignesh »

I seen some question related to this topic , in which it is describe that we can either generate xml at client side or on server side....

Can any one guide me how exactly we can store xml at client side ? what are the configuration that need to be done in this case in which files ?

Also I want to give xml path dynamically to my mrt file how is this possible ?

If someone has any working example please snap working code here if possible....

Thanks
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

Report using XML DataSource

Post by Vladimir »

Hello,

The XML data file format will be standard for ADO.NET, please see the 'DataFormat.xml' attached file. You can create it with any text editor, or programmatically on the server side using PHP script.
Also I want to give xml path dynamically to my mrt file how is this possible?
1. Set the FlexAdapterXmlData option to False in the 'config.xml' file
2. Configure an XML data provider as you need in the 'database_xml.php' file. For example:

Code: Select all

function sti_xml_get_data($data_path, $schema_path)
{
	$data = file_get_contents($data_path); // You can set this path dynamically
	return $data;
}
Thank you.
Attachments
1071.DataFormat.xml
(583 Bytes) Downloaded 555 times
Post Reply