Reportviewer (rdlc) custom table printing, similar to resume and medical records

Source: Internet
Author: User

Speaking of this rdlc, it is really harmful. There is no article on the Internet about this table design.ArticleIt took me two days to study it. (You Need To Know That the two days are a luxury for this project.

For your understanding, let me briefly introduce the design of this table. The following is a diagram of this table:

 

I believe this type of table is often used in MIS systems such as social security and human resources. Now with the rdlc in Vs, you no longer need to spend money to buy expensive report software.

Now let's talk about the design steps.

1. Create a report named "report1.rdlc" by default"

2. to add a "list", this is the most critical because the report prints multiple rows. Therefore, you must use this "list" as a container, otherwise, only one piece of data will be displayed in the future. Only Page 1/1 will be displayed on the toolbar, because this problem has been completed for two days.

3. Add "table" and drag "table" into "list" so that all fields in "table" can be dynamically displayed, such as "= first (Fields! Student_address.value) ". By the way, you should put all the displayed items in the" list.

4. to design a table like this, you need to remove "table details" and leave "Table Header" and "table end ", because another "table" can be embedded in the header and end of the table ",

5. design and organize the table framework. This part mainly adjusts the table structure, such as the names and gender, which are manually typed, "Li Xiaohua, male" is a drag-and-drop database field. Of course, whether the field is dragged in the data set or applied in the database depends entirely on yourProgramThe design is dragged in from the dataset.

6. in the "list" attribute (right-click the blank area of the vertex list), set a group and set the page at the end. If it is a group, it must be a unique value, I chose the auto-increment ID in the database as the group basis. Otherwise, the page number will be incorrect if the value is the same in the future.

 

7. There is a problem with the image. The "table" does not support the combination of upper and lower rows. What should I do? I only need to manually adjust the image position (use the upper, lower, and lower buttons on the keyboard to move the image, and adjust the size value in the image attribute), but remember, this image must be included in the "list". That is to say, the image is first placed in the "example table". Otherwise, the image will not read data. Here, the image is the external URL image address.

8. Add the reprotviewer control to winform to bind it to this report. I will not talk about the subsequent programming.

 

 

This article from the csdn blog, reproduced please indicate the source: http://blog.csdn.net/gxboy/archive/2007/04/20/1572867.aspx

Related Article

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.