• We just launched and are currently in beta. Join us as we build and grow the community.

How to Create a Reports using Crystal Report in Visual Basic.Net

mustafa2019

AI Model Designer
M Rep
0
0
0
Rep
0
M Vouches
0
0
0
Vouches
0
Posts
99
Likes
62
Bits
2 MONTHS
2 2 MONTHS OF SERVICE
LEVEL 1 300 XP
In this tutorial, I'm going to show how to create a report in Visual Basic using Crystal reports. As I know, some of programmers have a difficulty on how to add or create a report on their application, especially the those enthusiast individuals who are about to start their journey to become a better programmer. So I hope this tutorial of mine will be useful for your works. To start with, this application, here’s the following steps:

Step 1. Create a new Database called “books” and Save it as 2002 -2003 file format.
Step 2. Create a new table called “book”, and follow the fields and data type for this table. It looks like as shown below:
c1_3.png


Step 3. Here’s the sample data for this table.
c2_0.png


Step 4. Open visual studio, and create a new Visual Basic project and save it as “crystalRep”.
c3_1.png


Step 5. From the Toolbox, under the “Reporting” add a CrystalReportViewer into the form. And this look like as shown below:
c4_0.png


Step 6. On the CrystalReportViewwer task, Select Create New Crystal report. This look like as shown below:
c5_0.png


Step 7. It will automatically add a crystal report in your project and you can it in your solution explorer. Then double click the “CrystalReport1.rpt”.

c6_1.png


Step 8. For your Field Explorer, right click the “Database Fields” and click “Database Expert..”.
c7.png


Step 9. Select “Create New Connection”, Then “OLE DB (ADO)”.
c8.png


Step 10. Click “Make New Connection”. And another dialog will show. Then for Provider, Select “Microsoft Jet 4.0 OLE DB Provider” and click “Next”.
c9.png


Step 11. For Database information, just browse to where your database is located.
c10.png


Step 12. Click Finish. Then it will look like as shown below:
c11.png


Step 13. Click book, so that it will be added to our selected tables. Then click “OK”.
c12.png


Step 14. And as you have observed the Field Explorer now has the Table “book” with fields. This time you can simply drag each field from Field Explorer to Crystal Report (Section 3 (Details)). And this look like as shown below:
c13.png


Step 15. Run your application you can observe that it will give you a list of books. And this looks like as shown below:
c14.png


At this time its up to you how can design you own report, by adding some header or footer or some important details about your report.

If you want to see some new Source Code or Application and Tutorials Just click here.


Download
You must upgrade your account or reply in the thread to view the hidden content.
 

452,292

324,125

324,133

Top