CodeSnip: Generating Word Reports in WinForms Using Microsoft Office Library
page 1 of 6
Published: 31 Jan 2007
In this article I will demonstrate how to use Visual Basic 2005 and the Microsoft Office object library to generate custom Word reports from a Win forms application.
by Vishal Patil
Average Rating: This article has not yet been rated.
Views (Total / Last 10 Days): 30757/ 63


Organizations often create applications that serve both internal and external customers. For example, an organization might need to regularly generate customized Word documents for both users and customers. Fortunately, you can use COM objects with Microsoft Office applications. Office lets you drive most of its features from a programming language such as Visual Basic 2005. This compatibility lets you automate almost any task.

In the below example I show you how to use Visual Basic 2005 and Word to create custom reports in Win forms.

View Entire Article

User Comments

Title: asdfsdf   
Name: dsfdasf
Date: 2012-05-03 8:28:58 AM
Title: How to save this file   
Name: Nick
Date: 2010-06-14 11:25:07 PM
Hello Sir,
Can you please guide me for How to save this file instead of opening directly?
Title: Thanking you   
Name: madhu kumar
Date: 2009-03-25 8:37:22 AM
Hi Vishal
Your article is really helpful. I am just starting with implementation of Microsoft.Office.Interop.Word namespace samples. Thank you for this.

I wish you provide more samples.

Madhu Kumar.B
Title: M   
Name: Naveed
Date: 2007-09-19 10:16:19 AM
'This will add the Page break to the word document
Title: KoOl Code   
Name: Naveed
Date: 2007-09-18 4:09:00 AM
kOol Article.. I was looking for a good a code and i find yours.
Title: Output to WORDS in ASP.NET   
Name: Lennie Kuah
Date: 2007-08-20 7:14:10 PM
I am using DataReader and looping thru it. On each loop I am trying to output the data to WORDS document. When there is a change in ProductID, I want to insert a page break. How do I do that, please help.

Title: word report in visual studio 2005   
Name: kirti
Date: 2007-05-24 6:55:08 AM
how can generate word report in visual studio 2005
Title: Image   
Name: Praveen
Date: 2007-05-10 12:58:21 PM
How can I add an image from a database field to this file?

Product Spotlight
Product Spotlight 

Community Advice: ASP | SQL | XML | Regular Expressions | Windows

©Copyright 1998-2024  |  Page Processed at 2024-07-25 12:19:19 PM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search