Exporting data to Excel in multiple sheets

Last post 11-03-2009 6:32 AM by BarbaMariolino. 2 replies.

Sort Posts:

  • Exporting data to Excel in multiple sheets

    11-26-2008, 9:21 AM
    • Member
      34 point Member
    • ProgrammingFreak
    • Member since 06-11-2008, 7:23 PM
    • Jersey City, NJ
    • Posts 33

    Hi,

    I am creating a report on Asp.net 3.5/C#. This report shoule be in excel format with following considerations

    • Excel is not installed on web server, so can not use COM object of excel.
    • A report will consist of one file having multiple sheets, so can not generate HTML's table and output as excel (as normally we do).
    • I think best way is to create excel report in XML. But really unable to find what should be header of file and how to decorate the text ?

    Suggestions/Advices/Links are needed.

     Thank you all in anticipation.,

    Waiting .......

    *************************************
    http://FreakProgrammer.blogspot.com
    *************************************
  • Re: Exporting data to Excel in multiple sheets

    12-02-2008, 12:43 AM
    Answer

    Hi,

     

    As you mentioned that you want to convert your EXCEL file to XML format, as far as I know, we cannot use general API to achieve that programmatically. But I’ve found some tools for you which relates to XML operations.

     

    Excel XML Toolbox for Microsoft Office Excel (For 2003 only)

    http://www.microsoft.com/downloads/details.aspx?familyid=e315c516-2c2c-4870-a189-d47a5d7ffeb3&displaylang=en

     

    Besides, have you thought about using CSV format to stored the data instead?

     

    Thanks.

     

    Michael Jin.
    Microsoft Online Community Support

    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
  • Re: Exporting data to Excel in multiple sheets

    11-03-2009, 6:32 AM
    • Member
      278 point Member
    • BarbaMariolino
    • Member since 03-18-2008, 6:43 AM
    • Croatia
    • Posts 94

    Or another solution is to use some 3rd party library for writing Excel files.

    I recommend you take a look at GemBox.Spreadsheet .NET Excel library and these two features:

    Free version has some restrictions but you can use it freely in commercial apps.

Page 1 of 1 (3 items)