Skip to Content
0
Former Member
Jan 11, 2011 at 04:06 AM

Could not export a report to xml including page header/footer in VS2010

101 Views

Hi,

Could any one tell me how to export a report to xml including its page header or footer?

I can export a report to xml file but the exported xml file does not have contents of page header or page footer.

The exported xml file have default schema, ant its schema does not have any "Page" definitions.

Are there any ways to export entire the report's contents to xml?

* My code is followings;

var rpt = new ReportDocument();
                rpt.Load(fiRPT.FullName); // fullpath of a report file.
                rpt.SetDataSource(GetDataSetFromXml(fiXML)); //get a dataset from xml datasource
                rpt.ExportToDisk(CrystalDecisions.Shared.ExportFormatType.Xml, outputfilepath);

* The exported xml file includes following reference for xml schema;

http://www.businessobjects.com/products/xml/CR2008Schema.xsd

This xml schema doesn't have "Page Header" and "Page Footer". (you can download a xsd file from the URL.)

Any help would be greatly appreciated.

thank you.