Need to insert table format using openxmlformats spreadsheetml? RRS feed

  • Question

  • I want to populate a data coming from DB in to a excel file using

    Every thing is going smooth.

    But when I add table in to the sheet using below package:

    select new XElement(dn + "Override",
                       new XAttribute("PartName", "/xl/tables/table1.xml"),
                       new XAttribute("ContentType", "application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml")

    then it show me the below error when i open excel  in open xml sdk:

    Can not open the file: specific part does not exist in package
    Sunday, December 23, 2018 11:50 AM

All replies

  • Hi,

    This is the forum to discuss questions and feedback for Microsoft Excel features, I'll move your question to the MSDN forum for Excel

    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding.



    Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact

    Click here to learn more. Visit the dedicated forum to share, explore and talk to experts about Microsoft Teams.

    Monday, December 24, 2018 3:28 AM