creating excel spreadsheets server side dynamically

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

    creating excel spreadsheets server side dynamically

    Hi there,

    I am trying to find out what the best way of creating an excel
    spreadsheet is, this will need to be done dynamically by an aspx website
    on the server side.

    The main way would be to use the Excel com object that is available when
    you have excel installed, however since this is done server side I need
    to be sure that it won't generate any dialog box error messages. There
    are also concerns about threading.

    Most of the examples I can find on the web seem to be quite old, has
    anyone recently done this who could share their thoughts ?.

    Any help appreciated.

    Regards.
  • Mark Rae

    #2
    Re: creating excel spreadsheets server side dynamically

    "Andy Burchill" <andyburchill@c lara.co..ukwrot e in message
    news:1181036102 .54643.0@iris.u k.clara.net...
    I am trying to find out what the best way of creating an excel spreadsheet
    is, this will need to be done dynamically by an aspx website on the server
    side.
    >
    The main way would be to use the Excel com object that is available when
    you have excel installed
    You can't do server-side automation of Office - Microsoft don't support it
    because it doesn't work:

    There are also concerns about threading.
    Threading will be the least of your worries, believe me! Don't even
    contemplate this...
    Most of the examples I can find on the web seem to be quite old, has
    anyone recently done this who could share their thoughts ?.
    There are three ways to achieve what you need:

    1) Use HTML
    Create an HTML document and then give it a .xls extension. This is extremely
    easy, and is free - however, you won't be able to have multiple worksheets.

    2) Use XML



    This is extremely powerful, and is free, but is most definitely not for the
    faint-hearted...

    3) Use Aspose


    This is extremely powerful and extremely easy to use, but it's not free.


    --


    Comment

    • -pb-

      #3
      Re: creating excel spreadsheets server side dynamically

      On 5 Jun, 10:34, Andy Burchill <andyburch...@c lara.co..ukwrot e:
      Hi there,
      >
      I am trying to find out what the best way of creating an excel
      spreadsheet is, this will need to be done dynamically by an aspx website
      on the server side.
      >
      The main way would be to use the Excel com object that is available when
      you have excel installed, however since this is done server side I need
      to be sure that it won't generate any dialog box error messages. There
      are also concerns about threading.
      >
      Most of the examples I can find on the web seem to be quite old, has
      anyone recently done this who could share their thoughts ?.
      >
      Any help appreciated.
      >
      Regards.
      Export the data in csv format. Later on csv file can be open using
      Excel or notepad and still its free.

      Comment

      • eps

        #4
        Re: creating excel spreadsheets server side dynamically

        -pb- wrote:
        Export the data in csv format. Later on csv file can be open using
        Excel or notepad and still its free.
        >
        That is certainly one option, however I was interested in doing some
        formatting in the excel file. Its supposed to be a kind of order form
        so making it look good would be beneficial. There are many different
        types of product though so it needs to be able to be generated dynamically.

        Regards.

        Comment

        • Mark Rae

          #5
          Re: creating excel spreadsheets server side dynamically

          "eps" <eps@mailinator .comwrote in message
          news:%23j7GPT2p HHA.4396@TK2MSF TNGP02.phx.gbl. ..
          That is certainly one option, however I was interested in doing some
          formatting in the excel file. Its supposed to be a kind of order form so
          making it look good would be beneficial. There are many different types
          of product though so it needs to be able to be generated dynamically.
          Did you see my reply to Andy Burchill...?


          --


          Comment

          • Mr. Arnold

            #6
            Re: creating excel spreadsheets server side dynamically


            "Andy Burchill" <andyburchill@c lara.co..ukwrot e in message
            news:1181036102 .54643.0@iris.u k.clara.net...
            Hi there,
            >
            I am trying to find out what the best way of creating an excel spreadsheet
            is, this will need to be done dynamically by an aspx website on the server
            side.
            >
            The main way would be to use the Excel com object that is available when
            you have excel installed, however since this is done server side I need to
            be sure that it won't generate any dialog box error messages. There are
            also concerns about threading.
            >
            Most of the examples I can find on the web seem to be quite old, has
            anyone recently done this who could share their thoughts ?.
            >
            Any help appreciated.
            What about using OWC? It is recent. It's ASP.NET using VB.NET with the
            example, but I don't see why you can't do it in C#. I have taken VB.NET
            examples and done them in C#.

            eSports News, Results, upcoming Matches & live Matches. Learn tricks and guides in the esports space. ✅ We cover CS:GO, Dota 2, LOL, Overwatch & PUBG. 


            Comment

            • PS

              #7
              Re: creating excel spreadsheets server side dynamically


              "Andy Burchill" <andyburchill@c lara.co..ukwrot e in message
              news:1181036102 .54643.0@iris.u k.clara.net...
              Hi there,
              >
              I am trying to find out what the best way of creating an excel spreadsheet
              is, this will need to be done dynamically by an aspx website on the server
              side.
              >
              The main way would be to use the Excel com object that is available when
              you have excel installed, however since this is done server side I need to
              be sure that it won't generate any dialog box error messages. There are
              also concerns about threading.
              >
              Most of the examples I can find on the web seem to be quite old, has
              anyone recently done this who could share their thoughts ?.
              Also check out www.tmssoftware.com for a product called FlexCel.

              PS


              Comment

              • =?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=

                #8
                RE: creating excel spreadsheets server side dynamically

                As you hopefully have gathered by now, you do NOT want to try to use Excel on
                the Server as there are all kinds of problems, and it was never designed for
                this.

                You could take a look at this:


                Peter
                --
                Site: http://www.eggheadcafe.com
                UnBlog: http://petesbloggerama.blogspot.com
                Short urls & more: http://ittyurl.net




                "Andy Burchill" wrote:
                Hi there,
                >
                I am trying to find out what the best way of creating an excel
                spreadsheet is, this will need to be done dynamically by an aspx website
                on the server side.
                >
                The main way would be to use the Excel com object that is available when
                you have excel installed, however since this is done server side I need
                to be sure that it won't generate any dialog box error messages. There
                are also concerns about threading.
                >
                Most of the examples I can find on the web seem to be quite old, has
                anyone recently done this who could share their thoughts ?.
                >
                Any help appreciated.
                >
                Regards.
                >

                Comment

                • Mark Rae

                  #9
                  Re: creating excel spreadsheets server side dynamically

                  "Peter Bromberg [C# MVP]" <pbromberg@yaho o.yabbadabbadoo .comwrote in
                  message news:7E438E03-88C3-44FC-87AF-EF6BA9D42AD8@mi crosoft.com...
                  Wow! That looks superb - have you tried it yourself...?


                  --


                  Comment

                  • Andy Burchill

                    #10
                    Re: creating excel spreadsheets server side dynamically

                    Mark Rae wrote:
                    "Peter Bromberg [C# MVP]" <pbromberg@yaho o.yabbadabbadoo .comwrote in
                    message news:7E438E03-88C3-44FC-87AF-EF6BA9D42AD8@mi crosoft.com...
                    >>
                    Wow! That looks superb - have you tried it yourself...?
                    I had already come across this whilst searching on the web, I think this
                    is almost exactly what I want as I have already prototyped my app and it
                    works well.

                    The major drawback that I can see is that you need Excel 2003 or later
                    to read an XML spreadsheet that it produces. (An the free Excel Viewer
                    app does not seem to want to display them at all).

                    Regards.

                    Comment

                    • Andy Burchill

                      #11
                      Re: creating excel spreadsheets server side dynamically

                      Mark Rae wrote:
                      "eps" <eps@mailinator .comwrote in message
                      news:%23j7GPT2p HHA.4396@TK2MSF TNGP02.phx.gbl. ..
                      >
                      >That is certainly one option, however I was interested in doing some
                      >formatting in the excel file. Its supposed to be a kind of order form
                      >so making it look good would be beneficial. There are many different
                      >types of product though so it needs to be able to be generated
                      >dynamically.
                      >
                      Did you see my reply to Andy Burchill...?
                      Yes I did, thanks for replying. I take your point about Microsoft not
                      supporting creating them server side.

                      Regards.

                      Comment

                      • Mark Rae

                        #12
                        Re: creating excel spreadsheets server side dynamically

                        "Andy Burchill" <andyburchill@c lara.co..ukwrot e in message
                        news:1181051251 .73389.0@iris.u k.clara.net...
                        I had already come across this whilst searching on the web, I think this
                        is almost exactly what I want as I have already prototyped my app and it
                        works well.
                        >
                        The major drawback that I can see is that you need Excel 2003 or later to
                        read an XML spreadsheet that it produces. (An the free Excel Viewer app
                        does not seem to want to display them at all).
                        Hmm...

                        Obviously, Aspose creates "native" Excel files, but it isn't free...


                        --


                        Comment

                        Working...