All Projects → zavier → ReadWordTable

zavier / ReadWordTable

Licence: other
使用poi解析word文档(.docx)中的表格内容及格式,并以html形式输出

Programming Languages

java
68154 projects - #9 most used programming language

Labels

Projects that are alternatives of or similar to ReadWordTable

Phpstamp
The XSL-way templating library for MS Office Word DOCX documents.
Stars: ✭ 150 (+476.92%)
Mutual labels:  word
Sensegram
Making sense embedding out of word embeddings using graph-based word sense induction
Stars: ✭ 209 (+703.85%)
Mutual labels:  word
ToolTipPopupWordTV
ToolTipopupWordTV is an Open Source Android library that allows developers to easily open a popup with details by select a word from a textview.
Stars: ✭ 41 (+57.69%)
Mutual labels:  word
Docviewer
文档/文件查看器(支持本地或者其他app分享过来的word、excel、pdf、rtf等格式文件)
Stars: ✭ 155 (+496.15%)
Mutual labels:  word
Isearch
有道词典 命令行查询 柯林斯词典 单词管理 本地保存
Stars: ✭ 201 (+673.08%)
Mutual labels:  word
Androiddocumentviewer
Android 文档查看: word、excel、ppt、pdf,使用mupdf及tbs
Stars: ✭ 235 (+803.85%)
Mutual labels:  word
Docxtemplater
Generate docx pptx and xlsx (Microsoft Word, Powerpoint, Excel documents) from templates, from Node.js, the Browser and the command line / Demo: https://www.docxtemplater.com/demo
Stars: ✭ 1,990 (+7553.85%)
Mutual labels:  word
weasels
List of (possible) English weasel words
Stars: ✭ 32 (+23.08%)
Mutual labels:  word
Office Ribbonx Editor
An overhauled fork of the original Custom UI Editor for Microsoft Office, built with WPF
Stars: ✭ 205 (+688.46%)
Mutual labels:  word
subtlex-word-frequencies
A list of words from the SUBTLEX movie subtitles corpus, sorted by frequency.
Stars: ✭ 25 (-3.85%)
Mutual labels:  word
Documentserver
ONLYOFFICE Document Server is an online office suite comprising viewers and editors for texts, spreadsheets and presentations, fully compatible with Office Open XML formats: .docx, .xlsx, .pptx and enabling collaborative editing in real time.
Stars: ✭ 2,335 (+8880.77%)
Mutual labels:  word
Ariawase
Ariawase is free library for VBA cowboys.
Stars: ✭ 185 (+611.54%)
Mutual labels:  word
chrome-shanbay-v2
shanbay chrome extension
Stars: ✭ 19 (-26.92%)
Mutual labels:  word
Poi Tl
Generate awesome word(docx) with template
Stars: ✭ 2,306 (+8769.23%)
Mutual labels:  word
flutter filereader
Flutter实现的本地文件(pdf word excel 等)查看插件,非在线预览
Stars: ✭ 101 (+288.46%)
Mutual labels:  word
Summernote Cleaner
Plugin for Summernote that adds a Button and/or Paste functionality for cleaning MS Word Crud from editor text
Stars: ✭ 148 (+469.23%)
Mutual labels:  word
Kkfileviewofficeedit
文件在线预览及OFFICE(word,excel,ppt)的在线编辑
Stars: ✭ 234 (+800%)
Mutual labels:  word
wordroller
Free Microsoft Word document (aka .docx) processing library for .Net
Stars: ✭ 17 (-34.62%)
Mutual labels:  word
officeexport-java
三行代码导出自定义样式word
Stars: ✭ 68 (+161.54%)
Mutual labels:  word
Office365FiddlerExtension
This Fiddler Extension is an Office 365 centric parser to efficiently troubleshoot Office 365 client application connectivity and functionality.
Stars: ✭ 23 (-11.54%)
Mutual labels:  word

ReadWordTable

使用poi解析word文档(.docx)中的表格内容及结构,并以html形式输出

原理分析:https://www.cnblogs.com/zawier/p/6062596.html

总结一下处理Word中表格的行列合并相关的api:

获取单元格的属性

XWPFTableCell cell = table.getRow(2).getCell(0);
CTTcPr tcPr = cell.getCTTc().getTcPr();

行合并时

CTVMerge vMerge = tcPr.getVMerge();
// 如果不是行合并的单元格,则没有此属性,即: vMerge == null
// 如果是行合并的第一行单元格,则: vMerge.getVal().toString() == "restart"
// 如果是行合并的其他行单元格,则: vMerge.getVal() 

列合并时

CTDecimalNumber gridSpan = tcPr.getGridSpan();
// 其他不是列合并的单元格,则:gridSpan == null
// 如果是列合并的第一列单元格,则:gridSpan.getVal()可以获取到这列单元格所占的行数
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].