daiei27
May 23rd, 2005, 10:31 AM
Anyone know of a way to interpret text as source for an RTF document? I have text in a variable and pasted in a document that looks like this:
{\rtf1 \ansi \deff0 \deflang1033
{\fonttbl {\f0 Arial;}}
...
...
}
I want it to be intrepreted and displayed as RTF. I've tried cutting and pasting as RTF, but that just pasted it back in as text.
'Convert text to RTF'
doc1.Content.Cut
doc1.Content.PasteSpecial , , , , wdPasteRTF
I'm using VBScript through Internet Explorer so I'm not allowed to save the documents. I also want it all automated so I don't want to prompt the user to do so either. Have any ideas?
{\rtf1 \ansi \deff0 \deflang1033
{\fonttbl {\f0 Arial;}}
...
...
}
I want it to be intrepreted and displayed as RTF. I've tried cutting and pasting as RTF, but that just pasted it back in as text.
'Convert text to RTF'
doc1.Content.Cut
doc1.Content.PasteSpecial , , , , wdPasteRTF
I'm using VBScript through Internet Explorer so I'm not allowed to save the documents. I also want it all automated so I don't want to prompt the user to do so either. Have any ideas?