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
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.
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 ??
@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.
<?
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
>
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!
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">
<
html
xmlns
=
"http://www.w3.org/1999/xhtml"
>
<
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
End
Sub
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
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!
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.
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
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"
/>
Regards,
Stef
Telerik
Have you tried the new visualization options in Telerik Reporting Q1 2013? You can get them from your account.
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