473,386 Members | 1,823 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Trying to use the Word Application object in Microsoft Visual Basic .NET

Hi,

I'm using Microsoft Visual Basic .NET and want to reference the
ThisApplication variable but cannot get to it or find the OfficeCodeBehind
class. Is this a shortcomming of the fact that I have Microsoft Visual Basic
and not Visual Studio .NET?

On page:
http://msdn.microsoft.com/library/de...tionobject.asp I
read:
If you are working in Word, the Application object is automatically created
for you, and you can use the Application property to return a reference to
the Word Application object. When you are creating your solution in Visual
Studio .NET, you can use the ThisApplication variable defined for you within
the OfficeCodeBehind class. IntelliSense displays the list of collections,
methods, and properties for the Application object.

When you are referring to objects and collections beneath the Application
object, you do not need to explicitly refer to the Application object. For
example, you can refer to the active document without the Application object
by using the built-in ThisDocument property. ThisDocument refers to the
active document, and allows you to work with members of the Document object.

Regards,

Marcel
Jul 21 '05 #1
2 5567
I can't find the Microsoft Word 9.0 or 10.0 object library also, it is not
present in the COM Components tab.

"Marcel" <m.*********@home.nl> schreef in bericht
news:32*************@individual.net...
Hi,

I'm using Microsoft Visual Basic .NET and want to reference the
ThisApplication variable but cannot get to it or find the OfficeCodeBehind
class. Is this a shortcomming of the fact that I have Microsoft Visual
Basic and not Visual Studio .NET?

On page:
http://msdn.microsoft.com/library/de...tionobject.asp I
read:
If you are working in Word, the Application object is automatically
created for you, and you can use the Application property to return a
reference to the Word Application object. When you are creating your
solution in Visual Studio .NET, you can use the ThisApplication variable
defined for you within the OfficeCodeBehind class. IntelliSense displays
the list of collections, methods, and properties for the Application
object.

When you are referring to objects and collections beneath the Application
object, you do not need to explicitly refer to the Application object. For
example, you can refer to the active document without the Application
object by using the built-in ThisDocument property. ThisDocument refers to
the active document, and allows you to work with members of the Document
object.

Regards,

Marcel

Jul 21 '05 #2
At last I found it. Thanks anyway.

Marcel

"Marcel" <m.*********@home.nl> schreef in bericht
news:32*************@individual.net...
Hi,

I'm using Microsoft Visual Basic .NET and want to reference the
ThisApplication variable but cannot get to it or find the OfficeCodeBehind
class. Is this a shortcomming of the fact that I have Microsoft Visual
Basic and not Visual Studio .NET?

On page:
http://msdn.microsoft.com/library/de...tionobject.asp I
read:
If you are working in Word, the Application object is automatically
created for you, and you can use the Application property to return a
reference to the Word Application object. When you are creating your
solution in Visual Studio .NET, you can use the ThisApplication variable
defined for you within the OfficeCodeBehind class. IntelliSense displays
the list of collections, methods, and properties for the Application
object.

When you are referring to objects and collections beneath the Application
object, you do not need to explicitly refer to the Application object. For
example, you can refer to the active document without the Application
object by using the built-in ThisDocument property. ThisDocument refers to
the active document, and allows you to work with members of the Document
object.

Regards,

Marcel

Jul 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Christian Blackburn | last post by:
Hi Gang, I saw this for sale online: Microsoft Visual Basic.NET Deluxe Learning Edition Version 2003. I'm wondering is the CD that's bundled with the learning edition just a digitized version of...
2
by: Sandra | last post by:
Hi there! Hope I have the right chat forum for this. Anyway, if someone could help me, I would really appreciate it. I have a few Microsoft Word XP files and here is what's happening... ...
2
by: Marcel | last post by:
Hi, I'm using Microsoft Visual Basic .NET and want to reference the ThisApplication variable but cannot get to it or find the OfficeCodeBehind class. Is this a shortcomming of the fact that I...
1
by: nuoo | last post by:
Programming Microsoft SQL Server 2000 with Microsoft Visual Basic .NET Learn how to turn data into solutions with SQL Server 2000, Visual Basic .NET, and XML. Get a fundamental grasp of SQL...
3
by: Pitaridis Aristotelis | last post by:
Is there any way to create setup for a project made in Microsoft Visual Basic 2005 Express Edition
1
by: theTone | last post by:
Hi all, We have noticed that using the Word OLE is much slower on dual processor machines. Limiting the processor affinity to one processor helps. So, I want to set the affinity in my C# code....
1
by: =?Utf-8?B?c3VydHVyeg==?= | last post by:
Hi, I'm using VB2005 + Office XP Enterprise. If you create a Word.Application object, you risk a memory leak if your application crashes because Word.Application is an unmanaged COM Interop...
0
by: =?Utf-8?B?Rk5BSUdJUw==?= | last post by:
Does anybody know of a good tutorial, or somewhere where I can learn about editing with Microsoft Visual Basic? I'm trying to edit fillable forms, and macros in Microsoft Excel 2007. Thank you.
1
by: zufie | last post by:
I am trying to run a report, but I get the Microsoft Visual Basic Run- Time Error '2471': Unknown I googled the error and found that the Run-Time Error 2471 points to an "Item in query". Here...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.