![]() But I have my doubts whether that will be a satisfactory solution. The only other possibility would be to embed a Windows Forms RTF control on the surface of the document. This could be done by inserting it using the converter, then extracting the result using the Range.WordOpenXML property and writing the result back to the database. So one thing you could do would be to dynamically transform (XSLT) the RTF to Word Open XML, then insert it into the document.Īnother approach would be to convert all the RTF in the database to Word Open XML. Valid Word Open XML can be inserted directly into a document, from memory, using the InsertXML method of the Range or Seleciton object. Word's native file format for 20 is Word Open XML. But Word's formatted text is in Word's native file format, not RTF. "Rich text" in this context means "formatted text" as opposed to "plain text". It's not clear what you mean by "a field type of rich text", but I'm assuming you mean a Rich Text content control. The converter only kicks in when opening or inserting a file, or when pasting from the clipboard. A converter is required in order to bring RTF content into Word as formatted content. ![]() RTF is not (and never has been) Word's native file format. But it seems to have gotten lost in the forum "black hole". I'm sure I wrote an answer to this a few hours ago. ![]() The format facilitates cross-platform document exchange with other Microsoft Products, thus serving the purpose of interoperability. Type to rich text, but when I run the project the output display the data above instead of the proper rich text format. Introduced and documented by Microsoft, the Rich Text Format ( RTF) represents a method of encoding formatted text and graphics for use within applications. I have added the dataset to my project and then dragged the above field after setting it's I am trying to display the content of this field in a word 2010 document using VS office development 2010. ![]() I have data saved in a SQL database in an nvarchar(max) field type. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |