Mayank

Mayank

  • NA
  • 474
  • 24.4k

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

Dec 23 2018 5:15 AM
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)