How to merge rows of rdlc in asp.net

Source: Internet
Author: User

Final effect:


It is impossible for me to merge the content rows. I have been searching for the Internet for N years and have not found it ~
Later, after a short thought, I finally thought of another merger ,:-)
The implementation method is simple, that is, add the following code in the report attribute code:
Copy codeThe Code is as follows:
Function GetRemark (rowNum As Integer, remark As String) As String
Dim cutLength As Integer = 10
Return Mid (remark, cutLength * (rowNum-1) + 1, cutLength)
End Function

(Note: This function has two parameters: an int and a string. the return value is string. The function contains the int variable cutLength, which is used to control the display of each line.
)
Add code. GetRemark (RowNumber (Nothing), Fields! Remark. Value)
Set the cell border to NONE!
Here, I will explain my thoughts:
In fact, I split the fields to be merged and displayed into several segments for display. I wrote a function. The parameter is the current number of rows and field value and returns the truncated string,
Therefore, the most suitable table for me to merge is a fixed row. Here I use it to print the delivery notes,
My waybill is no matter how many data entries (I will not exceed 11 lines each time ),
Each time I show 13 rows, I find the fixed Rows on the Internet, so I won't be so embarrassed here (* ^__ ^ *)
I am not very familiar with reports. In this article, I just share some ideas. If you have any questions, please point out ~ :-)

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.