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

Report Viewer result : blank report concent in HTML

13 Answers 463 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Ali
Top achievements
Rank 1
Ali asked on 18 May 2009, 04:14 PM
Hello
I just added a sample report references to my web site project.After assigning report viewer to  one of the  sample report  and run the page.I saw generate report text and then  balnk report content  l.I can see data/report concent if I extract it to pdf or excel  but I can not see as HTML.What can be problem do you think ?
Thanks

13 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 18 May 2009, 04:45 PM
Hi Ali,

The information you've provided is insufficient for us to determine what is the problem at hand. Please elaborate on the issue, so that we can provide more to the point advices.

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
Ali
Top achievements
Rank 1
answered on 18 May 2009, 05:04 PM
Hi Steve
basically I have web site project and I wanted to test how I can use a class library in my project.
I created an aspx page in my website project and drag reportviewer user control of telerik reporting component.Then I references  telerik reporting sample projects DLL  (report library ) which comes with telerik installation .When I compile and run the page I saw a html page on the top there is standard pager,zoom ,export tool bar but below there is no report concent.When I  try the expot pdf or excel option of this toolbar ,I can see sample report conent  as a pdf or xls file.That means something prevent me to view html version of the report from my project.When I open sample web applciation projects in VB or C# ,I can run examples and see reports in reportview as HTML page.But in my project as i said when I add refernces and test I can not see the report as HTML .
I am pretty sure that I am binding reportviewer to correct report.AS I tried assigning both programatically and declaritively (from properties menu of reprotviewer user control).
In the light of above things ,what can be in my website project that prevent me to see report htmls ?
Thanks a lot

Note :I also create my vb class library report and put a simple report .It works fine in class library project but when I add library dll refernces again to  my web site project ,it did not work and behave same as like  sample telerik reports. You can export and see content but you can not see HTML report.,it is blank  ??
0
Syed
Top achievements
Rank 1
answered on 18 May 2009, 10:15 PM
I too have similar problem but not exactly same.

I added reference to my website which i created in class library. I run in the browser i can able to see dataset result.

But when i deploy on localhost, i cannot able to see the dataset result. i just able to date and time with header. No data is retrieving.

No error occurs.

Thanks.

Regards
Syed Arshad


0
Steve
Telerik team
answered on 19 May 2009, 01:38 PM
Hi guys,

@Ali: from your explanation it would seem that the problem is in your report viewer markup i.e. your height is too small/not defined or you have set height in percents, but you have not applied height to all DOM elements that are parent for the viewer. You can copy the report viewer markup with its adjacent settings  from our WebSite demo page to verify that it would work.
@Syed: I guess you mean that you've added reference to the class library from the web site. Such "missing data" can occur if the sql instance has changed or you're not getting data for some reason. Please verify that the dataset is properly filled and passed to the report viewer.

Sincerely yours,
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
Justin
Top achievements
Rank 1
answered on 10 Dec 2012, 10:26 PM
I have the same problem except I can get the ReportViewer to render the preport when running locally but cant preview the report. When uploading the project to the webserver I cant get it to render. I think this happened after my upgrade to the version votated below in my web.config.

