on 05-10-2011 11:36 AM
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?
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]
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.