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

can't get bottom #1433

Open
LvKang405 opened this issue Sep 14, 2024 · 0 comments
Open

can't get bottom #1433

LvKang405 opened this issue Sep 14, 2024 · 0 comments

Comments

@LvKang405
Copy link

When I use
/* for row in mytable.rows:
tr = row._tr
for tc in tr.tc_lst:
*/
to read a table in a DOCX file, one cell does not identify the tc.bottom attribute.
The traceback from PyCharm indicates:
'Traceback (most recent call last): File "C:\Program Files\JetBrains\PyCharm 2024.1\plugins\python\helpers\pydev\_pydevd_bundle\pydevd_resolver.py", line 178, in _getPyDictionary attr = getattr(var, n) File "C:\Users\LvKang\.conda\envs\text\lib\site' The XML code for this particular cell is as follows: <w:tc> <w:tcPr> <w:tcW w:w="609" w:type="dxa"/> <w:vMerge w:val="restart"/> <w:vAlign w:val="center"/> </w:tcPr> <w:p w14:paraId="6C51FEFB" w14:textId="1095FA2A" w:rsidR="00A22069" w:rsidRPr="00790D0A" w:rsidRDefault="00A22069" w:rsidP="00A22069"> <w:pPr> <w:spacing w:line="240" w:lineRule="atLeast"/> <w:rPr> <w:rFonts w:ascii="宋体" w:eastAsia="宋体" w:hAnsi="宋体" w:hint="eastAsia"/> <w:size value=24/> <w:sizeCs value=24/>


This merging cells 2rows and 1column.mmexport1726307985757.png
this cell content is "123",it is on the second to last line

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

No branches or pull requests

1 participant