Office open xml ms word : Autofit to content and Applying styles like classic etc
-
vendredi 29 juin 2012 21:23
Hello
I am generating word document using office open xml sdk 2.0. I want to achieve following functionality.
1) In a table that i generate dynamically from database i want to set column width to percentage that is returns from database. This works fine but if the width is smaller than content than it wraps. So if the column header is patient and width is 5% it displays
pa in first row
ti in second row
ent in third row.
If i do fit to content from ms word and it works fine. Is there a way to program this using office open xml? Like i want to set the percentage and use fit to content so that word is applied correctly.
2) Secondly i want to set table styles to prebuilt styles in ms word. Like classic , light shading - accent 2 etc. How do it achieve that? I tried setting table style but it doesnt work.
Toutes les réponses
-
samedi 30 juin 2012 06:35Modérateur
The purpose of this forum is to support the Open Specifications documentation. You can read about the Microsoft Open Specifications program here:http://www.microsoft.com/openspecifications/en/us/default.aspx
The library of Open Specification documents is located here, http://msdn.microsoft.com/en-us/library/dd208104(PROT.10).aspx.
This does not appear to be a protocol question, so this would not be the correct forum for this question. I suggest posting this question at http://social.msdn.microsoft.com/Forums/en-US/oxmlsdk/threads \.
Bryan S. Burgin Senior Escalation Engineer Microsoft Protocol Open Specifications Team
- Marqué comme réponse Vilmos Foltenyi MSFTMicrosoft Employee, Moderator vendredi 31 août 2012 08:46

