I'm using Word.Open and Documents.Add to open Word from my VB6 app and create a new document. I'm then pasting the contents of the clipboard in. This all works. So far, so unspectacular.
However, the text I'm pasting in from the clipboard is HTML. Since I'm only doing all this so I can use Word's spellchecker, I don't want to be checking HTML tags....
So, what I need is a way to force the new document created by Documents.Add to be a web page so that only the non-tag part of the HTML is spell checked.
Any ideas how to do this? And without Word adding all the surplus tags it normally does when creating a new web page from scratch.
Thanks in advance.
However, the text I'm pasting in from the clipboard is HTML. Since I'm only doing all this so I can use Word's spellchecker, I don't want to be checking HTML tags....
So, what I need is a way to force the new document created by Documents.Add to be a web page so that only the non-tag part of the HTML is spell checked.
Any ideas how to do this? And without Word adding all the surplus tags it normally does when creating a new web page from scratch.
Thanks in advance.