This time we used VB for the billing system. net, which involves the use of reports ,. in net, vs comes with a control reportviewer. For the first time, it is a bit simple to open the control and look at the interface, just like a form. However, after reading it carefully, you will find that the function is still available and easy to operate.
1. We can find the control from the toolbox and add it to the form, for example:
2. Add a report
Right-click the UI Layer and choose "add"> "new item"> "report ". Of course, you can also select a small triangle in the upper right corner of the reportviewer control, which contains the "design new report" item, which is created by yourself through the Report Wizard.
Then, select "report"
2. Set Data Sources for reports
A DataSet object to store data in the database
Click Finish to complete the data source configuration.
4. Create a data source instance in the Code and set a new data source for the report.
The data of this data source can be obtained through conditional query and finally displayed in the report.
Now, a basic report is designed. It is not only applicable to these applications, but also has more functions to be used.