Developing a program, you may need to save datas in different formats, like excel or word...
Saving text in word format it's quite simple, but do it in word 2007 format (.docx) it's different (it uses xml). Formatting this text is more difficult, 'cause format tags isn't well documented. This is why i put some of them above.
<p>text</p>
<w:p><w:r><w:t>TEXT</w:t></w:r></w:p>
<br />TEXT
</w:t></w:r><w:br /><w:r><w:t>TEXT
Bold
<w:r><w:rPr><w:b /></rPr>TEXT</w:r>
Underline
<w:r><w:rPr><w:u w:val="single"/></rPr>TEXT</w:r>
Italic
<w:r><w:rPr><w:i /></rPr>TEXT</w:r>
Colors
<w:r><w:rPr><w:color w:val="FF0000" /></rPr>TEXT</w:r>
No comments:
Post a Comment