Skip to Content
author's profile photo Former Member
Former Member

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

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!

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Jul 19, 2011 at 10:59 PM

    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]

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      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.

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.