Microsoft
Software
Hardware
Network
Question : Telerik Reporting, Report Viewer
I am using Visual Studio 2008, VB, ASP.Net, with a 2008 SQL database. I am using Telerik Reporting with a Telerik Report Viewer.
The reports reside in a class library and the class library has been referenced to the web application.
I'd like to populate the viewer by catching an event from the .aspx page (such as a button-click.) The report viewer shows the report with no problem if you place the report in the viewer's "REPORT" property in the properties box. But I just cannot find the syntax to populate the viewer in the VB code-behind.
Here's the HTML:
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="RptStudentList
ing.aspx.v
b" Inherits="SCO.RptStudentLi
sting" %>
<%@ Register assembly="Telerik.ReportVi
ewer.WebFo
rms, Version=3.2.9.1211, Culture=neutral, PublicKeyToken=a9d7983dfcc
261be" namespace="Telerik.ReportV
iewer.WebF
orms" tagprefix="telerik" %>
http://www.w3.org/TR/xhtm
l1/DTD/xht
ml1-transi
tional.dtd
">
http://www.w3.org/1
999/xhtml"
>
Untitled Page
Report="SCOReports.rptFees
Due, SCOReports, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null">
Now the vb code-behind:
Imports SCOReports
Imports System
Imports System.Web.UI
Imports Telerik.Reporting
Partial Public Class RptStudentListing
Inherits System.Web.UI.Page
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
rvStudentListing.Visible = False
End Sub
Private Sub btnStudList_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnStudList.Click
rvStudentListing.Visible = True
End Sub
Private Sub btnFeesDue_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnFeesDue.Click
rvStudentListing.Visible = True
End Sub
Private Sub ChooseReport(ByVal name As String)
rvStudentListing.Report = SCOReports.rptFeesDue
End Sub
End Class
This seems so easy, but I've spent a lot of time on it with no success. Any thoughts would be appreciated.
Answer : Telerik Reporting, Report Viewer
I found the solution myself, finally. I did not have the proper "Imports" on the page.
Me.ReportViewer1.Report = New ReportLibrary.Report1()
Random Solutions
How can I put the file name and a SHORT path at the bottom of my word 2007 documents?
ORDER BY in UNION query that contains both text and numbers
ReOrder Priorirty
Network driver for Acer one - Model za3 ------ ao751h (Intel atom 1.3 Ghz)
Cached domain credentials in Administrator account of Workgroup computer.
On Insert: The text, ntext, or image data type cannot be selected as DISTINCT
Entourage 2008 users can no longer login/sync to Exchange 2007
TRYING TO OPEN ACCESS DATABASE THAT HAS A FRONT END MENU WHEN DOUBLE CLICK TO OPEN
VB.Net Web Services - xmlns attributes are not put inside tags
SQL needs to ignore input mask