Export to Excel > 65000 Rows

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • hangar18

    #1

    Export to Excel > 65000 Rows

    Hi,

    We are exporting data from a grid view to excel using the standard
    Response.Conten t type etc...

    But we would like to create new worksheets in case there are more than
    65000 rows.

    I know that in my webserver, MS Office is not installed.

    I am looking at the option of using Office Web Components.

    My question is:-

    Is there any other way which this can be acheived?

    Thanks

    - Soni
  • Mark Rae [MVP]

    #2
    Re: Export to Excel > 65000 Rows

    "hangar18" <soni.somarajan @wipro.comwrote in message
    news:840a2151-7cd9-40d4-a60e-3d49dc677652@b3 1g2000prf.googl egroups.com...
    I know that in my webserver, MS Office is not installed.
    That's a very good thing, as server-side automation of Office isn't
    supported at all because it's so flaky:


    I am looking at the option of using Office Web Components.
    OWC is/was a great product. Unfortunately it is now being actively
    discontinued, and no longer ships with Office 2007. The latest version,
    however, will continue to be supported for a few more years:
    http://blogs.msdn.com/excel/archive/...17/668544.aspx
    I've never used OWC, so can't confirm whether the Excel component supports
    more than 65,536 rows...
    Is there any other way which this can be acheived?




    --
    Mark Rae
    ASP.NET MVP


    Comment

    • Cowboy \(Gregory A. Beamer - MVP\)

      #3
      Re: Export to Excel &gt; 65000 Rows

      The row limit is still in effect. You can certainly split the report over
      two or more workbooks, but the amount on a single workbook is the same.

      How to do it? I would look at third party controls personally. Software
      Artisans (www.softartisans.com) has a component callled OfficeWriter for
      Excel that is nice and rather fast. I have not played with it in recent
      years, but it is where I would personally look if I were doing this now.

      There are some UI Grids that include export to excel. Some that come to mind
      are Syncfusion's Essential Grid and Telerik's RAD Grid. I would imagine
      Infragistics, Component One, Component Art and Dev Express all have the same
      feature. You would have to ask the company(s) how they handle more than
      65,000 rows or download trial versions and play.

      --
      Gregory A. Beamer
      MVP, MCP: +I, SE, SD, DBA

      Subscribe to my blog


      or just read it:


      *************** *************** **************
      | Think outside the box! |
      *************** *************** **************
      "hangar18" <soni.somarajan @wipro.comwrote in message
      news:840a2151-7cd9-40d4-a60e-3d49dc677652@b3 1g2000prf.googl egroups.com...
      Hi,
      >
      We are exporting data from a grid view to excel using the standard
      Response.Conten t type etc...
      >
      But we would like to create new worksheets in case there are more than
      65000 rows.
      >
      I know that in my webserver, MS Office is not installed.
      >
      I am looking at the option of using Office Web Components.
      >
      My question is:-
      >
      Is there any other way which this can be acheived?
      >
      Thanks
      >
      - Soni

      Comment

      • ZSvedic

        #4
        Re: Export to Excel &gt; 65000 Rows

        On Oct 24, 7:21 am, hangar18 <soni.somara... @wipro.comwrote :
        Hi,
        >
        We are exporting data from a grid view to excel using the standard
        Response.Conten t type etc...
        >
        But we would like to create new worksheets in case there are more than
        65000 rows.
        >
        I know that in my webserver, MS Office is not installed.
        >
        I am looking  at the option of using Office Web Components.
        >
        My question is:-
        >
        Is there any other way which this can be acheived?
        >
        Thanks
        >
        - Soni
        Hi,

        My recommendation is to use XLSX file format, OpenXML is
        largely replacing old XLS and has support for 16 million rows.
        You have my article with simple XLSX export code here:


        You can read XLSX files with Excel 2003 and older
        using Microsoft Office Compatibility Pack:
        http://www.microsoft.com/downloads/d...displaylang=en

        If you need more advanced stuff, we have GemBox.Spreadsh eet
        component which supports borders, colors, print settings etc.:


        Hope I helped,

        --Zeljko

        Comment

        • rote

          #5
          Re: Export to Excel &gt; 65000 Rows

          Have you taught of using SSIS(Sql server integrated Services)
          That could help alot.
          Patrick
          "ZSvedic" <ZSvedic@gmail. comwrote in message
          news:22cc8cc9-ae02-4009-8990-7ad1221c1e85@y7 1g2000hsa.googl egroups.com...
          On Oct 24, 7:21 am, hangar18 <soni.somara... @wipro.comwrote :
          Hi,
          >
          We are exporting data from a grid view to excel using the standard
          Response.Conten t type etc...
          >
          But we would like to create new worksheets in case there are more than
          65000 rows.
          >
          I know that in my webserver, MS Office is not installed.
          >
          I am looking at the option of using Office Web Components.
          >
          My question is:-
          >
          Is there any other way which this can be acheived?
          >
          Thanks
          >
          - Soni
          Hi,

          My recommendation is to use XLSX file format, OpenXML is
          largely replacing old XLS and has support for 16 million rows.
          You have my article with simple XLSX export code here:


          You can read XLSX files with Excel 2003 and older
          using Microsoft Office Compatibility Pack:
          http://www.microsoft.com/downloads/d...displaylang=en

          If you need more advanced stuff, we have GemBox.Spreadsh eet
          component which supports borders, colors, print settings etc.:


          Hope I helped,

          --Zeljko


          Comment

          Working...