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

Web ReportViewer toolbar background missing

10 Answers 263 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
FposUser
Top achievements
Rank 1
FposUser asked on 24 Apr 2009, 02:52 PM
Hi,

I am using Reporting Q1 2009 with a ReportViewer control embedded in my web site, and the toolbar is not formatted correctly. This seems to happen when the control is part of a tab inside a RadTabStrip control. Here is a link to a screenshot. It worked fine before it was part of a tab. Any help is much appreciated.

Thank you,
Brian

10 Answers, 1 is accepted

Sort by
0
FposUser
Top achievements
Rank 1
answered on 24 Apr 2009, 02:55 PM
0
Steve
Telerik team
answered on 27 Apr 2009, 10:57 AM
Hi FposUser,

Do you have your own styles for the page - if so, can you remove it in order to verify that it is not messing up the report viewer's styles? Also (as you state there is no issue outside the tabstrip) are there any classes in the tabstrip's stylesheet you use, altering html elements directly e.g. <input type="image"/>? If there are such, please modify them so that they are not inherited.  If still having problems, please zip and attach a sample project showing the erroneous behaviour and we would research what might be the culprit.

All the best,
Steve
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
FposUser
Top achievements
Rank 1
answered on 28 Apr 2009, 07:42 PM
Thanks for the response. I have a test page with a report viewer control that exhibits this behavior. It is not inside a tab control but the toolbar styling is missing. Please see the links below:

http://www.futurepos.com/ReportViewerTest.zip

Here is the result when I run the test:
http://www.futurepos.com/TestResult.jpg

I was forced to wrap the ReportViewer in a <form> tag, which I thought was unusual. Never had to do this before, at least not explicitly. I get an error generated otherwise.

Thanks,

FPOS



0
Sid
Top achievements
Rank 1
answered on 30 Apr 2009, 08:56 PM
I too am getting an ill-formatted toolbar like http://www.futurepos.com/TestResult.jpg.  In addition, my report does not display at all.  If I export to PDF (from the toolbar), I do get a PDF version of the report I was expecting...
0
Steve
Telerik team
answered on 01 May 2009, 12:03 PM
Hi guys,

@Fpos - What is the IDE that you're using for your work? The aspx page you provided is missing a lot of required attributes, which Visual Studio IDE is prompting you to add and throws errors on build of the web site/application. Also the form is required for any server web control i.e. none of our controls or even standard asp:Button control would work without a form. On trying to compile you would receive a message that form with runat=server is required for the control to work. Here is a sample page that would work as expected:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default3.aspx.cs" Inherits="Default3" %> 
 
<%@ Register Assembly="Telerik.ReportViewer.WebForms, Version=3.0.9.430, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" 
    Namespace="Telerik.ReportViewer.WebForms" TagPrefix="telerik" %> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"
<head runat="server"
    <title>Untitled Page</title> 
</head> 
<body> 
    <form id="form1" runat="server"
        <telerik:ReportViewer ID="ReportDisplay" runat="server"
        </telerik:ReportViewer> 
    </form> 
</body> 
</html> 
 

@Gary: please check your website for global styles that might affect our report viewer. If still having problems, please send us a sample project, where the problem can be observed.

Best wishes,
Steve
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Sid
Top achievements
Rank 1
answered on 04 May 2009, 10:17 PM
Hi Steve,

I cleaned up the ASPX file based on your sample code which cleared up the toolbar display problem.  However, I am still getting blank reports.  Here are some code excerpts...

The report object gets created here...
public override Telerik.Reporting.Report GetReportObject() 
    { 
      Report111 tr = new Report111();  // create Telerik Report 
 
      tr.DataSource = rds; // set datasource to dataset 
 
      return tr; 
    } 
    //------------------------------------------------------------------------- 

The report object gets cached in the session and the report viewer window opened...
// ... 
Session[cacheRD] = repMgr.GetReportObject(); 
       
OpenReportViewer(); 
 
// ... 
 
//------------------------------------------------------------------------- 
protected void OpenReportViewer() 
    { 
      litRV.Text =  @"<script>javascript:window.open('ReportViewer.aspx');</script>"
      litRV.Visible = true
    } 

Report viewer...
protected void Page_Load(object sender, System.EventArgs e) 
      if (!Page.IsPostBack) 
        showReport(); 
        //------------------------------------------------------------------------- 
protected void showReport() 
  Telerik.Reporting.Report rpt; 
 
  rpt = (Report)Session[cacheRD]; 
       
  ReportViewer1.Report = rpt; 
        //------------------------------------------------------------------------- 

If this doesn't help, I can put together a sample project...

Thanks,
Gary





0
Steve
Telerik team
answered on 05 May 2009, 09:59 AM
Hello Gary,

Unfortunately the code you've provided is insufficient for us to determine where the problem comes from. For example we're not sure where your methods are called. Please prepare a sample project and attach it in a support ticket - once we review it we would be able to provide you with more info.

Regards,
Steve
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Sid
Top achievements
Rank 1
answered on 05 May 2009, 07:01 PM
Hi Steve,

I have opened a support ticket (#210143).

Thanks,
Gary
0
Steve
Telerik team
answered on 06 May 2009, 12:47 PM
Hi guys,

In case somebody else has similar issues, Gary's problem was with the web report viewer's height which was set in percentage, but there was no height specified for the DOM tree.

Best wishes,
Steve
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Sid
Top achievements
Rank 1
answered on 08 May 2009, 04:17 PM
Thanks!  It's working now.
Tags
General Discussions
Asked by
FposUser
Top achievements
Rank 1
Answers by
FposUser
Top achievements
Rank 1
Steve
Telerik team
Sid
Top achievements
Rank 1
Share this question
or