No comment has been added to this question in more than 21 days, so it is now classified as abandoned. I will make a recommendation to the moderators on its resolution in a week or two. I appreciate any comments that would help me to make a recommendation.
Unless it is clear to me that the question has been answered I will recommend delete without refund of points. It is possible that a Grade less than A will be given if no expert makes a case for an A grade. It is assumed that any participant not responding to this request is no longer interested in its final disposition.
If the asker does not know how to close the question, the options are here:
http://www.experts-exchang
WMIF
EE Cleanup Volunteer
Main Topics
Browse All Topics





by: softplusPosted on 2005-05-06 at 13:24:12ID: 13947812
IF you have Word on the Server and IF you feel like it's safe to use from a website :)) (note: I wouldn't), you can go for this approach: Value eName, missing, True, missing, missing, missing, missing, _
Doc.Range. Text())
om/WCX/WCX .htm (free? :)) /net/cz- CZ %20Documen t%20Conver ter%20COM- 1-1.htm ($260, but does what you want) tion.com/w ord-web-st ream.htm ($100)
Imports Microsoft.Office.Interop
Use Word.Document to open a word document, here is an example:
Dim missing As Object = System.Reflection.Missing.
Dim fileName As String = "MyWordFile.doc"
' open a word document that already exists to work with
Dim aDoc As Word.Document = WordApp.Documents.Open(fil
missing, missing, missing, missing, False, missing, missing, missing)
Use *.Range.Text() to get entire doc file as a string, eg:
' Prints entire file to the screen
System.Console.WriteLine(a
You might be able to use Range to get a specific segments of the doc file, eg:
Dim tpStr as String = aDoc.Range(0,12).Text()
BUT as I mentioned, I wouldn't do this on a real web server, you never know what Word will do to you :))
Other ideas:
http://www.softinterface.c
http://www.convertzone.com
http://www.sharewareconnec
John