Click here to Skip to main content
15,897,273 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I am tring to read an Package object embedded in an MS word 2007 docx file using c#. I want to read the content(Can be an ppt,excel or an image) inside the package object. Currently I have just one file inside the package object.

Thanks in advance for any help.
Posted

1 solution

A docx file is just XML in a zip, so, knowing that, you should be able to work out the format by renaming the file to .zip and exploring it. J# had the ability to unzip, there's articles with dlls you can use in C# to unzip a file.
 
Share this answer
 
Comments
Akash Agarwal 26-Aug-10 6:33am    
You are right but the problem is that if I add any object(.ppt,image)inside the package object than I will get an bin file after unzipping the docx file. Now I do not know how to read that bin file to find out that what object are inside that binary file. please let me know if you have any question regarding my question or you are not clear about anything.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900