I'm trying to save a Word 97-2003 document (.doc) using Delphi 6 and Word 2010.
Before Word 2010 everything worked fine with
WordDoc.SaveAs(FileName := FileName, FileFormat := wdFormatDocument);
where FileName := 'c:\doc.doc'
Now, Word 2010 presents an Save Dialog and I'm not sure why. I've tried the new SaveAs2 method
WordDoc.SaveAs2(FileName := FileName, FileFormat := wdFormatDocument, CompatibilityMode:= wdWord2003);
but with the same result.
Oddly,
WordDoc.SaveAs2(FileName := FileName, FileFormat := wdFormatDocumentDefault, CompatibilityMode:= wdWord2003);
works fine, without the Save As dialog, but the saved file has Word 2010 format and .doc extension, which will confuse old Word versions.
So, any ideas how I can save a file in old document Word format using Word 2010 without Save As dialog popping up?