I'm trying to use VB6 to read a Word Document, manipulate the text,
then output the results to a text file. Parts of the document are in
non-English languages, and I can't get it to work properly.
Code snippet as follows:
Set wordDoc = wordApp.Documents.Open("c:\Document1.doc", , True)
Open "c:\Results.txt" For Output As 1
' looping through cells in a table
for nRow = 1 to .Rows.Count
strVal = .Cell(nRow, 1).Range.Text
' manipulate text omitted
Print #1, strVal
While looping, if I set break points and watch strVal, all that I see
is a number of ? characters. Also, this is what is printed to the
file. I don't entirely expect the watch window to work, but I would
expect better results from the file.
I have tried to open the document with an Encoding value, but that
doesn't seem to help.
If anyone has any ideas on how to improve my current results, I'd