Question

How can we convert data displayed in a reportviewer to an xml file?

Was it helpful?

Solution

Call the .Render method, with the first parameter (format) equal to "XML". Just like in the examples at http://msdn.microsoft.com/en-us/library/microsoft.reporting.webforms.localreport(VS.80).aspx -- except use "XML" instead of "Excel" as the format (and of course something like .xml instead of .xsl as the format for the file you write;-).

OTHER TIPS

If you are running ReportViewer in local mode, your XML file is the RDLC file. Just open the RDLC file in a XML viewer.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top