how to create crystal report using xml files???

Recommended Answers

All 3 Replies

Your question is lacking the details to give you a good solid answer.

If your xml is well structured data and you have a crystal report that you need to feed data in to, then I would read the XML into a datatable or dataset (whichever is appropriate) and pass that to the crystal report to consume.

Something like this:

Dim DT as datatable
dt.readXML(filename)

'Not sure of the CR syntax here
Report.datasource = dt
report.run

The most poweful feature of ADO.NET is it's ability to convert stored data stored in data source to XML. Data provides methods WriteXML,ReadXml,and GetXml which enables developers to create XML documents from data sources and convert data from XML into data sources.Maybe that piece of information will help you out a bit....

Hi,

You can find an example, here.
To use this you need to have a VS version that installed the Crystal Report template.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.