Web ReportViewer toolbar background missing

11 posts, 0 answers
  1. FposUser
    FposUser avatar
    13 posts
    Member since:
    May 2007

    Posted 24 Apr 2009 Link to this post

    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
  2. FposUser
    FposUser avatar
    13 posts
    Member since:
    May 2007
  3. DevCraft banner
  4. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 27 Apr 2009 Link to this post

    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.
  5. FposUser
    FposUser avatar
    13 posts
    Member since:
    May 2007

    Posted 28 Apr 2009 Link to this post

    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



  6. Sid
    Sid avatar
    11 posts
    Member since:
    Apr 2005

    Posted 30 Apr 2009 Link to this post

    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...
  7. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 01 May 2009 Link to this post

    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.
  8. Sid
    Sid avatar
    11 posts
    Member since:
    Apr 2005

    Posted 04 May 2009 Link to this post

    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





  9. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 05 May 2009 Link to this post

    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.
  10. Sid
    Sid avatar
    11 posts
    Member since:
    Apr 2005

    Posted 05 May 2009 Link to this post

    Hi Steve,

    I have opened a support ticket (#210143).

    Thanks,
    Gary
  11. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 06 May 2009 Link to this post

    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.
  12. Sid
    Sid avatar
    11 posts
    Member since:
    Apr 2005

    Posted 08 May 2009 Link to this post

    Thanks!  It's working now.
Back to Top
DevCraft banner