Skip to Content

CR - How to create 2 subreports which have the same formatting?

Hi everybody!

I have a main CR report which contains several on-demand subreports.

Sub1 is already complete.

I now want to create Sub2 so that (apart from the different fields), it looks exactly as Sub1 as far as placement of the rows are concerned.

Sub2 should have same number of rows on each page as Sub1. and the rows should occupy identical positions.

Both Sub1 and Sub2 have 2 fields in common: Department and ItemCode, but the other fields may be different. Also the datasource is another stored procedure.

An analogy will help here:

If I print both subreports separately, and then glue the 2 subreports end to end, they should read like a single giant report.

How should I proceed to achieve this?

Can I start from a copy of Sub1 and modify the datasource (which is another stored procedure) and modify the fields to arrive at Sub2?

Thanks

Leon Lai

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on Nov 19, 2012 at 09:21 AM

    Hi Leon,

    Yes, set the Datasource location of Subreport 2 to point to the new Stored proc.

    You would need to map fields manually though, however, this might be the easiest way to go about doing this.

    -Abhilash

    Add a comment
    10|10000 characters needed characters exceeded

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.