Quantcast
Channel: SCN : Discussion List - SAP Crystal Reports, version for Visual Studio
Viewing all articles
Browse latest Browse all 3636

Load XML File Into Report

$
0
0

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


Viewing all articles
Browse latest Browse all 3636

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>