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.

Wed Oct 30, 2013 4:09 am

Hi, I'm wondering how to set the table width when exporting to HTML as 100%. Is there any other way than an additional CSS file?

will.marriott
 
Posts: 27
Joined: Thu Oct 24, 2013 9:47 pm

Wed Oct 30, 2013 9:10 am

Dear Will,

Thanks for your inquiry.
Please kindly try the below code snippet to set table width as 100%.
Code: Select all
   PreferredWidth width = new PreferredWidth(WidthType.Percentage, 100);
   table.PreferredWidth = width;

Welcome to write to us again in case you have further problems.

Best regards,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 3044
Joined: Wed Jun 27, 2012 8:50 am

Mon Nov 04, 2013 9:14 am

Dear Will,

Did the below code snippet solve your issue?

Looking forward to your feedback.

Thanks!

Best regards,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 3044
Joined: Wed Jun 27, 2012 8:50 am

Tue Nov 05, 2013 3:27 am

No my issue is not resolved. I've added the code however it now renders the HTML table element with width of 2%, not 100%.

will.marriott
 
Posts: 27
Joined: Thu Oct 24, 2013 9:47 pm

Tue Nov 05, 2013 8:22 am

Dear Will,

Sorry for the inconvenience.
Our dev team has fixed the issue. We will build a new hotfix for you. We will release it and inform you when the new hotfix passes all test cases.

Best regards,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 3044
Joined: Wed Jun 27, 2012 8:50 am

Fri Nov 08, 2013 10:16 am

Dear Will,

Thanks for your waiting.
The new hotfix has been released.
Please test Spire.Doc Pack (Hot Fix) Version:4.9.39.
Downloading link :http://www.e-iceblue.com/Download/download-word-for-net-now.html

Please feel free to contact us if you have any issues.

Best regards,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 3044
Joined: Wed Jun 27, 2012 8:50 am

Wed Nov 13, 2013 9:50 am

Dear Will,

Did you test Spire.Doc Pack (Hot Fix) Version:4.9.39? Did it resolve the issue?

Thanks for your feedback.

Best regards,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 3044
Joined: Wed Jun 27, 2012 8:50 am

Thu Nov 14, 2013 3:18 am

The hot fix has resolved this issue, thank you very much.

will.marriott
 
Posts: 27
Joined: Thu Oct 24, 2013 9:47 pm

Return to Spire.Doc

cron