Spire.Doc is a professional Word .NET library specifically designed for developers to create, read, write, convert and print Word document files. Get free and professional technical support for Spire.Doc for .NET, Java, Android, C++, Python.

Mon Jul 10, 2023 1:17 pm

Greetings!

I have created a table containing of a single row and a single column (hence the table consists of a single cell) and I configured the table to contain no paddings (see screenshot). The cell does not use paddings, too, since it is configured to inherit the settings from the table.

When I programmatically access the cell paddings for left and right, I get wrong values. I expect to get 0 for both values but it seems the default values are returned instead (which is 5,4pt).

Here is the code I use:
float leftPadding = cell.getCellFormat().getPaddings().getLeft();
float rightPadding = cell.getCellFormat().getPaddings().getRight();

Is this a bug or do I miss something here?

Kind regards,
Marcus

mgattinger
 
Posts: 65
Joined: Fri May 21, 2021 9:03 am

Tue Jul 11, 2023 3:58 am

Hello,

Thank you for your inquiry.
Based on the information you provided, I simulated a Word document and did reproduce the issue you mentioned. I have logged the issue into our bug tracking system with the ticket number SPIREDOC-9631. Our development team will investigate and fix it. Once it is resolved, I will inform you in time. Sorry for the inconvenience caused.

Sincerely
Wenly
E-iceblue support team
User avatar

Wenly.Zhang
 
Posts: 149
Joined: Tue May 16, 2023 2:19 am

Return to Spire.Doc