|
-
Nov 26th, 2011, 01:44 PM
#1
[RESOLVED] How to save in Word2003 format ?
Hi guys 
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
If my post was helpful to you, then express your gratitude using Rate this Post. 
And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet
Social Group: VBForums - Developers from India
Skills: PHP, MySQL, jQuery, VB.Net, Photoshop, CodeIgniter, Bootstrap,...
-
Nov 26th, 2011, 02:00 PM
#2
Re: How to save in Word2003 format ?
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
You're welcome to rate this post!
If your problem is solved, please use the Mark thread as resolved button
Wait, I'm too old to hurry!
-
Nov 26th, 2011, 09:23 PM
#3
Re: How to save in Word2003 format ?
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.
If my post was helpful to you, then express your gratitude using Rate this Post. 
And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet
Social Group: VBForums - Developers from India
Skills: PHP, MySQL, jQuery, VB.Net, Photoshop, CodeIgniter, Bootstrap,...
-
Nov 26th, 2011, 10:40 PM
#4
Re: How to save in Word2003 format ?
Have you looked at http://msdn.microsoft.com/en-us/libr...ffice.12).aspx yet?
Example given there is:
Code:
ActiveDocument.SaveAs _
FileFormat:=FileConverters("WrdPrfctDat").SaveFormat
Also example code for listing installed converters.
-
Nov 26th, 2011, 11:51 PM
#5
Re: How to save in Word2003 format ?
Thanks 
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 ? 
My intention is to create MS Office 20003 (.doc) documents.
If my post was helpful to you, then express your gratitude using Rate this Post. 
And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet
Social Group: VBForums - Developers from India
Skills: PHP, MySQL, jQuery, VB.Net, Photoshop, CodeIgniter, Bootstrap,...
-
Nov 27th, 2011, 12:01 AM
#6
Re: How to save in Word2003 format ?
Looks like Word 97 through 2003 format was the same, though you already tried 0 (Word 97). Sorry, I'm out of ideas.
-
Nov 27th, 2011, 12:03 AM
#7
Re: How to save in Word2003 format ?
It's ok. I am thinking about using late binding: http://www.vbforums.com/showthread.php?t=666040
If my post was helpful to you, then express your gratitude using Rate this Post. 
And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet
Social Group: VBForums - Developers from India
Skills: PHP, MySQL, jQuery, VB.Net, Photoshop, CodeIgniter, Bootstrap,...
-
Nov 27th, 2011, 03:09 AM
#8
Re: How to save in Word2003 format ?
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
If my post was helpful to you, then express your gratitude using Rate this Post. 
And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet
Social Group: VBForums - Developers from India
Skills: PHP, MySQL, jQuery, VB.Net, Photoshop, CodeIgniter, Bootstrap,...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|