Home All Groups Group Topic Archive Search About

Generate Microsoft Office Document?

Author
5 Jun 2006 6:35 PM
Ryan
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.

Author
5 Jun 2006 7:22 PM
Herfried K. Wagner [MVP]
"Ryan" <Tyveil@newsgroups.nospam> schrieb:
> 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.

How to automate Word from Visual Basic .NET to create a new document
<URL:http://support.microsoft.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/>
Author
5 Jun 2006 7:22 PM
ImageAnalyst
Look here:
http://msdn.microsoft.com/office/download/codesample/


Ryan wrote:
Show quoteHide quote
> 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.
Author
5 Jun 2006 8:54 PM
tommaso.gastaldi
I would rather look for XML
Brian Jones (very good site) has examples for both Excel and Word.

http://blogs.msdn.com/brian_jones/archive/2005/06/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:

Show quoteHide quote
> 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.