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 6032935
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T05:24:34+00:00 2026-05-23T05:24:34+00:00

Working with .RDLC 2005 in VS 2008 this technique worked very well, now in

  • 0

Working with .RDLC 2005 in VS 2008 this technique worked very well, now in .RDLC 2008 as implemented in VS 2010 I get a blank (or no?) report.

I have made a couple of changes to accommodate .RDLC 2008 and at this time I am getting no exceptions. The present (not desired) output looks like:
enter image description here

I have a custom ReportController class that has a public method to ShowReport (also one to manage the exporting of reports, but that is not (yet) in play.)

From the asp.net page I invoke the controller in the property set (of Type DataSet, invoked by the page controller) like: (ReportController implements IDisposable)

try
{
    using (var reportController = new ReportController(true))
    {
         _ReportViewer = reportController.ShowReport("DemonstrationList", value, phReportHolder);

         if (_ReportViewer != null)
         {
             _ReportViewer.ShowRefreshButton = false;
             _ReportViewer.ShowPrintButton = false;
             _ReportViewer.Width = Unit.Pixel(700);// Unit.Percentage(99);
             _ReportViewer.Height = Unit.Pixel(700);// Unit.Percentage(90);
         }
    }

    lblRecordCount.InnerText = value.Tables[0].Rows.Count.ToString();
}
catch (Exception ex)
{
    phReportHolder.InnerHtml = string.Format("There was an error attempting to process this report <br/><br/><div style='color:White;'>{0}</div>", ex.Message);
}

and the ShowReport method is:

public ReportViewer ShowReport(string ReportName, DataSet ds, HtmlContainerControl ReportContainer)
{
    ReportContainer.Controls.Clear();
    ReportViewer reportViewer = BuildReport(ReportName, ds);
    ReportContainer.Controls.Add(reportViewer);
    return reportViewer;
}

This allows me to tell the controller to put any ‘valid’ report into any htmlcontainercontrol using any provided dataset.

BuildReport takes the data and the report name and builds the report as:

private ReportViewer BuildReport(string ReportName, DataSet ds)
{
      try
      {
         _activeDS = ds;
         string ReportFileName = ResolveRDLCName(ReportName);
             // ResolveRDLCName is used along with path strings 
             // initialized from configuration settings in the 
             // constructor to make this portable. 
         var viewer = new ReportViewer();
         viewer.ProcessingMode = ProcessingMode.Local;
         viewer.LocalReport.ReportPath = ReportFileName;
         viewer.LocalReport.DisplayName = ReportName;
         viewer.LocalReport.EnableHyperlinks = true;
         AssignReportData(ds, viewer.LocalReport);

        return viewer;
      }
      //...Exception handlers below are not invoked at this time

And ‘AssignReportData’ attaches the data to the report.

private static void AssignReportData(DataSet ds,  LocalReport Report)
{
         var listOfDatasources = Report.GetDataSourceNames();

         foreach (string dsn in listOfDatasources)
         {
            ReportDataSource rds = new ReportDataSource(dsn,ds.Tables[dsn]);
            Report.DataSources.Add(rds);
         }
}

Development techniques ensure that dataTable/dataSource names stay in agreement (and if they were not I would get a specific exception, which I do not.)

  • 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-23T05:24:34+00:00Added an answer on May 23, 2026 at 5:24 am

    It seems like the report content gets rendered but is simply not visible.

    Try to look at the generated HTML (DOM) with

    • Chrome: right-click on the report area, “Inspect Element” to explore the DOM
    • Internet Explorer: install the IE Developer Toolbar to explore the DOM

    Maybe some CSS that has worked in the past now hides your report area.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am currently working on a report where the results of this report are
Working on a page with multiple sections. at the very top there is a
I am creating RDLC report with two datasets. Earlier i was using one dataset
I have an rdlc report that displays a table of values. The way the
Working with Json, how can I NSlog only the title in this code: NSDictionary
Working through more book examples- this one is a partial poker program- This segment
Working on this question, I found an inconsistent behavior. Why reference binding behave different
I am working with asp.net reporting using RDLC file. Everything was working fine but
Currently I'm working on a reporting website in VS 2010 using ASP.Net 4.0 and
I am working on RDLC reports in asp.net. I had one datasource for my

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.