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 ~ :-)