We are attempting to load an XML file through the API into Crystal Reports 13. We are using this code:
rptDoc = new CrystalDecisions.CrystalReports.Engine.ReportDocument();
rptDoc.Load(@strTemplateLocation);
DataSet ds = newDataSet();
ds.ReadXmlSchema(@strXSDLocation);
ds.ReadXml(@strXMLLocation);
rptDoc.SetDataSource(ds);
try
{
rptDoc.Export();
}
catch(Exception ex)
{
ExceptionManager.InsertException(ex);
throw ex;
}
When we execute this code we get "Failed to load database information"
The RPT was built using the same schema and XML file.
How best to use the API to load complex XML files that work in the designer using the XML and Web Services Connection?
Thanks,
Tom