on 09-10-2008 4:39 AM
I've got a relatively simple desktop application written in C# VS2005. I'm trying to get a report with a summarizing SubReport to display. The report displays fine without the SubReport and the SubReport displays okay as a stand alone, but I continue to crash with an "object not set to an instance..." error message. It must be that I'm not configuring the SubReport within the main report correct. I'm displaying the report using the CrystalReportViewer. Any help or sample code would be greatly appreciated.
TIA
Brad
Hello Brad,
please download a [sample How to add subreports in CS for VS 2005|ftp://ftp.businessobjects.com/pub/incoming/NET-CS2005_RAS-Unmanaged_CR115_Add_Subreport.zip].
Other [.NET samples|https://boc.sdn.sap.com/dotnet/samples] you might find on our [dev community|https://boc.sdn.sap.com/].
Best regards
Falk
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you for your reply. My problem seems to be how to get data into the subreport so that the overall report (report + subreport) can be displayed by the CrystalReportViewer control. I inserted the subreport directly into the report during design time (Insert - Subreport). I then load the report and its associated data using: mReportDocument.OpenSubReport("SubReportName).SetDataSource(dsSubReportData). I then use the CrystalReportViewer to be displayed etc. Does this additional information help?
Thanks
Brad
try this link:
More samples are here:
These may also be a good resources to have on hand:
And finally, this thread is good to take a look at too:
ftp://ftp.businessobjects.com/pub/incoming/CS_CreateReport_inproc_thread_936234.zip
Ludek
User | Count |
---|---|
81 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.