This is a migrated thread and some comments may be shown as answers.

ReportViewer showing blank report

1 Answer 238 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Mercede
Top achievements
Rank 2
Mercede asked on 23 May 2012, 05:11 PM
I have a report Viewer in a web user control. The control displays Ext.NET window which has Report viewer control. Following is the declaration of Report Viewer:

   <telerik:ReportViewer ID="Viewer" runat="server"
        ViewMode="PrintPreview" Width="100%" Height="500"
ZoomMode="PageWidth" >
<Resources ProcessingReportMessage="Please wait" />
    </telerik:ReportViewer>

 the code behind has the following: 

   public partial class ucReport : Finance.Controls.BaseUserControl
    {
        public void Print(int id)
        {
            try
            {
                Reports.VoucherReport report = new Finance.Reports.VoucherReport();
                report.ReportParameters["voucherid"].Value = id;
                Viewer.Report = report;
                Viewer.RefreshReport();
                winPrint.Show();
            }
            catch (Exception ex)
            {
                Boxes.Error(ex);
            }
        }
}
 During the execution the report viewer appears blank. no exceptions are raised nothing. I dont know if I'm doing anything incorrect. please help me

1 Answer, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 24 May 2012, 12:41 PM
Hi Mercede,

The provided information is insufficient for us to determine what might be wrong. We have the following questions/suggestions:
  • When is the Print method invoked?
  • Is the voucherid report parameter used for filtering the report datasource, have you verified that it returns data in preview if the same value for the parameter is used?
  • Set a border for the report viewer to verify it has rendered in its entity (some DOCTYPEs can cause problems especially when using percent for width/height without applying width/height to the whole DOM tree)
  • Does the report viewer show pages e.g. 1 of 1? Use Firebug or IE developer tools to see whether the report is loaded in the viewer.
Kind regards,
Steve
the Telerik team

BLOGGERS WANTED! Write a review about Telerik Reporting or the new Report Designer, post it on your blog and get a complimentary license for Telerik Reporting. We’ll even promote your blog and help bring you a few fresh readers. Yes, it’s that simple. And it’s free. Get started today >

Tags
General Discussions
Asked by
Mercede
Top achievements
Rank 2
Answers by
Steve
Telerik team
Share this question
or