Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 942575
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T22:17:40+00:00 2026-05-15T22:17:40+00:00

I have 4 reports Report A, Report B, Report C and Report D with

  • 0

I have 4 reports Report A, Report B, Report C and Report D with datasources dsA, dsB, dsC and dsD respectively.

Report A is a Main Report which has the subreport B has a subreport C …

The Report A fills the datasource dsB in the SubreportProcessingEvent with the parameter from ReportA.

i would need an event which is fired for every row in Report B so that I pass parameter from Report B and fill the Report C and C parameter to Report D….

code in SubreportProcessingEventArg

    SearchValue = new SqlParameter[2];
    SqlConnection thisConnection = new SqlConnection(thisConnectionString);
    DataSet thisDataSet = new DataSet();
    SearchValue[0] = new SqlParameter("@TPlanId", e.Parameters[1].Values[0]);
    SearchValue[1] = new SqlParameter("@ProblemId", e.Parameters[0].Values[0]);

    thisDataSet = SqlHelper.ExecuteDataset(thisConnection, "Proc_TP_Goal", SearchValue);

    /* Associate thisDataSet  (now loaded with the stored procedure result) with the  ReportViewer datasource */
    ReportDataSource datasource = new ReportDataSource("Goal_Proc_TP_Goal", thisDataSet.Tables[0]);
    e.DataSources.Add(datasource);

i was not able to figure out the 3rd and 4th level of event handler any suggestion or examples would be greatly appreciated.

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T22:17:41+00:00Added an answer on May 15, 2026 at 10:17 pm

    I do this, I have a parameter in the sub-subreports that pass the row of the subreport. I hope you understand, if not let me know and I will post a sourcecode.

      if ("RendicionDetalleCodigosReporte".Equals(e.ReportPath))
            {
                if (data != null)
                {
                    RendicionDetalleData detalle = new RendicionDetalleData();
                    detalle.row = 0;
                    int row = Convert.ToInt32(e.Parameters[0].Values[0]);
                    foreach (var det in data.Detalles)
                    {
                        if (det.row.Equals(row))
                        {
                            detalle = det;
                            break;
                        }
    
                    }
    
                    if (detalle.row == 0)
                    {
                        e.DataSources.Add(new ReportDataSource("RendicionDetalleCodigo", new List<RendicionDetalleCodigosData>()));
                    }
                    else
                    {
                        e.DataSources.Add(new ReportDataSource("RendicionDetalleCodigo", detalle.Codigos));
                    }
                }
                else
                {
                    e.DataSources.Add(new ReportDataSource("RendicionDetalleCodigo", new List<RendicionDetalleCodigosData>()));
                }
            }
            else
            {
                if (data != null)
                {
                    e.DataSources.Add(new ReportDataSource("RendicionDetalle", data.Detalles));
    
                }
                else
                {
                    e.DataSources.Add(new ReportDataSource("RendicionDetalle", new List<RendicionDetalleData>()));
                }
            }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an unbound XtraReport that has a subreport control which contains another report.
Well I have a Cyrstal report which has 4 sub reports on and it
In VS 2008, I have a crystal main report with about 20 sub reports.
i have an app which has btn to preview report made in crystal report.
I have an report, in which I like to show reports about some Employees.
I have created a local report on a datasource that has a field named
I have a report that I created with Crystal Reports 2008. This report uses
I am attempting to have a ReportHandler service to handle report creation. Reports can
I have a Reports controller and various reports: http://localhost/reports/main/this_month http://localhost/reports/main/last_month http://localhost/reports/main/this_year I wanted http://localhost
I have the following situation: Microsoft Report Viewer 2010 is used to display reports

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.