<?xml version="1.0"?>
<configuration>
  <connectionStrings>
    <add name="wasteConnectionString_TRUSTED" connectionString="Data Source=ctnhcordb01;Initial Catalog=waste;Integrated Security=True" providerName="System.Data.SqlClient" />
    <add name="wasteConnectionString_APPLOGIN" connectionString="Data Source=ctnhcordb01;Initial Catalog=waste;User Id=waste_applogin;Password=xxx" providerName="System.Data.SqlClient" />
    <add name="wasteConnectionString_TRUSTED-Deployment" connectionString="Data Source=ctnhcordb01;Initial Catalog=waste;Integrated Security=True" providerName="System.Data.SqlClient" />
    <add name="wasteConnectionString_APPLOGIN-Deployment" connectionString="Data Source=ctnhcordb01;Initial Catalog=waste;User Id=waste_applogin;Password=xxx" providerName="System.Data.SqlClient" />
  </connectionStrings>
  <appSettings />
  <system.web>
    <customErrors mode="Off" />
    <compilation debug="true" strict="false" explicit="true" targetFramework="4.0">
      <assemblies>
        <add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
        <!--<add assembly="Telerik.ReportViewer.WebForms, Version=6.0.12.215, Culture=neutral, PublicKeyToken=a9d7983dfcc261be"/>
        <add assembly="Telerik.Reporting, Version=6.0.12.215, Culture=neutral, PublicKeyToken=a9d7983dfcc261be"/>-->
        <add assembly="Telerik.ReportViewer.WebForms, Version=6.0.12.504, Culture=neutral, PublicKeyToken=A9D7983DFCC261BE" />
        <add assembly="Telerik.Reporting, Version=6.0.12.504, Culture=neutral, PublicKeyToken=A9D7983DFCC261BE" />
      </assemblies>
    </compilation>
    <pages>
      <controls>
        <add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI" />
      </controls>
    </pages>
    <httpHandlers>
      <add path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" validate="false" />
      <add path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" validate="false" />
      <add path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" validate="false" />
      <add path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" validate="false" />
      <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false" />
      <add type="Telerik.ReportViewer.WebForms.HttpHandler, Telerik.ReportViewer.WebForms, Version=6.0.12.504, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" path="Telerik.ReportViewer.axd" verb="*" validate="true" />
    </httpHandlers>
    <httpModules>
      <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule" />
      <add name="RadCompression" type="Telerik.Web.UI.RadCompression" />
      <add name="Session" type="System.Web.SessionState.SessionStateModule" />
      <add name="WindowsAuthentication" type="System.Web.Security.WindowsAuthenticationModule" />
    </httpModules>
  </system.web>
  <system.webServer>
    <validation validateIntegratedModeConfiguration="false" />
    <modules runAllManagedModulesForAllRequests="true">
      <remove name="RadUploadModule" />
      <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule" preCondition="integratedMode" />
      <remove name="RadCompression" />
      <add name="RadCompression" type="Telerik.Web.UI.RadCompression" preCondition="integratedMode" />
    </modules>
    <handlers>
      <remove name="ChartImage_axd" />
      <add name="ChartImage_axd" path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" preCondition="integratedMode" />
      <remove name="Telerik_Web_UI_SpellCheckHandler_axd" />
      <add name="Telerik_Web_UI_SpellCheckHandler_axd" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" preCondition="integratedMode" />
      <remove name="Telerik_Web_UI_DialogHandler_aspx" />
      <add name="Telerik_Web_UI_DialogHandler_aspx" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" preCondition="integratedMode" />
      <remove name="Telerik_RadUploadProgressHandler_ashx" />
      <add name="Telerik_RadUploadProgressHandler_ashx" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" preCondition="integratedMode" />
      <remove name="Telerik_Web_UI_WebResource_axd" />
      <add name="Telerik_Web_UI_WebResource_axd" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" preCondition="integratedMode" />
      <add name="Telerik.ReportViewer.axd_*" type="Telerik.ReportViewer.WebForms.HttpHandler, Telerik.ReportViewer.WebForms, Version=6.0.12.504, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" path="Telerik.ReportViewer.axd" verb="*" preCondition="integratedMode" />
    </handlers>
  </system.webServer>
</configuration>
0
Steve
Telerik team
answered on 11 Dec 2012, 12:08 PM
Hi Justin,

Version 6.0.12.504 is an internal build, which we do not support, but nonetheless we do not believe it is related to the update, as we have not changed anything that is even remotely related to such a problem in this build. Your problem is different than the one reported in this thread, as you state you can view the report in the report viewer, it is only preview that does not work. Can you share what is your data source and how you bind your report?

We appreciate that you have send your web.config file, but we would need a runnable project in order to identify a culprit. Additionally as this is an older version, it would be best if you upgrade to the latest one and see if the problem persists, prior sending us a project in official support ticket.

Greetings,
Steve
the Telerik team

HAPPY WITH TELERIK REPORTING? Do you feel that it is fantastic? Or easy to use? Or better than Crystal Reports? Tell the world, and help fellow developers! Write a short review about Telerik Reporting and Telerik Report Designer in Visual Studio Gallery today!

0
Justin
Top achievements
Rank 1
answered on 11 Dec 2012, 06:43 PM
I have upgraded my project to the latest version. I still experience the same issues so I will now give you some more detail of my code. I also have a 25mb video of what i experience but need a place to put it. Another key point is when I choose to export or print my report it renders correctly. It only shows a blank screen in the report viewer on the production server and not on the local debug session.

