Output as XML (PHP)

Set up and configure output to XML from your reporting application.


// code snippet starts

$dataFile = "./OrderReportData.xml";// name of XML file to be created
$designFile = "OrderReport.4rp";
// Configure the report engine to output the XML file by setting the GREDATAFILE environment variable
// Create the report engine 
$greRunnerObj = new FourjsReportRuntime($designFile, $reportClassName);
// Run the report, creating the XML file
$reportData = new OrderReport\OrderReport($connection);

// code snippet ends

For the full list of properties and methods, refer to the Genero Report Writer PHP API documentation.