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.

Tue Oct 17, 2023 4:50 pm

Hi Team ,

TableRow row = table.getRows().get(0);
row.isHeader(true);
row.setHeight(20); //It is minimum height size

if cell has huge data ,all words are not visible . How to change the height's size .

Thanks in advance

pr20080798
 
Posts: 159
Joined: Wed Jan 20, 2021 1:15 pm

Wed Oct 18, 2023 2:35 am

Hi,

Thank you for your inquiry.
You can set the row height to “automatically” to fit the filled content.
You need to add the following code:
Code: Select all
row.setHeightType(TableRowHeightType.Auto);

If you have any issue just feel free to contact us.

Sincerely,
Ula
E-iceblue support team
User avatar

Ula.wang
 
Posts: 282
Joined: Mon Aug 07, 2023 1:38 am

Mon Nov 13, 2023 1:37 am

Hi,

Did you test the code on your side? Did it solve your problem?
Please feel free to us if you have any problem.

Best Regards,
Ula
E-iceblue support team
User avatar

Ula.wang
 
Posts: 282
Joined: Mon Aug 07, 2023 1:38 am

Return to Spire.Doc