Generating a word document

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • yasodhai@gmail.com

    #1

    Generating a word document

    Hi,
    I developed a web application which contains a text box and a
    command button. Once if i enter some text and then if i click the
    command button, the contents in the textbox should be displayed in the
    header and the footer of the word document. But this is to be done
    without using the word object. Kindly let me know how to do this. Also
    provide me with some documents so that i can do this.


    Thanks and Regards,
    Yasodhai

  • Aidy

    #2
    Re: Generating a word document



    <yasodhai@gmail .comwrote in message
    news:1176210302 .156488.273220@ d57g2000hsg.goo glegroups.com.. .
    Hi,
    I developed a web application which contains a text box and a
    command button. Once if i enter some text and then if i click the
    command button, the contents in the textbox should be displayed in the
    header and the footer of the word document. But this is to be done
    without using the word object. Kindly let me know how to do this. Also
    provide me with some documents so that i can do this.
    >
    >
    Thanks and Regards,
    Yasodhai
    >

    Comment

    • Mark Rae

      #3
      Re: Generating a word document

      "Aidy" <aidy@noemail.x xxa.comwrote in message
      news:MfudnfgDEf _hD4bbRVnyhgA@b t.com...
      You beat me to it...:-)

      Looks like today is going to break the record for Office automation
      problems...!


      Comment

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

        #4
        Re: Generating a word document

        They got bit by the IWannaDoOfficeA utomationOnMyWe bServer bug...
        Doods, it really is Unsupported, not recommended, and if you take the time
        to RTFM, you will not even WANT to try it.

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




        "Mark Rae" wrote:
        "Aidy" <aidy@noemail.x xxa.comwrote in message
        news:MfudnfgDEf _hD4bbRVnyhgA@b t.com...
        >>
        You beat me to it...:-)
        >
        Looks like today is going to break the record for Office automation
        problems...!
        >
        >
        >

        Comment

        • Mark Rae

          #5
          Re: Generating a word document

          "Peter Bromberg [C# MVP]" <pbromberg@yaho o.yabbadabbadoo .comwrote in
          message news:D16ABC74-EC23-4DDE-B584-0F521AF8F1BA@mi crosoft.com...
          They got bit by the IWannaDoOfficeA utomationOnMyWe bServer bug...
          Guess so...
          Doods, it really is Unsupported, not recommended, and if you take the time
          to RTFM, you will not even WANT to try it.
          As I was responding to yet another of these poor folks earlier today, it
          suddenly occurred to me *why* people think that they can do this until, that
          is, it all stops working when they go into production...

          As has been mentioned ad nauseum in here, server-side Office automation is
          highly likely not to work.

          However, and here's the thing, most ASP.NET developers currently develop
          their apps with VS.NET 2005, IIS 5.1, SQL Server Developer Edition (maybe),
          Office 2003 and IE...

          .... ALL INSTALLED AND RUNNING LOCALLY ON THE SAME INSTANCE OF XP....

          And in that particular scenario only, Office automation works perfectly!!!

          Think about it - it would do, woudn't it!

          That, my friends, is where this misconception comes from.


          Comment

          • Steve C. Orr [MCSD, MVP, CSM, ASP Insider]

            #6
            Re: Generating a word document

            There are some good 3rd party products that would probably work for you.
            Here are a couple that should work:



            VSTO should also work:
            http://msdn2.microsoft.com/en-us/office/aa905533.aspx

            --
            I hope this helps,
            Steve C. Orr,
            MCSD, MVP, CSM, ASPInsider



            <yasodhai@gmail .comwrote in message
            news:1176210302 .156488.273220@ d57g2000hsg.goo glegroups.com.. .
            Hi,
            I developed a web application which contains a text box and a
            command button. Once if i enter some text and then if i click the
            command button, the contents in the textbox should be displayed in the
            header and the footer of the word document. But this is to be done
            without using the word object. Kindly let me know how to do this. Also
            provide me with some documents so that i can do this.
            >
            >
            Thanks and Regards,
            Yasodhai
            >

            Comment

            • Mark Rae

              #7
              Re: Generating a word document

              "Steve C. Orr [MCSD, MVP, CSM, ASP Insider]" <Steve@Orr.netw rote in
              message news:B4737A6A-7F81-4F81-B7C8-9CF3AEE2B26C@mi crosoft.com...
              Does that allow Visual Studio to manipulate Office documents without
              automation, then...?


              Comment

              • Steve C. Orr [MCSD, MVP, CSM, ASP Insider]

                #8
                Re: Generating a word document

                I believe so, yes.

                --
                I hope this helps,
                Steve C. Orr,
                MCSD, MVP, CSM, ASPInsider



                "Mark Rae" <mark@markNOSPA Mrae.netwrote in message
                news:uBs$jfAfHH A.5052@TK2MSFTN GP06.phx.gbl...
                "Steve C. Orr [MCSD, MVP, CSM, ASP Insider]" <Steve@Orr.netw rote in
                message news:B4737A6A-7F81-4F81-B7C8-9CF3AEE2B26C@mi crosoft.com...
                >>
                Does that allow Visual Studio to manipulate Office documents without
                automation, then...?
                >

                Comment

                • Mark Rae

                  #9
                  Re: Generating a word document

                  "Steve C. Orr [MCSD, MVP, CSM, ASP Insider]" <Steve@Orr.netw rote in
                  message news:EAFFAAAC-F7DD-40BC-9560-26378BC7E730@mi crosoft.com...
                  >I believe so, yes.
                  In which case, it could be a serious competitor to Aspose...


                  Comment

                  • Steve C. Orr [MCSD, MVP, CSM, ASP Insider]

                    #10
                    Re: Generating a word document

                    Yes, other than the price difference.

                    --
                    I hope this helps,
                    Steve C. Orr,
                    MCSD, MVP, CSM, ASPInsider



                    "Mark Rae" <mark@markNOSPA Mrae.netwrote in message
                    news:edKm3dGfHH A.1240@TK2MSFTN GP04.phx.gbl...
                    "Steve C. Orr [MCSD, MVP, CSM, ASP Insider]" <Steve@Orr.netw rote in
                    message news:EAFFAAAC-F7DD-40BC-9560-26378BC7E730@mi crosoft.com...
                    >
                    >>I believe so, yes.
                    >
                    In which case, it could be a serious competitor to Aspose...
                    >

                    Comment

                    • Mark Rae

                      #11
                      Re: Generating a word document

                      "Steve C. Orr [MCSD, MVP, CSM, ASP Insider]" <Steve@Orr.netw rote in
                      message news:30F6548B-88F9-444E-949B-6EDA6398B538@mi crosoft.com...
                      Yes, other than the price difference.
                      :-)


                      Comment

                      • Mark Rae

                        #12
                        Re: Generating a word document

                        "Steve C. Orr [MCSD, MVP, CSM, ASP Insider]" <Steve@Orr.netw rote in
                        message news:EAFFAAAC-F7DD-40BC-9560-26378BC7E730@mi crosoft.com...
                        >I believe so, yes.
                        Hmm - are you sure about this...?
                        http://msdn2.microsoft.com/en-us/office/aa718674.aspx

                        And all the code samples seem to refer to the Microsoft.Offic e.Interop
                        namespace...


                        Comment

                        • Steve C. Orr [MCSD, MVP, CSM, ASP Insider]

                          #13
                          Re: Generating a word document

                          I'm not sure which code samples you're talking about. The link you gave
                          doesn't really point to much.
                          I'm pretty sure it can use the XML file format to avoid interop.

                          --
                          I hope this helps,
                          Steve C. Orr,
                          MCSD, MVP, CSM, ASPInsider



                          "Mark Rae" <mark@markNOSPA Mrae.netwrote in message
                          news:Ona97BHfHH A.1244@TK2MSFTN GP04.phx.gbl...
                          "Steve C. Orr [MCSD, MVP, CSM, ASP Insider]" <Steve@Orr.netw rote in
                          message news:EAFFAAAC-F7DD-40BC-9560-26378BC7E730@mi crosoft.com...
                          >
                          >>I believe so, yes.
                          >
                          Hmm - are you sure about this...?
                          http://msdn2.microsoft.com/en-us/office/aa718674.aspx
                          >
                          And all the code samples seem to refer to the Microsoft.Offic e.Interop
                          namespace...
                          >

                          Comment

                          • Mark Rae

                            #14
                            Re: Generating a word document

                            "Steve C. Orr [MCSD, MVP, CSM, ASP Insider]" <Steve@Orr.netw rote in
                            message news:22B16FE6-BA6E-443E-A368-BF0A91951C25@mi crosoft.com...

                            http://www.microsoft.com/downloads/d...displaylang=en
                            If it requires Office, what does it actually require it for...?

                            http://msdn2.microsoft.com/en-us/lib...9k(VS.80).aspx
                            "You can programmaticall y access the features of Microsoft Office
                            applications by writing code that targets an application's object model, a
                            process known as Automation."

                            Aspose doesn't require Office - that's the whole point... :-)


                            Comment

                            Working...