Generate Microsoft Office Document?

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

    #1

    Generate Microsoft Office Document?

    Hi All,

    I need my application to be able to generate a Microsoft Word document
    (Using Visual Basic 2005). So a user clicks a button (create document) and
    the Word document is created and populated with variable data.

    Is there any way to do this?

    Thanks.


  • ImageAnalyst

    #2
    Re: Generate Microsoft Office Document?

    Look here:
    http://msdn.microsoft.com/office/download/codesample/


    Ryan wrote:[color=blue]
    > Hi All,
    >
    > I need my application to be able to generate a Microsoft Word document
    > (Using Visual Basic 2005). So a user clicks a button (create document) and
    > the Word document is created and populated with variable data.
    >
    > Is there any way to do this?
    >
    > Thanks.[/color]

    Comment

    • Herfried K. Wagner [MVP]

      #3
      Re: Generate Microsoft Office Document?

      "Ryan" <Tyveil@newsgro ups.nospam> schrieb:[color=blue]
      > I need my application to be able to generate a Microsoft Word document
      > (Using Visual Basic 2005). So a user clicks a button (create document)
      > and the Word document is created and populated with variable data.[/color]

      How to automate Word from Visual Basic .NET to create a new document
      <URL:http://support.microso ft.com/?scid=kb;EN-US;316383>

      --
      M S Herfried K. Wagner
      M V P <URL:http://dotnet.mvps.org/>
      V B <URL:http://classicvb.org/petition/>

      Comment

      • tommaso.gastaldi@uniroma1.it

        #4
        Re: Generate Microsoft Office Document?

        I would rather look for XML
        Brian Jones (very good site) has examples for both Excel and Word.

        http://blogs.msdn.com/brian_jones/ar...27/433152.aspx

        Word's xml is harder that Excel's but the effort is really worth, Ole
        Automation takes ages to do anything...

        -tom

        Ryan ha scritto:
        [color=blue]
        > Hi All,
        >
        > I need my application to be able to generate a Microsoft Word document
        > (Using Visual Basic 2005). So a user clicks a button (create document) and
        > the Word document is created and populated with variable data.
        >
        > Is there any way to do this?
        >
        > Thanks.[/color]

        Comment

        Working...