473,507 Members | 3,706 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Automation of Office

Hi all,

is there any way to create a VB.NET application that automates MS Word and
Excel and works with all Office versions from 97 and newer? I currently have
Office XP installed.
Ok, I could declare all office type variables as "object" and create an
application instance with CreateObject().
But I want to use Intellisense and use the object browser for class member
reference.

Any hints?

Thanks

Marco
Nov 20 '05 #1
6 1146
reference the Microsoft Excel or Word object library. And program against that. The only problem is that each version of Office has a different library. One option is to have sperate library projects for each version of Office. That way each project can reference the correct version of Office and you main app chooses which DLL to use based on the office version available.

Rgds,
Anand
VB.NET MVP
http://www.dotnetindia.com

"Marco Singer" wrote:
Hi all,

is there any way to create a VB.NET application that automates MS Word and
Excel and works with all Office versions from 97 and newer? I currently have
Office XP installed.
Ok, I could declare all office type variables as "object" and create an
application instance with CreateObject().
But I want to use Intellisense and use the object browser for class member
reference.

Any hints?

Thanks

Marco

Nov 20 '05 #2
Hi Marco,

Have a look at these links,

I hope they help?

Cor

Office
http://support.microsoft.com/default...b;EN-US;311452

http://msdn.microsoft.com/office/

Pia Download
http://www.microsoft.com/downloads/d...displaylang=en

Excel dataset fill and updat
http://support.microsoft.com/default...b;EN-US;316934


is there any way to create a VB.NET application that automates MS Word and
Excel and works with all Office versions from 97 and newer? I currently have Office XP installed.
Ok, I could declare all office type variables as "object" and create an
application instance with CreateObject().
But I want to use Intellisense and use the object browser for class member
reference.

Any hints?

Thanks

Marco

Nov 20 '05 #3

"Cor Ligthert" <no**********@planet.nl> schrieb im Newsbeitrag
news:Ox**************@TK2MSFTNGP10.phx.gbl...

Office
http://support.microsoft.com/default...b;EN-US;311452


On a linked page appears this:

"Reference the type library of the earliest version of the Office
application you intend to Automate."

Ok, but where can I obtain type libraries of older Office versions?

Marco
Nov 20 '05 #4
Hi Marco,

I do not know where you can get the oldest versions, maybe somebody else
knows that.

Cor
Nov 20 '05 #5
There was a MSDN article about the office PIAs which spoke about where to
obtain the older versions of the PIAs and how to set them up. I can't find
them right now - maybe someone else can help out?

--
Sriram Krishnan
Microsoft Student Ambassador
http://www.dotnetjunkies.com/weblog/sriram
"Cor Ligthert" <no**********@planet.nl> wrote in message
news:ec**************@TK2MSFTNGP11.phx.gbl...
Hi Marco,

I do not know where you can get the oldest versions, maybe somebody else
knows that.

Cor

Nov 20 '05 #6
It seems there is a PIA package for Office 2000 and Office XP, but not for
older versions. I want to write an automation client for Office 97...

Marco

"Sriram Krishnan" <ks*****@NOSPAMgmx.net> schrieb im Newsbeitrag
news:%2***************@tk2msftngp13.phx.gbl...
There was a MSDN article about the office PIAs which spoke about where to
obtain the older versions of the PIAs and how to set them up. I can't find
them right now - maybe someone else can help out?

--
Sriram Krishnan
Microsoft Student Ambassador
http://www.dotnetjunkies.com/weblog/sriram
"Cor Ligthert" <no**********@planet.nl> wrote in message
news:ec**************@TK2MSFTNGP11.phx.gbl...
Hi Marco,

I do not know where you can get the oldest versions, maybe somebody else
knows that.

Cor


Nov 20 '05 #7

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

Similar topics

4
2469
by: jabailo | last post by:
I came across this article while researching a VB6 430 error: INFO: Considerations for Server-Side Automation of Office http://support.microsoft.com/default.aspx?scid=kb;EN-US;q257757 ...
25
3696
by: Neil Ginsberg | last post by:
I have a strange situation with my Access 2000 database. I have code in the database which has worked fine for years, and now all of a sudden doesn't work fine on one or two of my client's...
12
5503
by: Cheval | last post by:
Has anyone had any problems with inter-office automation between MS Word and MS Access in Office 2003? I have recently installed office 2003 in a new folder and have left the older office 2000...
17
6302
by: Mansi | last post by:
I need to do some research on how to use excel automation from c#. Does anyone know of any good books related to this subject? Thanks. Mansi
2
1827
by: Alex Maghen | last post by:
Hi. I've seen several KBs on using .NET for MS Office Automation. But I have a particular question: I am developing a somewhat stand-alone .ASPX page which will need to do some relatively simple MS...
3
2161
by: Mitchell Vincent | last post by:
Does anyone have some good examples of Excel automation with (VB).NET? I have some Excel spreadsheets that a customer needs parsed out but I've never tried to use Excel programatically before! ...
12
1623
by: Tomas | last post by:
Hi, I have worked with VB.NET for half a year (semi-newbie). Currently I am looking around for some books for those that crossed the starting hurdle. There are too many books out there-make...
8
1795
by: =?Utf-8?B?QmFkaXM=?= | last post by:
I have tried a server-side automation and it's giving me problems that I couldn't solve.. Now, I'm switching to client side automation and I was following this example:...
10
3263
by: cj2 | last post by:
I open a word template in VB and add values to the bookmarks then save the document as as pdf. When I then go to close the document it pops up a save as dialog box. It's already saved the...
1
7029
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7481
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5619
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4702
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3190
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3179
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1537
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
758
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
411
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.