Web Config:
<?xml version="1.0"?>
<configuration>
  <connectionStrings>
    <add name="wasteConnectionString_TRUSTED" connectionString="Data Source=ctnhcordb01;Initial Catalog=waste;Integrated Security=True" providerName="System.Data.SqlClient" />
    <add name="wasteConnectionString_APPLOGIN" connectionString="Data Source=ctnhcordb01;Initial Catalog=waste;User Id=waste_applogin;Password=www" providerName="System.Data.SqlClient" />
    <add name="wasteConnectionString_TRUSTED-Deployment" connectionString="Data Source=ctnhcordb01;Initial Catalog=waste;Integrated Security=True" providerName="System.Data.SqlClient" />
    <add name="wasteConnectionString_APPLOGIN-Deployment" connectionString="Data Source=ctnhcordb01;Initial Catalog=waste;User Id=waste_applogin;Password=www" providerName="System.Data.SqlClient" />
  </connectionStrings>
  <appSettings />
  <system.web>
    <customErrors mode="Off" />
    <compilation debug="true" strict="false" explicit="true" targetFramework="4.0">
      <assemblies>
        <add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
        <!--<add assembly="Telerik.ReportViewer.WebForms, Version=6.0.12.215, Culture=neutral, PublicKeyToken=a9d7983dfcc261be"/>
        <add assembly="Telerik.Reporting, Version=6.0.12.215, Culture=neutral, PublicKeyToken=a9d7983dfcc261be"/>-->
        <add assembly="Telerik.ReportViewer.WebForms, Version=6.2.12.1017, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" />
        <add assembly="Telerik.Reporting, Version=6.2.12.1017, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" />
      </assemblies>
    </compilation>
    <pages>
      <controls>
        <add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI" />
      </controls>
    </pages>
    <httpHandlers>
      <add path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" validate="false" />
      <add path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" validate="false" />
      <add path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" validate="false" />
      <add path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" validate="false" />
      <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false" />
      <add type="Telerik.ReportViewer.WebForms.HttpHandler, Telerik.ReportViewer.WebForms, Version=6.2.12.1017, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" path="Telerik.ReportViewer.axd" verb="*" validate="true" />
    </httpHandlers>
    <httpModules>
      <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule" />
      <add name="RadCompression" type="Telerik.Web.UI.RadCompression" />
      <add name="Session" type="System.Web.SessionState.SessionStateModule" />
      <add name="WindowsAuthentication" type="System.Web.Security.WindowsAuthenticationModule" />
    </httpModules>
  </system.web>
  <system.webServer>
    <validation validateIntegratedModeConfiguration="false" />
    <modules runAllManagedModulesForAllRequests="true">
      <remove name="RadUploadModule" />
      <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule" preCondition="integratedMode" />
      <remove name="RadCompression" />
      <add name="RadCompression" type="Telerik.Web.UI.RadCompression" preCondition="integratedMode" />
    </modules>
    <handlers>
      <remove name="ChartImage_axd" />
      <add name="ChartImage_axd" path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" preCondition="integratedMode" />
      <remove name="Telerik_Web_UI_SpellCheckHandler_axd" />
      <add name="Telerik_Web_UI_SpellCheckHandler_axd" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" preCondition="integratedMode" />
      <remove name="Telerik_Web_UI_DialogHandler_aspx" />
      <add name="Telerik_Web_UI_DialogHandler_aspx" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" preCondition="integratedMode" />
      <remove name="Telerik_RadUploadProgressHandler_ashx" />
      <add name="Telerik_RadUploadProgressHandler_ashx" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" preCondition="integratedMode" />
      <remove name="Telerik_Web_UI_WebResource_axd" />
      <add name="Telerik_Web_UI_WebResource_axd" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" preCondition="integratedMode" />
      <add name="Telerik.ReportViewer.axd_*" type="Telerik.ReportViewer.WebForms.HttpHandler, Telerik.ReportViewer.WebForms, Version=6.2.12.1017, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" path="Telerik.ReportViewer.axd" verb="*" preCondition="integratedMode" />
    </handlers>
  </system.webServer>
</configuration>


PrintLabel.ASPX
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="PrintWasteLabel2.aspx.vb" Inherits="EHSWasteSystem.WebForm8" %>
 
<%@ Register Assembly="Telerik.ReportViewer.WebForms, Version=6.2.12.1017, 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">
 
<head runat="server">
    <title></title>
</head>
<body>
     
    <div>
        <form id="form1" runat="server">
            <telerik:ReportViewer ID="ReportViewer1" runat="server" Height="815px" Width="972px">
            </telerik:ReportViewer>
        </form>
    </div>
 
 
</body>
</html>

PrintLabel.vb
Imports EHSWasteSystem.CommonWasteFunctions
 
Public Class WebForm8
    Inherits System.Web.UI.Page
 
    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        Dim report As rpt_ContainerLabel_Rad = New rpt_ContainerLabel_Rad()
        report.Param1 = Session("UserNameShort") 'User.Identity.Name.ToString
        Me.ReportViewer1.Report = report
        Me.ReportViewer1.RefreshReport()
    End Sub
 
    Private Sub WebForm8_Unload(sender As Object, e As System.EventArgs) Handles Me.Unload
      EndSub
 
