当前位置:网站首页>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;
}
}边栏推荐
- Jerry's initiation of ear pairing, reconnection, and opening of discoverable and connectable cyclic functions [chapter]
- [开源] .Net ORM 访问 Firebird 数据库
- OpenGL job coordinate system
- [JDBC Part 1] overview, get connection, CRUD
- 戴森官方直营店免费造型服务现已开放预约 先锋科技诠释护发造型理念,助力消费者解锁多元闪耀造型
- Jerry's fast pairing does not support canceling pairing [article]
- [interview arrangement] 0211 game engine server
- Index summary (assault version)
- The essence of analog Servlet
- PKPM 2020软件安装包下载及安装教程
猜你喜欢

应用实践 | 数仓体系效率全面提升!同程数科基于 Apache Doris 的数据仓库建设
Preparing for the interview and sharing experience

Why can't win11 display seconds? How to solve the problem that win11 time does not display seconds?
![VTOL in Px4_ att_ Control source code analysis [supplement]](/img/7a/4ce0c939b9259faf59c52da2587693.jpg)
VTOL in Px4_ att_ Control source code analysis [supplement]

反爬通杀神器

vite Unrestricted file system access to

Pdf document signature Guide

Display optimization when the resolution of easycvr configuration center video recording plan page is adjusted
![Jerry's initiation of ear pairing, reconnection, and opening of discoverable and connectable cyclic functions [chapter]](/img/14/1c8a70102c106f4631853ed73c4d82.png)
Jerry's initiation of ear pairing, reconnection, and opening of discoverable and connectable cyclic functions [chapter]

强化学习-学习笔记9 | Multi-Step-TD-Target
随机推荐
How does win11 unblock the keyboard? Method of unlocking keyboard in win11
嵌入式开发:如何为项目选择合适的RTOS?
The strongest installation of the twin tower model, Google is playing "antique" again?
. Net automapper use
Jerry's about TWS pairing mode configuration [chapter]
OpenGL job - texture
如何选择合适的自动化测试工具?
[azure microservice service fabric] start the performance monitor in the SF node and set the method of capturing the process
Interview question 01.02 Determine whether it is character rearrangement - auxiliary array algorithm
Remember aximp once Use of exe tool
Matplotlib drawing interface settings
vite Unrestricted file system access to
How to close eslint related rules
UWA问答精选
Jerry's manual matching method [chapter]
The whole network "chases" Zhong Xuegao
[JDBC Part 1] overview, get connection, CRUD
How to turn on win11 game mode? How to turn on game mode in win11
Cv2.resize function reports an error: error: (-215:assertion failed) func= 0 in function ‘cv::hal::resize‘
Vs custom template - take the custom class template as an example