Results 1 to 8 of 8

Thread: [RESOLVED] How to save in Word2003 format ?

  1. #1

    Thread Starter
    Freelancer akhileshbc's Avatar
    Join Date
    Jun 2008
    Location
    Trivandrum, Kerala, India
    Posts
    7,652

    Resolved [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,...

  2. #2
    I don't do your homework! opus's Avatar
    Join Date
    Jun 2000
    Location
    Good Old Europe
    Posts
    3,863

    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!

  3. #3

    Thread Starter
    Freelancer akhileshbc's Avatar
    Join Date
    Jun 2008
    Location
    Trivandrum, Kerala, India
    Posts
    7,652

    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,...

  4. #4
    PowerPoster dilettante's Avatar
    Join Date
    Feb 2006
    Posts
    24,487

    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.

  5. #5

    Thread Starter
    Freelancer akhileshbc's Avatar
    Join Date
    Jun 2008
    Location
    Trivandrum, Kerala, India
    Posts
    7,652

    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,...

  6. #6
    PowerPoster dilettante's Avatar
    Join Date
    Feb 2006
    Posts
    24,487

    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.

  7. #7

    Thread Starter
    Freelancer akhileshbc's Avatar
    Join Date
    Jun 2008
    Location
    Trivandrum, Kerala, India
    Posts
    7,652

    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,...

  8. #8

    Thread Starter
    Freelancer akhileshbc's Avatar
    Join Date
    Jun 2008
    Location
    Trivandrum, Kerala, India
    Posts
    7,652

    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
  •  



Click Here to Expand Forum to Full Width