cancel
Showing results for 
Search instead for 
Did you mean: 

Inserting subreport for the first time; not working. Why?

Former Member
0 Kudos

I've never had to insert a subreport into a report, until now. It's turning out to be harder than I thought.

I don't need any links to my subreport.

Here is the code I'm using, but it isn't working:

report.Subreports["ClientBillSubReport.rpt"].SetDataSource(dataset.Tables["Items2"]);

Any ideas on what I'm doing wrong?

Thanks for your time!

Accepted Solutions (1)

Accepted Solutions (1)

former_member183750
Active Contributor
0 Kudos

Not sure I understand the "code", but you will have to use the RAS SDK for this. See the sample NET-CS2003_RAS-Managed_BE115_Add_Subreport at the following link:

https://wiki.sdn.sap.com/wiki/display/BOBJ/NETRASSDK+Samples

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]

Former Member
0 Kudos

I'm not sure why my code was messed up. Here it is:

report.Subreports["ClientBillSubReport.rpt"].SetDataSource(dataset.Tables["Items2"]);

I don't see any examples I'm looking for in your link.

Answers (0)