|
-
January 21st, 2000, 07:56 AM
#1
Word to html
I want to read a Word File a convert it to HTML Document how to do this DO I Use OLE automation ie i have to implement Saveas HTML Code thorugh VB. Can some one help me out on this.
-
January 21st, 2000, 09:49 AM
#2
Re: Word to html
add a reference to the Word typelib to your vb project
Dim w as Word.Application
set w = new Word.Application
w.Documents.Open ("c:\test.txt")
w.ActiveDocument.SaveAs FileName:="c:\tesx.htm", _
FileFormat:=wdFormatHTML
set w = nothing
(tested in Vb6, Word2000, NT 4)
-
January 23rd, 2000, 10:54 AM
#3
Re: Word to html
The application that i wish to create will not relly on word's objects it will do the actual conversion of word file to doc and it will not use save as code atall it is an assignment of sorts that has been given and has been taken up as a challenge so can U tell me some thing more please
Ranjit
-
February 7th, 2000, 11:02 AM
#4
Re: Word to html
Word files can be read by script code just by loading the doc file in a window such as location.href=something.doc and Word will load the doc file in the assigned window
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|