C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




Create New WordDocument using VB.Net.


Posted Date: 22 Jan 2008    Resource Type: Code Snippets    Category: Tools

Posted By: karthik       Member Level: Diamond
Rating:     Points: 7



This code is used to create new word document in windows application.
First You will add microsoft.office.core reference in your project
then You will imports--> imports microsoft.office.introp



add reference-->microsoft.office.core

imports microsoft.office.introp

Private Sub loadword()
Dim wd As New Word.Application
Dim docu As Word.Document
Dim newTemplate As Object = True
Dim docType As Object = 0
Dim isVisible As Object = True
Dim filename As String = "C:/normal.doc"
docu = wd.Documents.Add(filename, newTemplate, docType, isVisible)
wd.Visible = True
wd.Activate()
End Sub





Responses


No responses found. Be the first to respond and make money from revenue sharing program.

Feedbacks      
Popular Tags   What are tags ?   Search Tags  
(No tags found.)

Post Feedback


This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must Sign In to post a response.
Next Resource: Convert C# to VB.NET
Previous Resource: Password Generator in VB.NET
Return to Discussion Resource Index
Post New Resource
Category: Tools


Post resources and earn money!
 
Related Resources



dotNet Slackers   BizTalk Adaptors    Web Design

doors in nj

Contact Us    Privacy Policy    Terms Of Use