Re: Word Document to HTML
Try
vb.net Code:
Dim objWdApp As Word.Application = DirectCast(CreateObject("Word.Application"), Word.Application)
Dim objWdDoc As Word.Document = DirectCast(objwdApp.Documents, Word.Document)
Re: Word Document to HTML
nope, same error. It's like it doesn't recognise them, or the reference didn't work
Type word.Application is not defined
Type word.Range is not defined
Type word.Document is not defined
Re: Word Document to HTML
It sounds like you do not have a reference set.
You did Project/Add Reference, clicked on the .COM tab, found Microsoft Word Library, selected it, and clicked OK, right?
Re: Word Document to HTML
Yup. Before I do anything else, is this what I should be using to acheive what I want ? Ie Word to HTML
Re: Word Document to HTML
Re: Word Document to HTML
Thanks that link looks useful :)
Re: Word Document to HTML
It should. I wrote it just for you but its a good topic for a FAQ so I posted it there. :)
Re: Word Document to HTML
Well, thankyou I do feel honoured.