J
Jon Robertson
When using the Word Document SaveAs method in Word 2007, and using
wdwdFormatDocument (or wdFormatDocument97, they are the same) but not
specifying a file name, Word saves the document in 97 format but with the
..DOCX extension.
When you later try to open this document in Word 2007, Word complains that
it experienced an error trying to open the file.
If a filename is not provided to SaveAs, it seems that the file extension
used should be based on the FileFormat specified.
Also, it seems that Word should be smart enough to recognize a native Word
file even if the extension is wrong. If the internal format is 97-2003, then
open it in Compatibility mode. If the internal format is 2007, open it in
2007 mode. I'm surprised that Word is relying on the document extension to
determine the format of the file.
--
Jon Robertson
Borland Certified Advanced Delphi 7 Developer
MedEvolve, Inc
http://www.medevolve.com
----------------
This post is a suggestion for Microsoft, and Microsoft responds to the
suggestions with the most votes. To vote for this suggestion, click the "I
Agree" button in the message pane. If you do not see the button, follow this
link to open the suggestion in the Microsoft Web-based Newsreader and then
click "I Agree" in the message pane.
http://www.microsoft.com/communitie...=microsoft.public.office.developer.automation
wdwdFormatDocument (or wdFormatDocument97, they are the same) but not
specifying a file name, Word saves the document in 97 format but with the
..DOCX extension.
When you later try to open this document in Word 2007, Word complains that
it experienced an error trying to open the file.
If a filename is not provided to SaveAs, it seems that the file extension
used should be based on the FileFormat specified.
Also, it seems that Word should be smart enough to recognize a native Word
file even if the extension is wrong. If the internal format is 97-2003, then
open it in Compatibility mode. If the internal format is 2007, open it in
2007 mode. I'm surprised that Word is relying on the document extension to
determine the format of the file.
--
Jon Robertson
Borland Certified Advanced Delphi 7 Developer
MedEvolve, Inc
http://www.medevolve.com
----------------
This post is a suggestion for Microsoft, and Microsoft responds to the
suggestions with the most votes. To vote for this suggestion, click the "I
Agree" button in the message pane. If you do not see the button, follow this
link to open the suggestion in the Microsoft Web-based Newsreader and then
click "I Agree" in the message pane.
http://www.microsoft.com/communitie...=microsoft.public.office.developer.automation