Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Standard view
Full view
of .
Look up keyword
Like this
0 of .
Results for:
No results containing your search query
P. 1
Create a Crystal Report From ADO.net Dataset Using Visual Basic .NET

Create a Crystal Report From ADO.net Dataset Using Visual Basic .NET



|Views: 2,231|Likes:
Published by Puneet Arora
Learn to create Crystal Reports Using Dataset .

From :www.ecologic.co.in
Learn to create Crystal Reports Using Dataset .

From :www.ecologic.co.in

More info:

Published by: Puneet Arora on May 18, 2009
Copyright:Attribution Non-commercial


Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less





 Ecologic Corporation , Chandigarh : Tel: 9872856485
Compiled By Ecologic Training Departmentwww.ecologic.co.in,www.logicatwork.info  How To: Create a Crystal Report from ADO.NET Datasetusing Visual Basic .NET
 Crystal Report of Visual Studio .NET is the standard reporting tool for Visual Studio.NET. You can host reports on web and windows platform and can publish reports asReport Web services on the web server. It is based on framework of Crystal Report8.0 and uses open and flexible architecture, with standards like XML, to allow portingreports over the web. Using crystal report expert you can choose report layouts,display charts, calculate summaries, subtotals as grouped data as well asconditionally format text and rotate text objects.Although Crystal Reports for Visual Studio .NET supports variety of data source likeADO recordset, CDO recordset, DAO recordset, MS Excel workbook, this walkthroughendeavor to explain How to report off ADO.NET DataSet using Visual Basic .NET.As you all know DataSet is the core component of distributed application and isexplicitly designed for data access independent of any data source. Dataset can becreated from variety of sources. Whatever the source is, before reporting off ADO.NET DataSet you must perform the following task:
Generate an object for the DataSet.
Connect report to DataSet Object.
Push data into DataSet Object.
Bind report to Windows Forms Viewer to display report with actualdata at runtime.Requirements:
Visual Studio .NET 2002
.NET Framework 1.0
SQL Server 2000 with Northwind database
Generating an Object for the DataSet
Object for ADO.NET is a collection of dataset classes created in memory.
 Ecologic Corporation , Chandigarh : Tel: 9872856485
To create a dataset object from Northwind database in SQL Server, usingADO.NET DataSet Designer.
In the
Solution Explorer
, right-click the project name, point to
, and click 
Add New Item
In the Categories area of the Add New Item dialog box, expand the folder andselect
In the Templates area, select
Accept the default name
.This creates a new schema file that will be used to generate a strongly typed dataset. Theschema file will be displayed in ADO.NET Dataset designer.5.
In the
Solutions Explorer,
click on
file, if now already the activeview.6.
From the
Server Explore,
on the right connect to SQL Server and drill down toNorthwind Database.7.
Highlight the Table Customers (or stored procedure if desired) and drag and dropit on the Interface of Dataset1.xsd. Dataset1.xsd should now be displayed in theDataset tab as under
 Ecologic Corporation , Chandigarh : Tel: 9872856485
This creates a dataset object and contains only a description of the database based on theschema in Dataset1.xsd. It does not contain the actual data.
Connecting Report to an ADO.NET Dataset Object
From ADO.NET Dataset Object you can add tables to Crystal Report using DatabaseExpert in Crystal Report Designer.
To create a new report and connect it to Dataset object which containsdescription for Customers table in Northwind database
In the Visual Studio .NET
Solution Explorer
, right-click your project to displaythe shortcut menu.2.
Point to
and click 
New Item
In the Add New Item dialog box, select
Crystal Report
from the Templates area.Click 

Activity (16)

You've already reviewed this. Edit your review.
1 hundred reads
1 thousand reads
syriluit liked this
buddhika1980 liked this
1984ltnhin liked this
manjunath_bhat liked this
papatania liked this
ediletd liked this

You're Reading a Free Preview

/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->