Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

File Convertor

Status
Not open for further replies.

nagasekhar

Programmer
Jan 1, 2003
9
IN
Hi,
I am working on a file conversion tool. For converting Word 97 to word 2000. I am using _Application and _Document.
Now, I want to convert a Word 97 file in to Word XP format. So Is Office XP providing _Application and _Document interfaces. Is there any other way to perform this conversion... Similarly, I want to do this for rest of the office products too.

Thank you.

 
I would assume the new microsoft office products would support files created with previous versions of their software. I know when I tried to open an old access database with the new access it asked me if I wanted to convert it. Can you no longer view legacy documents? Or can you but you just want to write the code? I would think that if you provide the automation for opening and saving the files they will open, automatically be converted through backwards compatability, and then be saved in the current format.

I know the post bounces off on tangents but I "think" I stated a possible solution :p

<Matt
 
Dear Zyrenthian ,
Thank you very much for the response. As you said, Office XP provides backward compatibility. If I want to convert a 97 file in to an XP format, I can do so by opening it in XP and saving it as XP file. This is feasible when the number of files on my system are in some multiples of 10. But if there are some hundreds and thousands of files..!!!?
And you might be knowing that a file in XP format consumes much lesser space when compared to a file saved in 97 format. and there are many other reasons why I want to have a tool to convert this. I know this can be done through
OLE automation. Is there any other way to do this programmatically. and when I tried to use CreateDispatch(), it is failing. Why does this happen?
Thank you.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top