Click here to Skip to main content
15,885,216 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Hi,

I have developed a Powerpoint Addin. when i want to add file in the presentation pptx file, I get an exception at
C#
Package package = Package.Open(packagePath, FileMode.Create)
System.IO.IOException : The process can not access the file **** because it is being used by another process.Any one can help me how to solve this ?

Thank you so much.

Best regards.
Posted
Updated 30-May-14 1:34am
v2
Comments
Abhishek Pant 30-May-14 7:34am    
try to flush and close the file opened content after every open
http://stackoverflow.com/questions/20742306/the-process-cannot-access-the-file-because-it-is-being-used-by-another-process
khalil86 30-May-14 7:38am    
So how can I add content to opened presentation using Package and CreatePart ??

1 solution

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


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