Reportviewer Design Report in VB. NET

Source: Internet
Author: User

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.





Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.