cancel
Showing results for 
Search instead for 
Did you mean: 

Save data with report - for reports with subreports.

Former Member
0 Kudos

Hello,

My environment: MS VS2010, Crystal Reports 2008 with SP3.

I have the Crystal Report with 1 subreport.

Both the main report and the subreport have 1 parameter.

I programmatically set the values for each parameter, set Report.ReportOptions.EnableSaveDataWithReport = True, and then call Report.SaveAs("C:\newReport.rpt", True)

but there is no data in the saved report.

It works when main report doesn't have subreports.

How can I save report with the data for the report that has subreport?

Accepted Solutions (1)

Accepted Solutions (1)

former_member183750
Active Contributor
0 Kudos

You can not use CR2008 with VS2010. Use [CRVS2010|http://www.sdn.sap.com/irj/sdn/crystalreports-dotnet].

- Ludek

Follow us on Twitter http://twitter.com/SAPCRNetSup

Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports]

Answers (2)

Answers (2)

0 Kudos

Hello,

SaveAs does not save data with report, it only saves the report with any changes to applied. Export the report to RPT format saves the data.

Go to this page to get[ Crystal Reports for Visual Studio 2010|http://www.sdn.sap.com/irj/boc/crystalreports-dotnet] plug-in. And CR 2010 supports reports created in CR 2008 and CR 2008 will open reports exported from CR for VS 2010.

Then it supports 4.0 framework. Cr 2008 only supports 3.5 framework.

Thank you

Don

Edited by: Don Williams on May 10, 2011 1:15 PM

Former Member
0 Kudos

Hi Ludek.

Could you please explain - what does it mean "You can not use CR2008 with VS2010"?

AFAIK, CR2008 contains .NET classes for working with Crystal Reports files.

I need to support the .NET project (.NET Framework 4.0, MS VS 2010) that works with Crystal Reports 2008.