Non-standard extensions; Save to pre-2007 format

C

ckapilla

I am working on a Word Add-in that uses different extensions than the ususal
..doc/docx. I can save a document for earlier versions of Word by providing a
..doc file extension. The question is, is there a way to do that using a
different extension? (In my case they are .cbd/.cbdx).

Document.SaveAs does not seem to have a parameter that affects this
(wdSaveFormat apparently does not address this). Is the format totally
controlled by .doc/.docx extensions with no other way to specify what is
wanted?

I also need to go the reverse direction using the Office Compatibility Pack
from Word 2003.

thanks in advance for any insights you can give here.
 
C

ckapilla

ok, I found the resolution, there is a new wdSaveFormat value in Word 2007
wdFormatXMLDocument. This enum value is not available in Word 2003/3 but
you can just provide the numeric value, (100).

When going from 2007 to 2002/3 format you just use the old wdFormatDocument
value.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top