How to Use Crystal Report Control in Visual Basic
The Crystal Report Control is an add-on feature that you can use to make reports while using the Visual Basic software. Visual Basic is a developer software package designed by Microsoft that allows a platform to design different types of applications. Once you have designed your application and report, the Crystal Report Control allows you to test it.
Instructions
-
-
1
Create your report. Before using the Crystal Report Control, you will use the designer to make the report within Visual Basic. Open the Crystal Report designer from the add-in menu in Visual Basic.
-
2
Go to the "File" menu to create a new report. A window will open that gives you the type of reports open to you as well as the data frames you may want to use. Preview each option prior to making your selection.
-
-
3
Use the drag-and-drop feature in Crystal Reports to design your new report in Visual Basic. Once finished, you will want to save the file. It should have an .rpt file extension.
-
4
Open the "Project" menu in Visual Basic. Select "Components" and click on "Crystal Report Control."
-
5
Add the Control to the report form that you have created. You will need to set different properties before running a test with Crystal Reports. You will need to fill out the report's file name and path, the database that you want to use for the Crystal Report and the data you want included. Once this data is correctly entered into the Crystal Report Control, you can test it.
-
6
Print the report to see if you have successfully used the Crystal Report Control in Visual Basic. To do this, type the command "FileName.PrintReport."
-
1