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 Jul 05, 2022 2:28 pm

Hi All,

There doesn't seem to be a way to set the overall table width to 100%.

I can set each column to a percentage but what is the point of that if you cannot set the actual table width to 100% or even in twips...

Any help would be great, thanks

andrewsheldon17181
 
Posts: 3
Joined: Fri Dec 01, 2017 8:40 am

Tue Jul 05, 2022 2:32 pm

got it!!

c#
Code: Select all
PreferredWidth width = new PreferredWidth(WidthType.Percentage, 100);
table.PreferredWidth = width;


VB.Net
Code: Select all
Dim width As PreferredWidth = New PreferredWidth(WidthType.Percentage, 100)
table.PreferredWidth = width

andrewsheldon17181
 
Posts: 3
Joined: Fri Dec 01, 2017 8:40 am

Wed Jul 06, 2022 5:45 am

Hi,

Glad to hear that! If you encounter any issues related to our products in the future, please feel free to contact us.
Wish you all the best :D

Sincerely,
Kylie
E-iceblue support team
User avatar

kylie.tian
 
Posts: 412
Joined: Mon Mar 07, 2022 2:30 am

Return to Spire.Doc