Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to add a table in a paragraph? #1144

Open
pookokok opened this issue Aug 1, 2023 · 2 comments
Open

How to add a table in a paragraph? #1144

pookokok opened this issue Aug 1, 2023 · 2 comments

Comments

@pookokok
Copy link

pookokok commented Aug 1, 2023

I want to insert a table between two paragraphs or add a table in a specific paragraph, but the methods

doc.InsertTable(0, thirdXwpfTable) ;
doc.Paragraphs[0].Body.InsertTable(0, thirdXwpfTable);

are not working.

@tonyqus
Copy link
Member

tonyqus commented Aug 2, 2023

What do you mean not working? table not inserted or file is broken?

@pookokok
Copy link
Author

pookokok commented Aug 3, 2023

我想要让表格插在两个段落的中间,或跟在某个段落的后面,给的dome里没这个的样例。尝试了这两个方法,表格还是只会在最下面,不会去上面,没效果。我的word模板是固定的,需要插入N个表格在段落1和2之间
(I would like to insert a table between two paragraphs or after a specific paragraph, but there is no example of this in the given sample. I have tried both methods, but the table still only appears at the bottom and does not move up. My Word template is fixed and I need to insert N tables between paragraphs 1 and 2.)
image

最新的2.6.1 版本创建表格时默认的表格线没了,和原来的不一样,是有新方法了吗

顺便问问NPOI有官方文档吗,找东西太累了 T_T

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants