web 2.0

ASP.NET(vb.net) & ReportViewer - rsweb:ReportViewer

ASP.NET(vb.net) & ReportViewer - rsweb:ReportViewer - The ReportViewer encapsulates the methods and properties used for the ReportViewer control.

ShotDev Focus:
- ASP.NET(vb.net) & ReportViewer - rsweb:ReportViewer

ASP.NET(vb.net) & ReportViewer - rsweb:ReportViewer

Reporting  Control

ASP.NET(vb.net) & ReportViewer - rsweb:ReportViewer

Tag Control :


<asp:ReportViewer ID="ReportViewer1" runat="server"></asp:ReportViewer>

ASP.NET(vb.net) & ReportViewer - rsweb:ReportViewer

Drag ReportViewer Control to ASP.NET Web Form. On ReportViewer Tasks -> Design new report.

ASP.NET(vb.net) & ReportViewer - rsweb:ReportViewer

Choose Your Data Connection or Create New Connection

ASP.NET(vb.net) & ReportViewer - rsweb:ReportViewer

If new connection select Data source:

ASP.NET(vb.net) & ReportViewer - rsweb:ReportViewer

Click Next go to next step.

ASP.NET(vb.net) & ReportViewer - rsweb:ReportViewer

Save a ConnectionString to the configuration file.

ASP.NET(vb.net) & ReportViewer - rsweb:ReportViewer

Choose your database object. or table name.

ASP.NET(vb.net) & ReportViewer - rsweb:ReportViewer

DataSet Properties -> Choose the DataSet (Name,Data source,Available dataset)

ASP.NET(vb.net) & ReportViewer - rsweb:ReportViewer

Arrange fields , Row groups , Column group and Values.

ASP.NET(vb.net) & ReportViewer - rsweb:ReportViewer

Choose the layout.

ASP.NET(vb.net) & ReportViewer - rsweb:ReportViewer

Choose a style. and Click Finish to save Report.

ASP.NET(vb.net) & ReportViewer - rsweb:ReportViewer

On ReportViewer Tasks -> Choose Report (From creating.)

ASP.NET(vb.net) & ReportViewer - rsweb:ReportViewer

Drag ScriptManager Control to ASP.NET Web Form.

Example Code

Reportviewer.aspx

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Reportviewer.aspx.vb" Inherits="Reportviewer" %>

<%@ Register assembly="Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" namespace="Microsoft.Reporting.WebForms" tagprefix="rsweb" %>

<!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>ShotDev.Com Tutorial</title>
</head>
<body>
<form id="form1" runat="server">
<div>

<rsweb:ReportViewer ID="ReportViewer1" runat="server" Font-Names="Verdana"
Font-Size="8pt" InteractiveDeviceInfos="(Collection)"
WaitMessageFont-Names="Verdana" WaitMessageFont-Size="14pt" Width="643px"
Height="329px">
<LocalReport ReportPath="Report1.rdlc">
<DataSources>
<rsweb:ReportDataSource DataSourceId="ObjectDataSource1" Name="DataSet1" />
</DataSources>
</LocalReport>
</rsweb:ReportViewer>
<asp:ObjectDataSource ID="ObjectDataSource1" runat="server"
SelectMethod="GetData"
TypeName="mydatabaseDataSetTableAdapters.customerTableAdapter">
</asp:ObjectDataSource>
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>

</div>
</form>
</body>
</html>

Reportviewer.aspx.vb

Partial Class Reportviewer
Inherits System.Web.UI.Page

End Class

Screenshot

ASP.NET(vb.net) & ReportViewer - rsweb:ReportViewer

.
.
.
Download this script.
Download

1 Star2 Stars3 Stars4 Stars5 Stars6 Stars7 Stars8 Stars9 Stars10 Stars (No Ratings Yet)
Loading ... Loading ...

One Response to “ASP.NET(vb.net) & ReportViewer - rsweb:ReportViewer”

  1. 2promotion…

Leave a Reply

You must be logged in to post a comment.