S
ssissa
Hi,
It seems that when I call
Document.HTMLProject.HTMLProjectItems.LoadFromFile() on a Word document
using Word 2003, the default save format of the file is changed to mht.
I have a COM add-in with the following basic workflow:
1. Extract an HTML representation of an open Word document using
document.HTMLProject.HTMLProjectItems.Text
2. Manipulate the HTML to make some desired changes to the document
3. Apply the changes to the document using
Document.HTMLProject.HTMLProjectItems.LoadFromFile()
Following this, when the user requests a Save or Save As on the document,
Word proposes MHT as the file type by default. I want that Word proposes DOC
by default. Without the calls to LoadFromFile(), Word does propose DOC. How
can I get the default save format for the document back to DOC?
Thanks,
Bret
It seems that when I call
Document.HTMLProject.HTMLProjectItems.LoadFromFile() on a Word document
using Word 2003, the default save format of the file is changed to mht.
I have a COM add-in with the following basic workflow:
1. Extract an HTML representation of an open Word document using
document.HTMLProject.HTMLProjectItems.Text
2. Manipulate the HTML to make some desired changes to the document
3. Apply the changes to the document using
Document.HTMLProject.HTMLProjectItems.LoadFromFile()
Following this, when the user requests a Save or Save As on the document,
Word proposes MHT as the file type by default. I want that Word proposes DOC
by default. Without the calls to LoadFromFile(), Word does propose DOC. How
can I get the default save format for the document back to DOC?
Thanks,
Bret