1
Answer

I am trying to introduce a table format in the excel file?

Photo of Mayank

Mayank

6y
580
1
I am trying to create an excel file using open xml formats. When I try to insert a table in to sheet 1.It is showing me below error:
 
Can not open the file: specific part does not exist in the package.
 
I added this package in it
 
select new XElement(dn + "Override",
new XAttribute("PartName", "/xl/tables/table1.xml"),
new XAttribute("ContentType", "application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml")
)
 

Answers (1)

0
Photo of Mangesh Kanche
NA 247 18.9k 6y
Hello Mayank,
 
Please check following links once
 
https://github.com/OfficeDev/Open-XML-SDK/issues/247
 
and 
 
https://stackoverflow.com/questions/11212374/specified-part-does-not-exist-in-the-package
 
Hope the first link will help you.
 
Happy coding