Report not visible from Ipad

9 posts, 1 answers
  1. Felice
    Felice avatar
    198 posts
    Member since:
    Aug 2013

    Posted 18 Dec 2013 Link to this post

    I have a weird problem. My reports shows up very nicely in asp.net website from various browser on Windows PC (Chrome and IE), on Mac (Safari, Firefox and Chrome) and also from Android tablets but not from iPads.
    I am completely lost with this problem. I can select the report parameters, I see the progress bar while the report is being prepared, I see the paging showing that there are pages available and I can see the report in print pre-view but otherwhise is not visible.
    This is the way I instantiate the report:
    protected void Page_Load(object sender, EventArgs e)
    {
       if (!IsPostBack)
        {
            var instanceReportSource = new Telerik.Reporting.InstanceReportSource();
            instanceReportSource.ReportDocument = new Rep1.UrbanRails();
            this.ReportViewer1.ReportSource = instanceReportSource;
        }       
    }
    Any help will be appreciated.
  2. Stef
    Admin
    Stef avatar
    3050 posts

    Posted 19 Dec 2013 Link to this post

    Hi Felice,

    Please take a look at the following KB article: Blank report in ASP.NET ReportViewer on iPad/iPhone.

    I hope this helps you.

    Regards,
    Stef
    Telerik

    New HTML5/JS REPORT VIEWER with MOBILE AND TOUCH SUPPORT available in Telerik Reporting Q3 2013! Get the new Reporting version from your account or download a trial.

  3. DevCraft banner
  4. Felice
    Felice avatar
    198 posts
    Member since:
    Aug 2013

    Posted 09 Feb 2014 in reply to Stef Link to this post

    Hi Stef,
    sorry took me some time to get back on this issue.
    This is my page:
    <%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="repOperators.aspx.cs" Inherits="report1" %>
     
     
    <%@ Register Assembly="Telerik.ReportViewer.WebForms, Version=7.2.14.127, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" Namespace="Telerik.ReportViewer.WebForms" TagPrefix="telerik" %>
    <asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    </asp:Content>
    <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
        <div id="divpagebody" class="pagebody">
            <telerik:ReportViewer ID="ReportViewer1" runat="server" Height="640px" Width="100%"></telerik:ReportViewer>
        </div>
    </asp:Content>
    Please advice about what I am suppose to change to get the report online visible from Ipads.
  5. Stef
    Admin
    Stef avatar
    3050 posts

    Posted 12 Feb 2014 Link to this post

    Hello Felice,

    This is page that uses a MasterPage - MasterPage.master. In that Master Page test to apply the settings listed in the Blank report in ASP.NET ReportViewer on iPad/iPhone KB article(Switch  older DOCTYPE declaration or test the new HTML5 Report Viewer).

    Let us know if you need any further help.

    Regards,
    Stef
    Telerik

    New HTML5/JS REPORT VIEWER with MOBILE AND TOUCH SUPPORT available in Telerik Reporting Q3 2013! Get the new Reporting version from your account or download a trial.

  6. olepadre
    olepadre avatar
    8 posts
    Member since:
    Apr 2007

    Posted 18 Feb 2014 in reply to Stef Link to this post

    the link provided in the answer gives a 404 error.
  7. Stef
    Admin
    Stef avatar
    3050 posts

    Posted 19 Feb 2014 Link to this post

    Hi Robert,

    Apologies for the inconvenience. Check the links at my previous post:
    "This is page that uses a MasterPage - MasterPage.master. In that Master Page test to apply the settings listed in the Blank report in ASP.NET ReportViewer on iPad/iPhone KB article(Switch  older DOCTYPE declaration or test the new HTML5 Report Viewer)."

    Regards,
    Stef
    Telerik

    New HTML5/JS REPORT VIEWER with MOBILE AND TOUCH SUPPORT available in Telerik Reporting Q3 2013! Get the new Reporting version from your account or download a trial.

  8. Felice
    Felice avatar
    198 posts
    Member since:
    Aug 2013

    Posted 16 Mar 2014 in reply to Stef Link to this post

    Hi Stef,
    thanks for your directions but I am not coming right here.
    This is my master page. Could you be so nice to indicate me which are the changes I should make? Alternatively, please link me to a demo with a working report rendering on Ipad! I am running around this issue now since few months.
    Thanks,
    Felice
    <%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage.master.cs" Inherits="MasterPage" %>
     
    <!DOCTYPE html>
     
    <head runat="server">
        <title>Railways Projects Database</title>
        <meta name="description" content="Railways Projects Database.
          Rollingstock Prices and Statistics." />
    <meta name="keywords" content="Railways, train prices, tram prices,
          metro prices, Rollingstock Projects, Rollingstock Statistics, Rail Projects prices,
          Railways Prices" />
        <link href="css/StyleSheet.css" rel="stylesheet" />
        <link rel="shortcut icon" href="~/favicon.ico" type="image/x-icon" />
        <link rel="icon" href="~/favicon.ico" type="image/x-icon" />
        <asp:ContentPlaceHolder ID="head" runat="server">
        </asp:ContentPlaceHolder>
    </head>
    <body>
        <form id="form1" runat="server">
            <asp:ScriptManager ID="ScriptManager1" runat="server" />
            <div id="divHeaderAndMenu" class="headermenu">
                <section class="header-and-nav">
                    <header id="logo" class="headerlogo">
                        <div class="header-content">
                            <div class="header-logo">
                                <div class="logo">
                                    <a class="logo-image" href="home.aspx"></a>
                                </div>
                            </div>
                        </div>
                    </header>
                    <div id="menu" class="headernavigation">
                        <div class="headernavigation-content">
                            <nav class="primary-nav">
                                <ul>
                                    <li class="primary-nav-section" id="lnkHome" runat="server">
                                        <a class="primary-nav-link" href="home.aspx">Home</a>
                                    </li>
                                    <li class="primary-nav-section" id="lnkLogin" runat="server">
                                        <a class="primary-nav-link" href="login.aspx">Login</a>
                                    </li>
                                    <li class="primary-nav-section" id="lnkDataAdmin" runat="server">
                                        <a class="primary-nav-link" href="dataAdmin.aspx">Data Administration</a>
                                        <nav class="primary-nav-sub">
                                            <a class="primary-nav-sublink" href="customers.aspx">Customer Administration</a>
                                            <a class="primary-nav-sublink" href="manufacturers.aspx">Manufacturer Administration</a>
                                            <a class="primary-nav-sublink" href="events.aspx">Events Administration</a>
                                            <a class="primary-nav-sublink" href="product.aspx">Products Administration</a>
                                            <a class="primary-nav-sublink" href="projects.aspx">Projects Administration</a>
                                            <a class="primary-nav-sublink" href="industry_report.aspx">Industry Reports</a>
                                            <a class="primary-nav-sublink" href="urbanrailreport.aspx">Urban Rails</a>
                                        </nav>
                                    </li>
                                    <li class="primary-nav-section" id="lnkSearch" runat="server">
                                        <a class="primary-nav-link" href="search.aspx">Search</a>
                                    </li>
                                    <li class="primary-nav-section" id="lnkReports" runat="server">
                                        <a class="primary-nav-link" href="reports_Start_page.aspx">Reports</a>
                                        <nav class="primary-nav-sub">
                                            <a class="primary-nav-sublink" href="repContrCustCountr.aspx">Contracts by Customers</a>
                                            <a class="primary-nav-sublink" href="repCustCountr.aspx">Customers by Country</a>
                                            <a class="primary-nav-sublink" href="repIndustry_rep.aspx">Industry Reports</a>
                                            <a class="primary-nav-sublink" href="repOperators.aspx">Operators by Country</a>
                                            <a class="primary-nav-sublink" href="repUrbanRail.aspx">Urban Rail Infrastr.</a>
                                            <a class="primary-nav-sublink" href="repReferences.aspx">References</a>
                                        </nav>
                                    </li>
                                    <li class="primary-nav-section" id="lnkAdmin" runat="server">
                                        <a class="primary-nav-link" href="users.aspx">Administration</a>
                                        <nav class="primary-nav-sub">
                                            <a class="primary-nav-sublink" href="users.aspx">Users</a>
                                            <a class="primary-nav-sublink" href="Roles.aspx">Roles</a>
                                            <a class="primary-nav-sublink" href="user_images.aspx">Home Images</a>
                                            <a class="primary-nav-sublink" href="BoardAnnouncement.aspx">Board Announcement</a>
                                            <a class="primary-nav-sublink" href="user_log.aspx">User Log</a>
                                            <a class="primary-nav-sublink" href="user_logins.aspx">Users Logins</a>
                                            <a class="primary-nav-sublink" href="changelog.aspx">Changelogs</a>
                                        </nav>
                                    </li>
                                    <li class="primary-nav-section" id="lnkFileSharing" runat="server">
                                        <a class="primary-nav-link" href="FileSharing.aspx">File Sharing</a>
                                    </li>
                                    <li class="primary-nav-section" id="lnkHelp" runat="server">
                                        <a class="primary-nav-link" href="help.aspx">Help</a>
                                    </li>
                                    <li class="primary-nav-section" id="lnkLogout" runat="server">
                                        <a class="primary-nav-link" href="logout.aspx">Log Out</a>
                                    </li>
                                </ul>
                            </nav>
                        </div>
                    </div>
                </section>
            </div>
     
            <div id="divMainDataMaster" class="maindatamaster">
                <div id="divMainData" class="maindata">
                    <asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">
                    </asp:ContentPlaceHolder>
                </div>
            </div>
     
        </form>
    </body>
    </html>
  9. Answer
    Nasko
    Admin
    Nasko avatar
    909 posts

    Posted 19 Mar 2014 Link to this post

    Hello Felice,

    Currently, you are using the HTML5 DOCTYPE declaration:
    <%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage.master.cs" Inherits="MasterPage" %>
      
    <!DOCTYPE html>
      
    ...

    The provided KB article and suggestion by my colleague is to switch that declaration with an older one, such as the HTML 4.01 Transitional DOCTYPE:
    <%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage.master.cs" Inherits="MasterPage" %>
       
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
       
    ...


    Regards,
    Nasko
    Telerik
     

    DevCraft Q1'14 is here! Watch the online conference to see how this release solves your top-5 .NET challenges. Watch on demand now.

     
  10. Felice
    Felice avatar
    198 posts
    Member since:
    Aug 2013

    Posted 29 Mar 2014 in reply to Nasko Link to this post

    Thank you Stef,
    this solved my problem.

    Kind regards
    Felice
Back to Top
DevCraft banner