Hi guys :wave:
I have Microsoft Word 2007 in my development machine. I want to save the document in Word 2003 format. I have tried using the SaveAs() method with second parameter as 0. But that didn't worked.
Any ideas ? :)
Thanks in advance :wave:
Printable View
Hi guys :wave:
I have Microsoft Word 2007 in my development machine. I want to save the document in Word 2003 format. I have tried using the SaveAs() method with second parameter as 0. But that didn't worked.
Any ideas ? :)
Thanks in advance :wave:
I have Office 2010.
I used the MacroRecorder for SavingAs in--Word'97-2003 Format and got:
Code:ActiveDocument.SaveAs2 FileName:="Dok1.doc", CompatibilityMode:=0
Thanks opus. I was having 2007. For the SaveAs() method, there's only FileFormat parameter. No CompatibilityMode parameter is there: http://msdn.microsoft.com/en-us/libr...ffice.12).aspx
I tried setting that parameter's value to 0. But that didn't make it open in Word2003. My document have a picture and some text.
Anyway I will uninstall 2007 from my system and try installing 2003.
:wave:
Have you looked at http://msdn.microsoft.com/en-us/libr...ffice.12).aspx yet?
Example given there is:
Also example code for listing installed converters.Code:ActiveDocument.SaveAs _
FileFormat:=FileConverters("WrdPrfctDat").SaveFormat
Thanks :wave:
I have already tried outputting the FileConverters. But it didn't specified any format names like Word2003 or Word2007. That's why I was confused at choosing the right one.
I have googled about WordPerfect. But that's a different file format. Isn't it ? :confused:
My intention is to create MS Office 20003 (.doc) documents.
:wave:
Looks like Word 97 through 2003 format was the same, though you already tried 0 (Word 97). Sorry, I'm out of ideas.
It's ok. I am thinking about using late binding: http://www.vbforums.com/showthread.php?t=666040 :wave:
FileFormat number as 0 seems working when tested on another system. I think, for Word2007, it is 12. I tried recording a macro to find out what is happening. For Word2007, it uses wdFormatXMLDocument
And for Word2003, it uses wdFormatDocument which has the value as 0.
Values are in here: http://msdn.microsoft.com/en-us/libr...ffice.12).aspx
:wave: