Subreport in a Subreport

Hi,
Is it possible to create subreport in a subreport.I m using CR 2008 version.If yes, then please help me  . If no, then is there any workaround for this.
Thnx

Hi Ramy
A subreport is a report within a report. The process for creating a subreport is similar to the process of creating a regular report. A subreport can have most of the characteristics of a report, including its own record selection criteria.
The only differences between a subreport and a primary report are that a subreport:
u2022 Is inserted as an object into a primary report; it cannot stand on its own
(although a subreport can be saved as a primary report).
u2022 Can be placed in any report section and the entire subreport will print in
that section.
u2022 Cannot contain another subreport.
u2022 Does not have Page Header or Page Footer sections.
Regards
Girish Bhosale

Similar Messages

  • Subreport within a subreport

    Post Author: Tony
    CA Forum: .NET
    I understand that in the .NET version of Crystal Reports you can't do a subreport within a subreport (one level deep only).  Is this just a limitation of the version that comes with Visual Studio 2005 or is this also a limitation in the XI Developer version as well? 
    Thanks.

    As always, Dell is absolutely correct - no change. I believe there are some work-arounds described on these forums, though I don't know how good they are...
    Knowing a bit on how the report engine works, I honestly doubt this will ever be implemented. The complexities, resources and so on would just be much too great. Some of the complexities to consider:
    Optimal number of "print jobs" is set to 75.
    Any action (paging, drilling, zoom, etc.) in the viewer is a "print job".
    A subreport is a "print job". Thus a report in a detail section that returns 75 records, exceeds the optimal print job limit.
    I was actually around when subreports were introduced in version 5. Many a friendship was destroyed at the time, trying to figure out how best to do this. Makes me wonder if the world would survive subreport within subreport
    - Ludek

  • Alternate solutions for subreport within a subreport

    Hi,
    There is a master report say R1. R1 needs a subreport R2 which has a graph as a subreport(R3). As the idea of subreport having another subreport is not supported in the Crystal reports, we need an alternate solution for the problem. Any help is much appreciated.
    Thanks,
    Shayari

    can you be a bit clearer, are you stating that you have a main report which has a sub report currently and you need another subreport to display the graph from subreport that already is embeded in the main?
    you can place a sub in a sub, but you can create more that one sub.
    if you only want the data from the sub to use within a graph in the main rpt than i would pass shared variables from the main to the sub and use them in a graph(if you can)

  • Excel Export of a Report containing Subreports expands first subreport, but not subsequent ones

    I have a report built in SSRS 2008 that contains a subreport that is made visible by toggling an item on the row of the parent report that contains the subreport.
    When I export the report to Excel it works great except that the first subreport is always expanded in Excel and the ability to toggle it is not given in Excel. All subreports are not visible (toggled as not shown) when exporting, yet the first subreport is always shown in Excel as an expanded value with no ability to toggle in Excel. All the other subreports are exported correctly as not visible with a plus sign next to the parent row to expand it.
    Any ideas what might cause this?

    I've have the same issue but haven't found a solution yet. Do you remember if you ever solved your problem?

  • Creating a Subreport inside a Subreport

    Post Author: Robin
    CA Forum: General
    Hi,
    I have created a report (R1) with Crystal Reports XI with two subreports inside. Now I want to create another report (R2) where i insert the first report as a subreport. Now, the subreports in R1 are deleted automatically. There is no error during the import of R1, but the subreports are still missing. I see no other way to avoid the need of subreports in subreports. Does anyone know a solution for this problem?
    Regards
    Robin

    Post Author: synapsevampire
    CA Forum: General
    You're not avoiding nested subreports this way, when you insert a report with subreports, it is still using nested subreports, and Crystal doesn't support this. One level deep only for subreports.
    Try to avoid subreports in general by using advanced SQL.
    -kai

  • Passing data from one subreport to another subreport

    Post Author: GISGuy
    CA Forum: Formula
    I have a report which is really a series of subreports with very few actually requiring a direct link to another.  What I am trying to do is compare dates between different subreports and do conditional formatting to highlight where a dependant data source has an older date than the parent data source.
    We use Crystal Reports XI release 2, and the data resides in ArcSDE & Oracle 9.
    Any suggestions would be greatly appreciated.
    Eric Andersen
    Woodlands Information Management Technician
    Canadian Forest Products Ltd.
    Prince George, BC

    Post Author: synapsevampire
    CA Forum: Formula
    When your tagline is about the size of your post, you probably didn't convey much.
    You can pass values from one subreport to the next in the order they are placed in the main report by using shared variables, as in:
    //1st subreportwhileprintingrecords;shared datevar MyDate := {table.date}
    //2nd subreportwhileprintingrecords;shared datevar MyDate;if {table.date} = MyDate thencryellowelsecrwhite
    Covers the theory, for specifics you have to be in your post.
    -k

  • Two iteration in a report or a subreport in a subreport

    Post Author: Juri
    CA Forum: JAVA
    Hello!I'm not using database directly, instead I'm using POJO datasource. I need to display a table with many fields inside a table. How is it possible to iterate inside iteration?My solution was to create a one big table:| table1-name | table2-field1 | table2-field2 | table2-field3 | table3-field1 | table3-field2 | table3-field3 | Then I grouped by table1-field1 and in the group I have outputed  table2-field1 | table2-field2 | table2-field3.I could create a second iteration in a subreport, then I decided to create a formula that hides values:suppress if not defined table2-field1suppress if not defined table2-field2suppress if not defined table2-field3  Is there any other way?

    We cant read your situation or your mind, so when you are posting put more info that helps to suggest.
    Use Filter icon to filter, if required use Advanced button->select 'Convert this filter to SQL' that helps.
    If it works pls mark

  • Can I have a subreport within a subreport?

    hi -- I've found lots of information -- that's several years old -- indicating that Crystal does not support subreports within subreports. Is this still the case? (I'm running CR11.) From my experiments it looks like this is still true... but I want to make sure I'm not missing anything.
    If not possible, does anyone have any slick solutions?  I have some ideas, but they'll require a fair amount of redesign.
    Thanks,
    Carol

    hi Carl -- Well, when each of these reports were built, we were pulling data from 3 different Oracle tables:
    One table holds the title of the report; it returns a single row based on a report_id defined in the report. This subreport is in
    the report header.
    One view holds the main data to be displayed (monthly measurements taken at reservoirs); this data comprises the main report -- it's not a subreport.
    One view holds annotations for the data -- there could be multiple rows of annotations for a single report id. This subreport is in the report footer. 
    We actually no longer need to query a DB table for annotations; they're all manually entered into a text area in the subreport. And I can see how I can just include the report title table in the tables accessed by the main report -- it should be easy to get the join correct to display the title and the reservoir data details.
    The subreport within subreport issues comes up because we now need to combine all of about 60 reports (like those I describe above) into a single report -- for the purpose of simplifying the generation of a large, published report. Unfortunately we didn't know about this requirement from the start...
    So, I think I have a solution -- it just requires the redesign of about 60 reports. Yuck! I'm also not sure what sort of formatting (spacing/pagination) issues I might run into using text areas vs. subreports. I have a feeling it might be trickier to get it looking good, but hopefully I'm wrong.
    If you have other / better ideas, please let me know.  And I would like to get your take on how I could handle combining all 60 of these reports if I did still have to query an annotation table that might return multiple rows for the report -- I might have a similar situation in the future.
    Thanks so much,
    Carol

  • Slow performance refreshing report with multiple subreports in main report

    I am using multiple subreports in my main report that appear to be slowing down the performance of the report considerably. Is there something I can do to increase performance with subreports.

    Hi Brian,
    Subreports are a known performance hog.
    I would suggest going back to the drawing board and rethinking on the layout of the report. The best thing, of course, would be to completely get rid of the subreports by creating a single SQL statement that takes care of all the report's requirements.
    Sometimes it is imperative to have subreports, in which case, you should try to make sure any selection filters from both the Main Report and the Subreport are passed back to the database.
    Also, avoid using Page N of M for better performance - with or without Subreports.
    -Abhilash

  • How to suppress blank page before side-by-side subreports

    Post Author: nv6525
    CA Forum: General
    I'm having a problem with a primary report forcing a page-break before sub-reports display data.Here's the side-by-side (newspaper-column style) report I'm trying to build:   Report Header      Report title   Page Header        Suppressed   Details                 Suppressed   Report Footer       Subreport 1     Subreport 2     Subreport3     Subreport4     Subreport5   Page Footer         Footer with page numbersThe primary report is intended to be a shell for the subreports.  The subreports contain unrelated, unlinked, independent data from separate data sources.  Each subreport, which must be in-place (not on-demand), contains 2 or 3 columns of data.  The result set yields about 250 pages of data, which is OK.  I'm using Crystal Reports 10 on Windows XP.The problem is that the primary report is forcing a page break before the subreports begin displaying data.  I'd like the data to appear directly below the report header on page 1.  The Underlay option is checked on all sections of the primary report.  Can the page-break be removed?Thanks!

    Post Author: nv6525
    CA Forum: General
    I was able to find a solution.  It was in section C of KB article c2010715 for CR 8.5.  Basically, right-click a subreport in Design view, select Format Subreport, and on the Common tab uncheck "Keep Object Together."  This works great to begin displaying the subreports' contents on page 1 directly underneath the report heading.

  • How to know how many rows including headers and footers does subreport has from Main Report

    Hi, we are sturuggling with subreports. Main report has 3 subreports, each subreport is inplmented in a group header(3 subreports and 3 group headers). We would like to print a group header under subreport as a column header every page, and need a page break when group number is changed. This report exports a MS Excel(97-2003) report file.
    In main report, [New After Page] is checked under Group Header #1d from [Section Expert]
    In each subreport, [Repeat Group Header On Each Page] is checked under the highest group from [Group Expert]
    Here are two issues;
    Since Crystal Reports has more rows than Excel in one page, colmun header in each subreport is being printed in the middle of the page. It should be printed at the top of the page
    When Subreport has many rows and has to be printed in more than 1 page, a page break is automatically inserted before column header. It should be printed right below column header which is Group Header #1
    We have been trying to pass row counts(count of group header because group header is used as the details) using a shared variable from Subreport 1 to Subreport 2 via main report since Subreport2 cannot predict how many rows Subreport 1 has.
    Here is what we are trying but we are getting an error which is "A constant expression is required here" under main report
    - In Sunreport 1
    whileprintingrecords;
    shared numbervar SubGroupCount := DistinctCount({Table.Field});
    - In Mainreport
    shared numbervar SubGroupCount;
    if(pagenumber) = 1
    then (SubGroupCount)
    else 50
    Is there any solutionss or better ways other than above?
    Thank you,
    Main Report: Group Header #1a --> as Page Header
    Run Date: mm/dd/yyyy                                                                 Report Name
    Main Report Group Header #1b --> Subreport 1
    Header 1
    Header 2
    Header 3
    Header 4
    Header 5
    Header 6
    Main Report Goup Header #1c --> Subreport 2
    Header 1
    Header 2
    Header 3
    Header 4
    Header 5
    Header 6
    Main Report Froup Header #1d --> Subreport 3
    Header 1
    Header 2
    Header 3
    Header 4
    Header 5
    Header 6

    Thank you for your reply and sorry for my complicated explanations. The report has confidential information, so I replaced to some fake data but I believe you can still see what I am trying to do..
    Main Report
    Subreport 2
    Output1
    Output2: the following page
         --> more rows are printed..
    We have two problems;
    1. The column header in Output2 is supposed to be pronted right below the last row in Output2, however, a page break is automatically inserted. But even in the same output document, it works for some group when it has a few rows..
    2. Since Crystal Reports prints more rows in one page than MS Excel does, Column header is not be printed at the top of the page.
    I tried the way you advised me but it did not work..

  • Crystal Reports for Eclipse and CR2008 with subreports

    SQL-Server 2005
    CR 2008, Ver.12.0.0.683
    Crystal Reports for Eclipse Plug-in Details:
    all Plug-in-files from Business Objects have the version 12.2.200.r454
    I create a report with subreports in CR2008. It's running perfect.
    When I load this report with subreports to Eclipse I can see the subreports in the report and I can click into the subreports. Each subreport is working in Preview, but when I want to preview the whole report with the subreports I get a black screen and the error
    eclipse.buildId=M20080911-1700
    java.version=1.6.0_11
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=de_DE
    Command-line arguments: -os win32 -ws win32 -arch x86
    Error
    Fri Feb 06 08:13:34 CET 2009
    Unknown Error (java.lang.NullPointerException)
    Info
    Fri Feb 06 08:13:34 CET 2009
    Plug-in Info: Business Objects, an SAP company - 12.2.200.r454
    java.lang.NullPointerException
    at com.crystaldecisions.reports.queryengine.QueryInfo.wF(Unknown Source)
    at com.crystaldecisions.reports.datafoundation.DFQuery.if(Unknown Source)
    at com.crystaldecisions.reports.datafoundation.DFQuery.a(Unknown Source)
    at com.crystaldecisions.reports.datafoundation.DFQuery.int(Unknown Source)
    at com.crystaldecisions.reports.datalayer.a.do(Unknown Source)
    at com.crystaldecisions.reports.dataengine.m.l(Unknown Source)
    at com.crystaldecisions.reports.dataengine.m.b(Unknown Source)
    at com.crystaldecisions.reports.dataengine.j.b(Unknown Source)
    at com.crystaldecisions.reports.dataengine.m.o(Unknown Source)
    at com.crystaldecisions.reports.dataengine.m.a(Unknown Source)
    at com.crystaldecisions.reports.dataengine.ContextNode.a(Unknown Source)
    at com.crystaldecisions.reports.dataengine.ContextNode.a(Unknown Source)
    at com.crystaldecisions.reports.dataengine.j.case(Unknown Source)
    at com.crystaldecisions.reports.dataengine.h.<init>(Unknown Source)
    at com.crystaldecisions.reports.dataengine.DataContext.a(Unknown Source)
    at com.crystaldecisions.reports.dataengine.DataProcessor2.a(Unknown Source)
    at com.crystaldecisions.reports.dataengine.DataProcessor2.a(Unknown Source)
    at com.crystaldecisions.reports.dataengine.DataProcessor2.new(Unknown Source)
    at com.crystaldecisions.reports.dataengine.DataProcessor2.try(Unknown Source)
    at com.crystaldecisions.reports.dataengine.DataProcessor2.int(Unknown Source)
    at com.crystaldecisions.reports.dataengine.DataProcessor2.I(Unknown Source)
    at com.crystaldecisions.reports.formatter.formatter.objectformatter.ObjectFormatter.fm(Unknown Source)
    at com.crystaldecisions.reports.formatter.formatter.paginator.PageFormatter.if(Unknown Source)
    at com.crystaldecisions.reports.formatter.formatter.paginator.PageFormatter.a(Unknown Source)
    at com.crystaldecisions.reports.formatter.formatter.paginator.PageFormatter.Y(Unknown Source)
    at com.crystaldecisions.reports.formatter.formatter.paginator.PageFormatter.moveToPageN(Unknown Source)
    at com.crystaldecisions.reports.formatter.formatter.lightmodel.FCMPageFormatter.goToPage(Unknown Source)
    at com.businessobjects.crystalreports.designer.core.elements.formatted.MultiPageModel.B(Unknown Source)
    at com.businessobjects.crystalreports.designer.core.elements.formatted.MultiPageModel.A(Unknown Source)
    at com.businessobjects.crystalreports.designer.core.elements.formatted.FormattedPages$2.A(Unknown Source)
    at com.businessobjects.crystalreports.designer.core.elements.formatted.FormattedPages$2.call(Unknown Source)
    at com.businessobjects.crystalreports.designer.core.util.thread.ExecutorWithIdleProcessing.A(Unknown Source)
    at com.businessobjects.crystalreports.designer.core.util.thread.ExecutorWithIdleProcessing.syncExecute(Unknown Source)
    at com.businessobjects.crystalreports.designer.core.elements.formatted.FormattedPages.create(Unknown Source)
    at com.businessobjects.crystalreports.designer.core.elements.formatted.FormattedDocumentModeller.getValidFormattedPages(Unknown Source)
    at com.businessobjects.crystalreports.designer.core.elements.formatted.FormattedDocumentModeller$3.doWork(Unknown Source)
    at com.businessobjects.crystalreports.designer.core.util.thread.AbstractCancellableRunnable.run(Unknown Source)
    at com.businessobjects.crystalreports.designer.core.util.thread.PriorityTask.run(Unknown Source)
    at com.businessobjects.crystalreports.designer.core.util.thread.PriorityCompoundCancellableRunnable.runSubtask(Unknown Source)
    at com.businessobjects.crystalreports.designer.core.util.thread.PriorityProgressAwareRunnable.runSubtask(Unknown Source)
    at com.businessobjects.crystalreports.designer.core.util.thread.PriorityCompoundCancellableRunnable.doWork(Unknown Source)
    at com.businessobjects.crystalreports.designer.core.util.thread.AbstractCancellableRunnable.run(Unknown Source)
    at com.businessobjects.crystalreports.designer.core.util.thread.ExecutorWithIdleProcessing$_B.run(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    Any good ideas?
    Thanks in advance.
    Regards
    Jens

    Hi Ted,
    the error happens in the preview of the main report. Each subreport preview in this main report is running.
    Regards
    Jens
    Edited by: Jens Kutsche on Feb 9, 2009 8:48 AM
    The preview of the main report is running in CR2008.
    Edited by: Jens Kutsche on Feb 9, 2009 8:56 AM
    When I start this main report with a jsp I get the same error:
    java.lang.NullPointerException

  • How to set the parameter selection *optional* for each subreport?

    Hi,
    I am using Crystal Reprots 11.
    I create 10 subreports, and each subreport contains a Parameters Field.
    The 10 subreports are put in 10 footer sections in increasing order, i.e. subreport1, subreport2, subreport3, ..., subreport10.
    When I use "Print Preview" to take a look at the whole report, CR prompts a "Edit Values" window for selecting parameter values for all 10 subreports.
    For example, if I only select parameter values for subreport1 and click "OK", 9 error messages on the "Edit Values" window come out above the selection list box of every other subreports (i.e. subreport2 ~ subreport10) showing that: 'The value is not valid'.
    Sometimes, I just want to review some specific subreports but not all.
    How should I do to set the parameter selection optional (not mandatory) for each subreport?
    Thank you in adavance.
    Edited by: Holdup on Feb 17, 2012 3:44 PM

    Hi,
    Here's how you can make the prompts optional (Assuming you're using CR 2008 or higher):
    1) Go into each subreport
    2) You should see the parameter in the Field Explorer. Right-click the name and select Edit > Look for an option called 'Optional Prompt'. Set it to true
    3) If you have a record selection in the subreport, then you need to modify the selection formula to something like this:
    if not(hasvalue({?Parameter_Name})) then True else = {?Parameter_Name}
    Hope this helps!
    -Abhilash

  • How to Create a Linked Subreport in Crystal Report for Enterprise

    Hi All
    I am developing a monthly report grouped by cost centre, I want to create a second table for each cost centre showing year to date, underneath the monthly data for that cost centre.  My thoughts on how to achieve this is to create a linked subreport in the group footer of the cost centre grouping.  However every time I try to set this up the report crashes.  Am I doing something wrong, can this be done in crystal reports for enterprise?  Can anyone give me a pointer on how to set up a linked subreport so that it passes the particular cost centre the report is grouped upon into the subreport so it only shows data relevant to that cost centre?
    Any help will be appreciated as I am going in circles at the moment.
    Thanks
    Neil
    Edited by: SmiddyLad on Feb 6, 2012 2:49 AM

    Hi Neil,
    You are doing right. You can create linked subreport in crystal report for enterprise.  Please refer below link to see the elearning tutorial  in which a simiar scenario is explained step by step. Here its an unlinked subreport. Enable subreport filter to make it linked and try. It should work.
    [http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/200c56fc-5a02-2e10-36a1-ba3d28e31fc2]
    Hope it helps you.
    Regards,
    Nikhil Joy

  • Passing a variable from subreport to the main report

    Hi guys, was unable to google this, so Im urning to you guys:
    I was wondering whether it was possible to do this:
    I have a subreport taking data from a table. In the main report, in the suppres condition of details section containing this subreport, I need to have a variable containing the total count of rows in that table. I know there are shared variables for that, but the problem is, that the variable in the condition is processed sooner than the one in the subreport.
    Any ideas on this?
    Thanks a lot

    To Sharma:
    Hi, unfortunately I can't. The subreport has its specific position in constallation with previous and following sections and must be right there.
    To Raghavendra:
    Hi, that was my first idea, but the problem is as I explained in my first message.
    To both:
    I have a table in subreport. This subreport is in main report positioned in details section "x". and I want to use that shared variable in the suppress condition of section "x". The problem is that the formula in suppress condition is processed sooner than the formula assigning a value to the shared numbervar inside the subreport.
    and thats what im looking for - a workaround for that. btw im using CR 8.5
    thanks again guys

Maybe you are looking for