Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > .NET 1.0 and Visual Studio.NET > VS.NET 2002/2003
|
VS.NET 2002/2003 Discussions about the Visual Studio.NET programming environment, the 2002 (1.0) and 2003 (1.1). ** Please don't post code questions here ** For issues specific to a particular language in .NET, please see the other forum categories.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VS.NET 2002/2003 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 13th, 2006, 04:38 AM
Registered User
 
Join Date: Sep 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default How create Wordobject of Office2003 in vb.net 05

Hi All,

As you all guys know How to create word object in VB.NET 2003 using different version of Office as mention below.

'office xp
   Dim wordApp As Word.Application
   wordApp = CreateObject("Word.Application")
'office 2000
   Dim wordApp As Word.Application
   wordApp = New Word.Application
'office 97
   Dim wordApp As Word.ApplicationClass
   wordApp = New Word.Application

I developed one application in VB.NET 2003 to open a word object and I have office 2003 installed in my pc. I declare word object
    Dim objword As Word.Application
    objword = CreateObject("Word.Application")
and it works fine in VB.NET 2003.

Now i want to transfer same code to VB.NET 2005 but it gives me error "Cannot creat ActiveX Component" at the first line of declaration of word obj (Dim objword As Word.Application).

So How i declare word object of Office 2003 in Vb.NET so I remove error from my application.

Note: i include the reference of Word COM library in this project.






Similar Threads
Thread Thread Starter Forum Replies Last Post
PDA programming using VB 05 olink Visual Basic 2005 Basics 1 March 23rd, 2007 01:52 AM
control Excel VBA macro with a VB 05-designed UI dgr7 Visual Basic 2005 Basics 1 January 17th, 2007 11:29 AM
control Excel VBA macro with a VB 05-designed UI dgr7 VB How-To 0 December 29th, 2006 05:59 PM
control Excel VBA macro with a VB 05-designed UI dgr7 Excel VBA 0 December 29th, 2006 05:58 PM
how can i create messanger in vb.net sanjay_jadam General .NET 1 January 21st, 2005 07:47 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.