This blog first writes some of the simplest reports and displays them.
1. Create a Windows form
2. Draw a widget in the form
In fact, we have not used real reports here. The reportviewer control in is just a container for report presentation.
Next we need to create a report:
The following figure shows how to create a reporting table.
Here, the report name I created is report2.rdlc.
3. Open report2.dlc. Add the database we want to connect to in view-Data Report-dataset-add Dataset
Then proceed as follows:
Next, follow the steps to complete the silly route.
4. Return to our report report2.rdlr and perform the following operations:
So far, the report has been connected to the database, and the forms and report controls displayed in our reports have been added. But how can we display our DLC files in the creation? See:
5
Run the program to display the target data.
Why is it boring to write such a report in such a simple operation. But what I want to say is that when I made this report, many details were discovered later, so that it was slow. Through this blog, I want to tell myself that I should be careful, be able to observe, and be able to observe. I will write details in a later blog.