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

Similar Messages

  • 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

  • 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)

  • Running subreport from within a subreport

    Hello,
    I have Crystal report 14.
    I'm trying to run a subreport from within another subreport.   When the 1st subreport loads, the subreport that was within this one is not visible.  Is there a way to run a subreport from within a subreport?
    Thanks

    Not possible... CR has never had the ability to insert a subreport into a subreport.
    Reason why:
    Main report returns 1000 rows, Subreport in Detail Section runs 1000 times, subreport in subreport runs another 1000 time for each time the first subreport runs.... " Message Pops up - Come back in a year and the report may be finished -lol" Assuming the Database could handle 100,000 database connections...
    What are you trying to accomplish?
    Don
    Edited by: Don Williams on Nov 17, 2011 2:56 PM

  • Multiple subreports within a single main report?

    I'm a newbie to BI Publisher, but have used Crystal Reports quite a lot.
    I have a requirement which essentially consists of a set of 7 similar and closely related reports, each using a different SQL Select statement and printing different columns; the user will have the option of selecting either one of the 7, or all of them.
    In Crystal Reports I would set up 7 subreports within a single main report, and depending on the parameter, suppress those subreports which are not required.
    Is there a technique within BI Publisher which would enable me to achieve the same thing?

    all the sub templates will go against a single XML. So if your sub reports in CR is handling different query, you need to take a step back and think of separating data and layout. So multiple queries will be handled by data templates. So, for example, if your main report fetches some records as Q1 query, and you have two sub templates with queries as SQ1, SQ2 (linked subreport). Then we have to see what relationship exists between the main report and the subreport. Say, the sub report query creates a relationship with the Main report data, to filter certain records. So this can be achieved in data template using Q1 and SQ1 using bind relationship, ie, Q1 is master query and SQ1 is a detail query. Similarly Q1 and SQ2 relationship can be established. The datatemplate when executed, will fetch a single XML data.So in this case you do not need sub template. The sub-report layout is not separate, and is to be created with the main report.
    In case of unlinked subreport, the content of subreport is independent of main report, so you can simply define two datasets in BI Publisher and then select the Concatenation option. So the final XML data will be a concatenation of two XML data. The main report can read data of the main XML and the sub template can read data from the appended XML data. This can be done using xPath.

  • 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

  • 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

  • How to display variable lenght grid within subreport

    Hello;
    In order to compensate and fill up space of a subreport to make up a full page or even generate a blank page to compensate for duplex printing, we have programmed the data to fill in blank records, as many as we need per invoice. These invoices have variable pages, due to many transactions.
    The idea is to be able to draw grid, lines between the transaction within the subreport but we can't. The reason is because the data is populating blank lines and we only would like to show the grid over the populated fields.
    Is there any control or option in Crystal to control this or handle it some other intelligent way?
    Thanks again!

    hi Nikolay,
    have a look at the attached report. extract the contents and change the .txt extension to .rpt.
    there is a formula there that replicates lines based on the number of lines needed in total less the count of existing records. the formula is also Formatted to Can Grow. the Details B section also has Suppress Blank Section checked so that it doesn't show up when the formula is empty.
    -jamie

  • Reports with multi columns

    I have a situation where I have a report with a subreport.  The main report itself is 3 columns on a page layout 8.5 x 11. However, when I get to a certain data section of the report, it needs to switch to 2 columns for formatting purposes and then back to 3 columns. Is there a way to do this?
    I've tried creating a main report with 3 sub reports but each subreport will be dependent on a subreport and you can't have a subreport within a subreport apparently.

    Hi John,
    It's a lot of processing but using the formula on the position of the column may work for you... Right click on the field and select Size and Position and then click on the X2 button and then write a formula based on some logic that determines if and where the column is displayed.
    If the second column is always there then just hide the 3rd column... but if the 3rd column needs to be moved to the second columns position then you have to determine if the value is true or false and if the second column does exist etc....
    Sorry I don't have any samples but I'm sure someone out there does.... Or can provide details if you need them.
    Thank you
    Don

  • Nested Sub Reports - is it possible?

    Hi, Please could someone tell me if it is possible to have a sub report within a sub report. I have tried without success. If not what is the alternative? Thanks in advance
    Amir

    Before you go and submit to Idea Place think about this...
    Report Design Example:
    Main report returns 100 values which are linked to the first subreport. Query sent to the DB for the first 100 values and passed to the subreport, for each value returned a new query is sent to the DB for each value returned by the main report.
    101 queries processed by the DB server.
    Now say you pass that value into another subreport within the subreport....
    Original query sent from the main report, the first value is then sent to the first subreport and then that value is sent to the third subreport.
    1 -> 1 - > 1, in total you have:
    1 -> 100 -> 100 or 1 * ( 100 * 100 )  = 10001 queries being processed by the DB Server.... And this is simplied, image it your main report returned 100,000 values....
    So no, the whole point of using subreports is to use them for different data sources. You can filter your data and use Groups in the place of subreports, then you are unlimited ( sort of ) as to how many drill downs ( subreports ) you can go....
    Thanks
    Don

  • Advice needed with lining up lines between parent and subreport

    I have a report where the main report includes a box and 6 interior vertical lines. The box and lines start in a group header and end in a group footer. Details has several sections, and one of the sections includes a subreport (suppressed when there is no data) that crosses the interior lines. This report is used by multiple customers on a variety of printers.
    Inside the subreport, there are two details sections. One detail section has a background color defined.
    When the report is generated and the subreport contains data, the subreport section with the background color obscures the line defined on the main report.
    We have tried to work around this behavior by adding matching lines in the detail section of the subreport, but we have been unable to get the lines within the subreport to nicely align with the lines in the main report. We'll think we get it fixed up for one printer, but then they are off on another printer.
    We have turned off the background and removed the lines. This gives us a perfectly straight line, but the users really want the subreport to have alternating colors.
    What other options do I have?

    Non-recoverable read errors per bits read:
    Value line CS: 1 in 10**14 (1.065% annualized failure rate)
    See http://www.seagate.com/em/en/internal-hard-drives/enterprise-hard-drives/hdd/enterprise-va lue-hdd/
    Constellation ES2: 1 in 10**15 (0.73% annualized failure rate)
    See http://www.seagate.com/em/en/internal-hard-drives/enterprise-hard-drives/hdd/enterprise-ca pacity-3-5-hdd/
    For testing whether everything works as it should, try the Passmark benchmark and Prime95 stress-test.

  • Subreport totals are not displayed correctly in Preview

    I'm using Crystal Reports 2008.  I have a subreport that sorts hiearchically.  It is placed in the Report Header of the main report.  Within the subreport, it has calculated totals for each hiearchy grouping.  When ran, those totals are incorrectly displayed in the Preview;  however, when I click on the subreport, those totals are displayed correctly in the preview of the subreport.  Also,  if I go to the subreport design, pretending I'm editing the subreport, then go back to the main report preview, those totals are correct.
    Has anyone experienced this issue?  Please provide help/advise.  Thanks.

    Shwu, The subreport does not process any value based on the main report. I also observed that if the group extends to next page, the totals are incorrectly displayed.  I have both 'Keep Group Together' and section 'Keep Together' selected, but still the data extends to next page.  The subreport is sorted with 'Hierarchical Grouping'.  For example, below 2 lines are printed at bottom of a page:
    North America
        Sales department
    then Crystal prints the rest of departments belong to North America onto next page as:
         Marketing
         Consumer
             Government
             etc.
    I was hoping if I could get Crystal to not print the group if there's not enough space on the page, but rather print on next new page, the incorrect totals would go away.  Any idea how I would do page break for hierarchical groupings?

Maybe you are looking for