Inserting a Rich Text Formatted string into a Word Document object
Next message: John H: "Customize "Cut/Copy and Paste Special" commands"
Date: Tue, 11 Jan 2005 13:52:09 -0800
I think you can do:
1) Save the formatted string in a temp RTF file and then
insert the file into your Word document,
or
2) Copy the formatted string into the Clipboard and then
Paste it into your Word document (I am not sure how to
copy to the Clipboard).
John
>-----Original Message-----
>I have stored a string in a SQL Server field that is the
formatted text from
>a VB6 RichTextBox object. I would now like to insert
that string into a Word
>Document Object while keeping the formatting from the
database string. I am
>doing this from VB6 using the Microsoft Word 10.0 Object
Library. Any clues
>on how to approach this?
>
>Cheers,
>Jon
>.
>
Next message: John H: "Customize "Cut/Copy and Paste Special" commands"
Relevant Pages
- Re: Text Box To Word Doc
... save a VBA string to a Word document. ... Public Function SendStringToWordFile(_ ... 'Creates or opens a Word document and appends a string to its ... Set oDoc = oWord.Documents.Open ... (microsoft.public.access.externaldata) - Re: CachedData issue VSTO 2005, Word and ASP.NET
... The only way I could find to successfully access the cache was to use the ServerDocument object from within the Word document code itself. ... So your "blob" message should ... cannot read the default value set on the cached string, ... Dim cdhi As CachedDataHostItem = ... (microsoft.public.vsnet.vstools.office) - RE: How to send a DIME attachment with SOAP
... To read a word document on the client side, you could write the stream as ... might be able to find the string you are looking for. ... >public void GetDoc() ... (microsoft.public.dotnet.framework.aspnet.webservices) - Re: Write data in Bookmarks
... have a data file and I have one word document. ... bookmark and the other one is text string that we want to ... the text string ... (microsoft.public.word.vba.general) - Re: Opening a Word document from an app
... I want to browse for a file (it will be a word document), ... name to a string and then at some later stage open that file with word. ... Process.Start (pathToWord, theFileName); ... if I dont include the pathToWord and just rely on ... (microsoft.public.dotnet.languages.csharp) |
|