Click here to Skip to main content
15,868,141 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i have already attach Microsoft.Office.Interop.Excel assembly in my project but i could not attach .xlsx file to my project what can i do for this...........
Posted
Comments
DamithSL 23-Jun-14 23:46pm    
any exceptions?
Member 10891595 23-Jun-14 23:50pm    
ComException was unhandeled


Excel cannot open the file 'cleaning_data.xlsx' because the file format or file extension is not valid. Verify that the file has not been corrupted and that the file extension matches the format of the file.

1 solution

To open an xlsx file, you need access to the Microsoft Excel 12.0 Object Library component.
 
Share this answer
 

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