G
Guest
Hello,
I am seeing Word 2007 treat HTML files differently when opening through an
automation client (C#) and in Word. Specifically, when I load an html file
that has numbering using Word directly, it automatically senses the file type
and loads it perfectly. When I try to load the same file using Open(), it
flubs the numbering.
Some things I tried:
1. Captured a macro of me loading the file. Copied same arguments to C#
automation client. No dice.
2. Changed confirmConversions argument of Open to true (from false). Word
them prompted me to confirm HTML Conversion and the file looked great. Not a
good solution because I want it automated.
3. Tried making file read-only, changing html file from "foo.htm" to
"foo.html", etc. No dice.
This is frustrating. Can anyone give me a hand?
I am seeing Word 2007 treat HTML files differently when opening through an
automation client (C#) and in Word. Specifically, when I load an html file
that has numbering using Word directly, it automatically senses the file type
and loads it perfectly. When I try to load the same file using Open(), it
flubs the numbering.
Some things I tried:
1. Captured a macro of me loading the file. Copied same arguments to C#
automation client. No dice.
2. Changed confirmConversions argument of Open to true (from false). Word
them prompted me to confirm HTML Conversion and the file looked great. Not a
good solution because I want it automated.
3. Tried making file read-only, changing html file from "foo.htm" to
"foo.html", etc. No dice.
This is frustrating. Can anyone give me a hand?