cancel
Showing results for 
Search instead for 
Did you mean: 

Export report to legacy xml programmaticlly in .NET

Former Member
0 Kudos

I am trying export my crystal reports to legacy xml using crystal report for visual stuido 2010.

I found this post http://scn.sap.com/thread/1569343, it is very helpful, however, look at the code mentioned in the post,

I don't know how to get Rowset object, can you provide me with more details of how to implement the method "getSavedData" to get Rowset object?

Thanks.

' Get the saved data from the ReportClientDocument. 

     dim myDataRetriever

     set myDataRetriever = new DataRetriever

     myDataRetriever.setup(oReportClientDocument)

     dim oRowset

     set oRowset = myDataRetriever.getSavedData()

     ' View the result as xml.

     oRowset.saveToXML(Server.MapPath("result.xml"))

     response.redirect( "result.xml" )

I

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

I see this "saving legacy xml"  option in the crystal 2011 designer, I assume there should be a way to implement in code, can you help please?

Answers (3)

Answers (3)

Former Member
0 Kudos

still waiting for answers, thanks.

former_member183750
Active Contributor
0 Kudos

There are no exposed APIs for this type of export in any CR SDK,

- Ludek

Follow us on Twitter

Got Enhancement ideas? Try the SAP Idea Place

Share Your Knowledge in SCN Topic Spaces

Former Member
0 Kudos

still looking for an answer, thanks.

former_member188030
Active Contributor
0 Kudos

Hi Steven,

Take a look at the CR for VS 2010 Developer guide and API reference guide.

XML is listed as an available export format but this format produces XML using the SAP Crystal Reports XML schema.

- Bhushan

Follow us on Twitter

Got Enhancement ideas? Try the SAP Idea Place

Share Your Knowledge in SCN Topic Spaces

Former Member
0 Kudos

Thank you for reply. I have been looking at those references you mentioned for a while, I understand that the new crystal report has changed the xml schema and default xml is using the schema, however, I saw the crystal report designer still has an option to export to legacy xml, I just wanted to do it in the code, do you think it is possible?

Former Member
0 Kudos

anyone knows the solution or is there any other way to do this?