My Report.aspx page contains a ReportViewer control, and I set the TypeName & ReportSource during the ReportViewer1.Load method.
For all reports I try, some of my toolbar buttons are disabled (e.g. Previous Page, Next Page, Last Page) and what's more is the "First Page" button when clicked seems to act as the print button!
Also, the current page is always "0". See attachment.
Below is my markup/code for the Report.aspx page.
For all reports I try, some of my toolbar buttons are disabled (e.g. Previous Page, Next Page, Last Page) and what's more is the "First Page" button when clicked seems to act as the print button!
Also, the current page is always "0". See attachment.
Below is my markup/code for the Report.aspx page.
Private Sub ReportViewer1_Load(sender As Object, e As System.EventArgs) Handles ReportViewer1.Load
'set report type
Private repDataSource As New Telerik.Reporting.TypeReportSource
repDataSource.TypeName = "XXX.Case_Report, XXX, Version=1.0.0.0, Culture=neutral, PublicKeyToken=b10c045d816b947a"
ReportViewer1.ReportSource = repDataSource
End Sub
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Report.aspx.vb" Inherits="xxx.Report" %>
<%@ Register Assembly="Telerik.ReportViewer.WebForms, Version=7.0.13.426, 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"
>
<
style
type
=
"text/css"
>
/* max height */
html, body, form
{
height: 100%;
margin: 0px;
padding: 0px;
background-color:White
}
</
style
>
<
title
></
title
>
</
head
>
<
body
style
=
"padding:0;margin:0"
>
<
form
id
=
"form1"
runat
=
"server"
>
<
telerik:ReportViewer
ID
=
"ReportViewer1"
runat
=
"server"
Width
=
100
%
Height
=
"700px"
ShowDocumentMapButton
=
"False"
ShowHistoryButtons
=
"False"
ShowNavigationGroup
=
"true"
ShowParametersButton
=
"true"
ShowPrintPreviewButton
=
"False"
ToolbarVisible
=
true
></
telerik:ReportViewer
>
</
form
>
</
body
>
</
html
>