R
raj
I am working in VB6 and Word 2003, creating a word document from source
material that has been converted from RTF to HTML. I take the HTML and paste
it into a Word.Range object. This works fine for almost all cases, but I have
found that there are certain special characters that are being lost during
the conversion, § for instance.
The code we are using to insert this HTML into the Range object is a hack
that copies to the Windows clipboard, and then uses the Range.Paste method to
insert the text.
Is there a better way to programmatically insert text that is in HTML format
into a word document? If that is not the case, I can continue using the
method we have, if I can figure out how to insure that the special characters
are inserted properly.
PS The special characters work fine if I go into the word document and
manually type them in using the ALT KEY + Character Code functionality.
Thanks in advance for any advice you can provide.
material that has been converted from RTF to HTML. I take the HTML and paste
it into a Word.Range object. This works fine for almost all cases, but I have
found that there are certain special characters that are being lost during
the conversion, § for instance.
The code we are using to insert this HTML into the Range object is a hack
that copies to the Windows clipboard, and then uses the Range.Paste method to
insert the text.
Is there a better way to programmatically insert text that is in HTML format
into a word document? If that is not the case, I can continue using the
method we have, if I can figure out how to insure that the special characters
are inserted properly.
PS The special characters work fine if I go into the word document and
manually type them in using the ALT KEY + Character Code functionality.
Thanks in advance for any advice you can provide.