Supported Html elements by Excel

后端 未结 1 1260
灰色年华
灰色年华 2021-01-02 09:51

Recently I found out that if you save some html markup as an xls it will open up in Excel just fine with all your styling. Example

myfile.xls



        
相关标签:
1条回答
  • 2021-01-02 10:33

    For some in-depth information regarding the HTML approach to creating Excel files with sample code see http://www.c-sharpcorner.com/UploadFile/kaushikborah28/79Nick08302007171404PM/79Nick.aspx

    Also checkout the official documentation at http://msdn.microsoft.com/en-us/library/Aa155477%28office.10%29.aspx

    Other options to create Excel files:

    MS provides the OpenXML SDK V 2.0 - see http://msdn.microsoft.com/en-us/library/bb448854%28office.14%29.aspx

    This can read+write MS Office files (including Excel).

    Another option see http://www.codeproject.com/KB/office/OpenXML.aspx

    IF you need more like rendering, formulas etc. then there are different free and commercial libraries like ClosedXML, EPPlus, Aspose.Cells, SpreadsheetGear, LibXL and Flexcel etc.

    0 讨论(0)
提交回复
热议问题