Professional Documents
Culture Documents
Crystal Reports Tutorial
Crystal Reports Tutorial
Crystal Reports Tutorial
NET
Open Visual Studio .NET and select a new Visual Basic .NET Project.
Create a new Crystal Reports for Product table from the above
database crystalDB. The Product Table has three fields
(Product_id,Product_name,Product_price) and we are showing the
whole table data in the Crystal Reports.
vb.net-informations.com/crystal-report/vb.net_crystal_report_step_by_step.htm 1/7
10/18/14 Step by Step help for creating a simple Crystal Reports in VB.NET
VB.NET XML Tutorial
vb.net-informations.com/crystal-report/vb.net_crystal_report_step_by_step.htm 2/7
10/18/14 Step by Step help for creating a simple Crystal Reports in VB.NET
Next screen is the SQL Server authentication screen . Select your Sql
Server name , enter userid , password and select your Database
Name . Click next , Then the screen shows OLE DB Property values ,
leave it as it is , and click finish.
Then you will get your Server name under OLEDB Connection from
there select database name (Crystaldb) and click the tables , then
you can see all your tables from your database.
From the tables list select Product table to the right side list .
vb.net-informations.com/crystal-report/vb.net_crystal_report_step_by_step.htm 3/7
10/18/14 Step by Step help for creating a simple Crystal Reports in VB.NET
Select all fields from Product table to the right side list .
Click Finish Button. Then you can see the Crystal Reports designer
window . You can arrange the design according your requirements.
Your screen look like the following picture.
vb.net-informations.com/crystal-report/vb.net_crystal_report_step_by_step.htm 4/7
10/18/14 Step by Step help for creating a simple Crystal Reports in VB.NET
Now the designing part is over and the next step is to call the
created Crystal Reports in VB.NET through Crystal Reports Viewer
control .
Select the default form (Form1.vb) you created in VB.NET and drag a
button and CrystalReportViewer control to your form.
Select Form's source code view and put the code on top
Imports CrystalDecisions.CrystalReports.Engine
NOTES:
cryRpt.Load("PUT CRYSTAL REPORT PATH HERE\CrystalReport1.rpt")
The Crystal Reports is in your project location, there you can see CrystalReport1.rpt . So give
vb.net-informations.com/crystal-report/vb.net_crystal_report_step_by_step.htm 5/7
10/18/14 Step by Step help for creating a simple Crystal Reports in VB.NET
the full path name of report here.
After you run the source code you will get the report like this.
Hope this tutorial help you to create your first Crystal Reports.
vb.net-informations.com/crystal-report/vb.net_crystal_report_step_by_step.htm 6/7
10/18/14 Step by Step help for creating a simple Crystal Reports in VB.NET
vb.net-informations.com/crystal-report/vb.net_crystal_report_step_by_step.htm 7/7