Adding subreport in subreport in crystal report

<font size="2"><span><p>Hi</p><p>I am coverting a report made in Access Application which contains subreports within subreports.The nesting is upto five levels deep.As Crystal reports do not allow adding of subreports within subreports,how do i deal with it.</p><p>Is there some other way to deal with the problem.Any suggestions and help will be appreciated.</p><p>Regards </p><p>Shaurya</p></span></font>

<p>if your nested subreports are on-demand then you can replicate them with hyperlinks. here&#39;s a good description, but there&#39;s a lot out there about openDocument. </p><p>http://support.businessobjects.com/communityCS/TechnicalPapers/BCIP_report_linking.pdf </p>

Similar Messages

  • 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

  • Linked Button error in a subReport with Crystal Reports

    Hi expert,
    I have a designed a subreport with Crystal Report, and I have add the Sap Linked button (OLE Object), to allow the user to click on the linked button and open the relativa Sap Document (Invoice, Delivery, etc etc).
    In the hypetetx linked property, I have write the link
    'http://$b1$/link=OINV&key=1'
    In this way all is ok, but In my query I have the name of the table and the DocEntry, so I try this way:
    'http://$b1$/link='&{Comando.Table}&'&key='&{Comando.DocEntry}
    If I try to open the document, I retrieve the error: You are not permitted to perform this action. Authorisation Path: Help.
    I don't understand if the problem is the authorization (i am manager, superuser) or if I had write in a wrong mode the hypertext link. (maybe the Apex?)
    Anybody can help me?
    Regards
    Marco

    Hi Marco,
    if {Comando.DocEntry} field is string type try this code:
    'http://$b1$/link?table='& {Comando.Table} &'&key='& ToText(ToNumber({Comando.DocEntry}),0,'','')
    else if DocEntry field is number type try this code:
    'http://$b1$/link?table='& {Comando.Table} &'&key='& ToText({Comando.DocEntry},0,'','')
    Regards,
    Domenico
    Edited by: Domenico Lovino on Feb 23, 2012 10:04 AM

  • Automatic reimport of subreports on Crystal Reports Server 2008

    Hi,
    if I import a subreport into a report, there is IMHO an option "automatic reimport when opening". Does this work also if I upload both report and subreport to a Crystal Reports Server 2008? If so, on which base does the report find the subreport (relative path, UUID?) ?
    Thanks for information
    Joern

    I think if its supported for Crystal Designer then should be supported on Server also.
    Also, posting this questions on Crystal Reports forum might give you fast and reliable ans.
    --Kuldeep

  • Disable clicking on subreport in Crystal Reports Viewer

    Hi,
    To describe the situation, the report has 2 subreprts in the Report Header. When users click on any of those subreports in the Reports Viewer, the report closes and is back to the Parameter selection window.
    Does anyone know how to prevent this? Is it possible to disable clicking on the subreport in the Viewer? Or lock the whole content? Disable clicks on the Viewer?
    Thanks in advance.
    Edited by: ag7_gbg on May 24, 2011 2:58 PM

    hi,
    Please refer below links.
    http://www.forumtopics.com/busobj/viewtopic.php?p=338850&sid=be20b222298760c12d8ab4c594a4f502
    How to disable subreport view
    Regards,
    Vamsee

  • About refreshment of a subreport of Crystal Reports for VS2010

    contributes for the first time.
    I am sorry for poor English.
    Currently, u201CCrystal Reports for Visual Studio 2010u2033
    with a Sub-Report in Create forms (more precisely, the old version 2003
    of the application that was created in Updated to match the corresponding support environment Windows7)
    I have Is not cause compilation errors,
    when running Follow the steps below when you Refresh Sub-report u201Cis not supported in the sub-Reportu201D
    of Errors in our state.
    In Crystal Reports 2011 and Crystal Reports for VS2010 Why do not correspond to the Sub-Report?
    Who know how to respond better to this condition I would appreciate your teaching.
    Environmental
    Windows 7 Professional SP1 (version 32bit)
    SQL Server 2008
    Crystal Reports for VS2010
    Crystal Reports 2011
    Visual Studio 2010 Professional SP1
    Languages: VB
    Other: GrapeCity PowerTools FlexGrid for Windows Forms 5.0J
    Logic error
    Dim mcrySub1 As New ReportDocument
    Processes such as SQL parameter settings
    mcrySub1 = mcryMain.OpenSubreport (strReportNM_Sub1)
    mcrySub1.Refresh () << hear is error in this part.
    mcrySub1.SetDataSource (lDtSub1)
    And the following error.
    u201CSystem.NotSupportedException: in the sub-Reports are not supported.
    Location CrystalDecisions.CrystalReports.Engine.ReportDocument.Refresh ()
    Location Riekibunseki.frmMain.MakeReport_Tantosya ()
    Where D: Source XXXXXX frmMain.vb Development ○ ○: 1383 line u201D

    mcrySub1 = mcryMain.OpenSubreport (strReportNM_Sub1)
    mcrySub1.Refresh () << hear is error in this part.
    mcrySub1.SetDataSource (lDtSub1)
    Do not use refresh. Just pass in the dataset:
    mcrySub1 = mcryMain.OpenSubreport (strReportNM_Sub1)
    mcrySub1.SetDataSource (lDtSub1)
    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]

  • Adding the columns dynamically in crystal report

    Hi,
      I am developing a application using asp.net and crystal report. In a report the column is created dynamically( ie, the report gets input from a sp which returns N no. of columns). Since i dont know the column name and no. of columns at design time i am not able to create the report. If any of you have any idea on adding the columns dynamically please send me the code or the link.
    Thanks
    Sankar

    Hello Sankar,
    please see CS code for VS 2005 below to add a database field to a report using inproc RAS.
    This sampels retrieves the table column name from the database and adds it to the report.
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Text;
    using System.Windows.Forms;
    using CrystalDecisions.CrystalReports.Engine;
    using CrystalDecisions.ReportAppServer.Controllers;
    using CrystalDecisions.ReportAppServer.ClientDoc;
    using CrystalDecisions.ReportAppServer.DataDefModel;
    namespace CS_Add_Field_inproc
        public partial class Form1 : Form
            // CR Declarations
            ReportDocument boReportDocument;
            ISCDReportClientDocument boReportClientDocument;
            CrystalDecisions.ReportAppServer.ReportDefModel.Section boSection;
            CrystalDecisions.ReportAppServer.ReportDefModel.FieldObject boFieldObject;
            public Form1()
                InitializeComponent();
                //Create a new ReportDocument
                boReportDocument = new ReportDocument();
                // load the RPT file
                boReportDocument.Load("..
    AddField.rpt");
                //Access the ReportClientDocument in the ReportDocument (EROM bridge)
                boReportClientDocument = boReportDocument.ReportClientDocument;
                //Get the first section in the details section
                   boSection = boReportClientDocument.ReportDefController.ReportDefinition.DetailArea.Sections[0];
                   //Create the field object that we will add to the report and set all of its properties
                   boFieldObject = new CrystalDecisions.ReportAppServer.ReportDefModel.FieldObject();
                //Set which field to use for the data to be displayed
                   boFieldObject.DataSourceName = "{Customer.City}";
                   boFieldObject.FieldValueType = CrystalDecisions.ReportAppServer.DataDefModel.CrFieldValueTypeEnum.crFieldValueTypeStringField;
                   boFieldObject.Left = 4 * 1440; //1440 twips per inch
                   boFieldObject.Width = 3 * 1440;
                   boFieldObject.FontColor = new CrystalDecisions.ReportAppServer.ReportDefModel.FontColor();
                   boFieldObject.FontColor.Font.Name = "Arial";
                   boFieldObject.FontColor.Font.Size = 10;
                   boFieldObject.Format.HorizontalAlignment = CrystalDecisions.ReportAppServer.ReportDefModel.CrAlignmentEnum.crAlignmentLeft;
                   //Add the object to the report
                   boReportClientDocument.ReportDefController.ReportObjectController.Add(boFieldObject, boSection, -1);
                // show in reportviewer
                crystalReportViewer1.ReportSource = boReportDocument;
            private void button1_Click(object sender, EventArgs e)
                //Get the first section in the details section
                boSection = boReportClientDocument.ReportDefController.ReportDefinition.DetailArea.Sections[0];
                //Create the field object that we will add to the report and set all of its properties
                boFieldObject = new CrystalDecisions.ReportAppServer.ReportDefModel.FieldObject();
                //Set which field to use for the data to be displayed
                boFieldObject.DataSourceName = "{Customer.City}";
                boFieldObject.FieldValueType = CrystalDecisions.ReportAppServer.DataDefModel.CrFieldValueTypeEnum.crFieldValueTypeStringField;
                boFieldObject.Left = 4 * 1440; //1440 twips per inch
                boFieldObject.Width = 3 * 1440;
                boFieldObject.FontColor = new CrystalDecisions.ReportAppServer.ReportDefModel.FontColor();
                boFieldObject.FontColor.Font.Name = "Arial";
                boFieldObject.FontColor.Font.Size = 10;
                boFieldObject.Format.HorizontalAlignment = CrystalDecisions.ReportAppServer.ReportDefModel.CrAlignmentEnum.crAlignmentLeft;
                //Add the object to the report
                boReportClientDocument.ReportDefController.ReportObjectController.Add(boFieldObject, boSection, -1);
                // show in reportviewer
                crystalReportViewer1.ReportSource = boReportDocument;

  • Adding a Hyperlink to a crystal Report

    Hi,
    A File: Links to a file on the user's computer.
    i don't have CMC access in BO, so i am going to save report in local folder.
    How to hyper link parent crystal report to child report  using A File method.
    Please suggest any solution??
    Thanks,
    Chandrakant

    Hi Chandrakant,
    Where do you view the reports from?
    If you View the reports in InfoView, you should consider uisng an openDoc URL to hyperlink to another report.
    The 'File' option will try to open the file in the application associated with it. If the machine doesn't have CR designer installed, the hyperlink will not work.
    -Abhilash

  • Text Wrapping of SubReport in Crystal Reports 2008

    I am fully aware of the "Can Grow" option in the format editor screen of the subreport.
    When I use the "Can Grow" Option - the Text is wrapping fine during the preview of the report, yet the subreport prints outside of the page's margins when the page is physically printed; however, if I set the font size to 9 pt, the text wraps correctly as expected during preview and print.
    Any ideas as to why this may be happening? Anyone else having a similar issue?

    Hi Taylor,
    Check the length of the object displaying the text.  The text will print within the size of the object, it has no concept of how large the subreport is, the text only knows the boundaries of the object it is in.
    So if you shorten the length of your object in the subreport, it should wrap correctly.  Make is about 1/4 inch shorter than you want it in the Main report.
    Thanks,
    Brian

  • Adding subreport in drillthrough report

    How can I add a sub report in a drill through report.
    Thanks in advance

    Hi janeesh,
    Any report that is stored on the report server can be a drill-through report.  Usually, you can use "Subreport" control to add a sub-report in the report. In the main report, user can edit the action property of the textbox or image to add a drill-through report.
    If there are any more questions, please let me knwo.
    Thanks.

  • Adding a field to a crystal report in sap b1

    All I am trying to do is to add the field for credit limited to the standard item invoice in SAP 8.8,
    I have added the BP table OCRD and draged the creditline field to the layout, but when you view all the fields are empty.
    I obviously need to link somthing - I have excepted the links that are automatically completed by SAP.
    Can anyone point me in the right direction.
    Thanks
    Jo

    do a test report with just the table BP and see if the data is there.  
    If you see the data in the test report, than add the table you originally tried to link to. remove all the links that crystal has created and link it manually from the new table to the table BP. and run again. Once you get the link right, go back to your original report and fix the link.
    Autolinking in Crystal is not reliable  in fields linked and in the direction of the link.

  • Passing values from subreport to main report

    Dear All,
           I have used shared values in my sub report and i want to use that shared variable in my main report in one of the formulas for average calculation but i see the values as 0.
    Can someone let me know what I am missing.
    Regards,
    Sonali

    Hi
    The most important thing to remember when using shared variables is that Crystal Reports must first evaluate the formula where the value is stored before evaluating the formula that retrieves the shared variable.
    For example if you want to pass a grand total from the subreport to do a calculation in the main report, follow these steps:
    1. In the subreport, create a formula similar to the one below:
    //@SubFormula
    //Stores the grand total of the
    //{Orders.Order Amount} field
    //in a currency variable called 'myTotal'
    WhilePrintingRecords;
    Shared CurrencyVar myTotal := Sum ({Orders.Order Amount})
    2. Place this formula in your subreport.
    3. In the main report, create a formula that declares the same variable name:
    //@MainFormula
    //Returns the value that was stored
    //in the shared currency variable called
    //myTotal in the subreport
    WhilePrintingRecords;
    Shared CurrencyVar myTotal;
    myTotal
    4. Place @MainFormula in a main report section that is beneath the section containing the subreport.
    NOTE:
    For the shared variable to return the correct value in the main report, you must place @MainFormula in a main report section that is beneath the section containing the subreport. This ensures Crystal Reports evaluates the @SubFormula before @MainFormula.
    One way to do this is to insert a section below the section containing the subreport, and place @MainFormula in this new sub-section:
    · On the 'Format' menu, click 'Section'.
    · On the 'Sections' list, click the section containing the subreport.
    · Click 'Insert' (at top of dialog box). This inserts an additional subsection.
    · Click 'OK' to return to the report, and insert @MainFormula into this new sub-section.
    The next time you preview the report, @MainFormula displays the value from the subreport. In this particular example, that value was the grand total of the {Orders.Order Amount} field.
    5. Once you have verified that @MainFormula is returning the correct value from the subreport, you can include this formula in other main report formulas, such as:
    //@NewFormula
    //includes data from subreport
    {@MainFormula} + Sum ({Customer.Last Year's Sales})
    · Place this formula in the same section as @MainFormula, or in a section further down on the report.
    You have now successfully shared data from a subreport with the main report.
    NOTE:
    This is not possible with On Demand Subreports in Crystal Reports since the report will not be processed until after clicking report.
    Regards
    Sourashree

  • Formatted Data Losing its Value Upon Entering Crystal Reports

    Post Author: Horizon57
    CA Forum: General
    I am having an issue where I have tables of data in Access with the correct formatting (i.e. $, %, etc.) and when I create a table or graph in Crystal Reports, the formatting does not show up. Something that is 46.78% in Access, shows up in the following format (0.47) and dollar signs ($$) do not even show up. I am sure its not just a display issue with the data, because when I right click on a field in the field explorer and select the "Browse Data" option, the formatting is also missing in the same way that it is missing once that data is brought onto the report itself.
    Does anyone know why this is happening and how to fix this issue? I would like to avoid having to apply specific formatting to each field in each subreport using Crystal Reports (That could take hours!)
    Thanks

    I have sometimes also reproduced this behaviour without waiting these 3 minutes (more or less immediately).
    In addition, after reproducing this behaviour, the fileds becomes read only and you can not write any more data in it. ¿?

  • Crystal Report Preview and Print error

    Hi,
    I am trying my first Crystal report in SAP; I have created one report using OITE table and run it in Crystal Designer without any problem; Then I added it to SAP / Manager Crystal Report / New Report, but I get the following error message when I click the Preview and Print button every time;
    The file does exist and the location is setup correctly; I dont understand why SAP can not find the file; Any comments?
    SAP Crystal AddOn
    Could not load file or assembly 'CrystalDecisions.Windows.Forms, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified.
    OK  

    Hi,
    When you google on "[Could not load file or assembly CrystalDecisions|http://www.google.com/search?q=CouldnotloadfileorassemblyCrystalDecisions]" you will find quite some hits.
    One that might be important for you could be http://social.msdn.microsoft.com/Forums/en-US/vscrystalreports/thread/b0fc930f-5fc8-4475-bfe7-ad56616e838d/
    That is depending on how the report is made.
    Another option might be
    http://www.velocityreviews.com/forums/t382557-could-not-load-file-or-assembly-crystaldecisionsweb.html
    Best regards,
    Peter

  • Image Quality In Crystal Reports for Visual Studio 2010

    I am using the new production release of Crystal Reports for Visual Studio 2010 and I am having an issue with image quality when adding an image to a crystal report.
    The image itself is a .TIF file,  and when opened in Windows, the quality of the image, which is mostly text, is very high. The image was created from a electronic PDF form and I intend to use this as a background for the crystal report, over which I will place data fields.
    As soon as the image is added to the report you can see the degradation in quality in the design window and in the preview window within visual studio. The quality remains low when viewing the report in the WPF report viewer and when printing from this control.
    I have ensured the "Retain Original Image Color Depth" option is checked but this has made no difference (the image is black and white anyway).
    The image in the report has been left at its native size, no resizing at all. The image is 355KB in size if that's relevant.
    Is there a reason the image looses quality when added to a report? Is it being compressed? More importantly, is there a way to make the image retain its native quality when adding it to a crystal report?
    Thanks in advance.

    The following image is the image I am trying to display. Although imageshack has converted it to a png, if you right click and save the image you can open it and zoom in with little image degradation.
    http://img132.imageshack.us/i/j301.png
    The following is a screen shot of how the tif file looks in the designer when zooming in:
    http://img138.imageshack.us/i/j30lowquantity.jpg
    The second image has lost its clarity and is unusable when printing.
    I hope this helps.

Maybe you are looking for

  • SQL 2008 SP1 to SQL 2008 R2 Upgrade

    I have a SQL server running SQL 2008 SP1 and am trying to upgrade to SQL 2008 R2.  The server has an installation of SCOM 2007 R2 with CU4 on it with reporting services and SCOM data warehouse The SQL upgrade advisor runs and tells me that Custom rep

  • How do I download a movie from a DVD to my ipod

    I have an ipod with 30GB. I have no idea how to import a DVD on to my ipod. Any help would be appreciated. Thanks Cindy

  • Apple TV video playback stutters - even with SD

    Hi, i don't know what i am doing wrong, but i have some serious video playback troubles with my new atv: All files start to play fine, but somehow - like every few seconds - the movie seems to stuck for a very short time - just an eyeblink. it looks

  • Please help- Itunes wont start up

    Can anyone help? I installed itunes from the web and when I click the icon, it tells me that the "itunes folder could not be created and that the default location should be in My music". Itunes does not start up. I am on a PC using windows XP. Please

  • Down payment and credit check

    Dear Guru, I want to do setting in the system for the following which I need your contributions 1.      customer down payment, in a way that a customer sales order number must be reference during down payment if not system should give error 2.     I