当前位置:网站首页>Aspose. Words merge cells
Aspose. Words merge cells
2022-07-07 22:22:00 【Hey, hey, hey, hey, hey】
By means of Word Add data to the field transaction table ,
When the data is added , You need to merge the specified cells vertically .
//doc:word file 、tableIndex: Table subscript 、startRow: Line start subscript 、endRow: Line termination subscript 、CellIndex: Column subscript
private void MergeCells(Document doc,int tableIndex,int startRow,int endRow,int CellIndex)
{
if(endRow - startRow <= 1) return;
Table table = (Table)doc.GetChild(NodeType.Table,tableIndex,true);
table.Rows[startRow].Cells[CellIndex].CellFormat.VerticalMerge = CellMerge.First;
for(int i = startRow + 1; i <= endRow; i++)
{
table.Rows[i].Cells[CellIndex].CellFormat.VerticalMerge = CellMerge.Previous;
}
}边栏推荐
- MIT6.S081-Lab9 FS [2021Fall]
- Welcome to CSDN markdown editor
- Interview question 01.02 Determine whether it is character rearrangement - auxiliary array algorithm
- Record a garbled code during servlet learning
- Crawler (17) - Interview (2) | crawler interview question bank
- Ternary expressions, generative expressions, anonymous functions
- . Net automapper use
- operator
- 嵌入式开发:如何为项目选择合适的RTOS?
- Embedded development: how to choose the right RTOS for the project?
猜你喜欢

Crawler (17) - Interview (2) | crawler interview question bank

Ueeditor custom display insert code
![[azure microservice service fabric] the service fabric cluster hangs up because the certificate expires (the upgrade cannot be completed, and the node is unavailable)](/img/35/1bb21c100980eb1075dbbcb922e181.png)
[azure microservice service fabric] the service fabric cluster hangs up because the certificate expires (the upgrade cannot be completed, and the node is unavailable)

ByteDance Android interview, summary of knowledge points + analysis of interview questions
![[open source] Net ORM accessing Firebird database](/img/a2/4eff4f0af53bf3b9839a73019a212f.png)
[open source] Net ORM accessing Firebird database

How does win11 unblock the keyboard? Method of unlocking keyboard in win11

UWA问答精选

Build your own website (18)

Use json Stringify() to realize deep copy, be careful, there may be a huge hole

【Azure微服务 Service Fabric 】因证书过期导致Service Fabric集群挂掉(升级无法完成,节点不可用)
随机推荐
【JDBC Part 1】概述、获取连接、CRUD
It's worth seeing. Interview sites and interview skills
DBSync新增对MongoDB、ES的支持
Which financial products will yield high returns in 2022?
Talk about relational database and serverless
OpenGL homework - Hello, triangle
Song list 11111
How to turn on win11 game mode? How to turn on game mode in win11
Pdf document signature Guide
SAR影像质量评估
Typeorm automatically generates entity classes
[开源] .Net ORM 访问 Firebird 数据库
变量与常量
NVR hard disk video recorder is connected to easycvr through the national standard gb28181 protocol. What is the reason why the device channel information is not displayed?
[azure microservice service fabric] the service fabric cluster hangs up because the certificate expires (the upgrade cannot be completed, and the node is unavailable)
PKPM 2020 software installation package download and installation tutorial
Jerry's initiation of ear pairing, reconnection, and opening of discoverable and connectable cyclic functions [chapter]
ByteDance senior engineer interview, easy to get started, fluent
[interview arrangement] 0211 game engine server
The whole network "chases" Zhong Xuegao