Save data with report - for reports with subreports.
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?