End Class


Report.vb
Imports System.ComponentModel
Imports System.Drawing
Imports System.Windows.Forms
Imports Telerik.Reporting
Imports Telerik.Reporting.Drawing
 
Partial Public Class rpt_ContainerLabel_Rad
    Inherits Telerik.Reporting.Report
    Public Sub New()
        InitializeComponent()
    End Sub
 
    Public Property Param1() As String
        Get
            Return CType(Me.SqlDataSource1.Parameters(0).Value, String)
        End Get
        Set(ByVal value As String)
            Me.SqlDataSource1.Parameters(0).Value = value
        End Set
    End Property
 
End Class

0
Steve
Telerik team
answered on 14 Dec 2012, 03:22 PM
Hello Justin,

We're unable to reproduce such an issue with the provided code. Can you share whether this occurs in all browsers or a specific browser/version only? If the problem persists, please open a support ticket and attach a sample that exhibits the issue there. Once we review it, we would be able to provide more information.

Regards,
Steve
the Telerik team

HAPPY WITH REPORTING? Do you feel that it is fantastic? Or easy to use? Or better than Crystal Reports? Tell the world, and help fellow developers! Write a short review about Telerik Reporting and Telerik Report Designer in Visual Studio Gallery today!

0
Donald McLean
Top achievements
Rank 2
answered on 08 Jan 2013, 02:34 PM
In PrintLabel.aspx if Justin a had a function to open a page in the parent window how could you access it, I have a similar setup. I have my main application in which I click a button and it opens up a new window to a module I created called CBO in that window I click a report that opens an AdvancedReportViewer.aspx in a new window which looks identical to Justin's PrintLabel.aspx. My goal is to attempt to change the CBO window to open a page with a parmeter i pass in from the report. I can get it to change the current AdvancedReportViewer window or open up into another new window. However ideally I would like to change the CBO window to the page passing in the ID to open.

I created a function on the AdvancedReportViewer.aspx which I thought should be able to change the CBO window. I changed my links in my report to attempt to use the function however it doesn't see the function.
0
Donald McLean
Top achievements
Rank 2
answered on 08 Jan 2013, 03:50 PM
I figured out the solution to my issue, I thought I would share my solution in case other people dilemma. Here goes, I have a htmlTextBox, i added a list of record numbers turned then into links using the <a> tag setting the href to my javascript:parent.openRecord function passing in the record ID. I set up the openRecord function in the AdvancedReportViewer.aspx page. openRecord all it does is sets window.opener.location to my record detail page passing the record ID as a URL parameter and it works perfectly. Took quite a bit of searching to figure this out. I thought I would share to make other peoples lives easier.
0
Gaja
Top achievements
Rank 1
answered on 24 May 2013, 08:11 PM
Hi,
I have a similar issue. I am using Telerik reporting version 7.0.13.426 and browser is IE 10. Reports works fine when I run it in IE 10 but when I do compatibility view it just shows a blank page even though I can export to pdf or excel and see the entire report. Is there any particular reason for this? I have set height correctly and to all parent elements also in %. Any other browser combination is not giving an issue whether it is IE 9, IE 10 but IE 10 compatibility view is giving blank report. For some of our clients we do need to run this in compatibility view. You can check the attached image which shows IE 10 in compatibility mode but blank report and also 1-5 page numbers being shown on top. Please suggest.

Gaja
0
Stef
Telerik team
answered on 29 May 2013, 07:56 AM
Hello Gaja,

There are some compatibility issues with IE10 in certain cases. Please try adding the following meta tag:
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
which will cause the browser to run in standard document mode instead of using compatibility view.

Regards,
Stef
Telerik

Have you tried the new visualization options in Telerik Reporting Q1 2013? You can get them from your account.

0
Roger
Top achievements
Rank 1
answered on 04 Jun 2013, 10:52 PM
Hi Stef,

had the same problem:
  • works fine on local PC...doesn't show report on remote server
  • Same data for both

used your solution (the meta tag) in the reportviewer aspx page on the remote server and it works a treat.
 
Thanks for that solution

Tags
General Discussions
Asked by
Ali
Top achievements
Rank 1
Answers by
Steve
Telerik team
Ali
Top achievements
Rank 1
Syed
Top achievements
Rank 1
Justin
Top achievements
Rank 1
Donald McLean
Top achievements
Rank 2
Gaja
Top achievements
Rank 1
Stef
Telerik team
Roger
Top achievements
Rank 1
Share this question
or