web 2.0

ASP.NET(vb.net) & CrystalReportViewer

ASP.NET(vb.net) & CrystalReportViewer - The CrystalReportViewer control allows a Crystal Report to be viewed in an application. this an example how to create and using CrystalReportViewer control.

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

ASP.NET(vb.net) & CrystalReportViewer

ASP.NET(vb.net) & CrystalReportViewer

Drag control CrystalReportViewer to ASP.NET Web Form and Click CrystalReportViewer Tasks -> Choose Report Source -> <New data sourceā€¦>

ASP.NET(vb.net) & CrystalReportViewer

Input specify a name for the CrystalReportSource control. You can select an existing report Or create new report.

ASP.NET(vb.net) & CrystalReportViewer

If create new report. Input a name for the new report.

ASP.NET(vb.net) & CrystalReportViewer

Select a Using the Report Wizard and Click OK.

ASP.NET(vb.net) & CrystalReportViewer

Create New Connection.

ASP.NET(vb.net) & CrystalReportViewer

This sample a Access Database. Select Database Name :

ASP.NET(vb.net) & CrystalReportViewer

Choose the data you want to report on.

ASP.NET(vb.net) & CrystalReportViewer

Choose the information to display on the report.

ASP.NET(vb.net) & CrystalReportViewer

Design on Report.

Example Code

Default.aspx

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

<%@ Register assembly="CrystalDecisions.Web, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" namespace="CrystalDecisions.Web" tagprefix="CR" %>

<!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>

<CR:CrystalReportViewer ID="CrystalReportPartsViewer1" runat="server"
AutoDataBind="True" Height="1106px" ReportSourceID="CReportSource1"
Width="876px" />
<CR:CrystalReportSource ID="CReportSource1" runat="server">
<Report FileName="CReport1.rpt">
</Report>
</CR:CrystalReportSource>

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

Default.aspx.vb


Partial Class _Default
Inherits System.Web.UI.Page

End Class

Screenshot

ASP.NET(vb.net) & CrystalReportViewer
.
.
.
Download this script.
Download

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

Leave a Reply

You must be logged in to post a comment.