PC Review


Reply
Thread Tools Rate Thread

Automation of Office

 
 
Marco Singer
Guest
Posts: n/a
 
      16th Jul 2004
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


 
Reply With Quote
 
 
 
 
=?Utf-8?B?QW5hbmRbTVZQXQ==?=
Guest
Posts: n/a
 
      16th Jul 2004
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
>
>
>

 
Reply With Quote
 
Cor Ligthert
Guest
Posts: n/a
 
      16th Jul 2004
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
>
>



 
Reply With Quote
 
Marco Singer
Guest
Posts: n/a
 
      16th Jul 2004

"Cor Ligthert" <(E-Mail Removed)> schrieb im Newsbeitrag
news:(E-Mail Removed)...
>
> 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


 
Reply With Quote
 
Cor Ligthert
Guest
Posts: n/a
 
      16th Jul 2004
Hi Marco,

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

Cor


 
Reply With Quote
 
Sriram Krishnan
Guest
Posts: n/a
 
      17th Jul 2004
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" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi Marco,
>
> I do not know where you can get the oldest versions, maybe somebody else
> knows that.
>
> Cor
>
>



 
Reply With Quote
 
Marco Singer
Guest
Posts: n/a
 
      19th Jul 2004
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" <(E-Mail Removed)> schrieb im Newsbeitrag
news:%(E-Mail Removed)...
> 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" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > Hi Marco,
> >
> > I do not know where you can get the oldest versions, maybe somebody else
> > knows that.
> >
> > Cor
> >
> >

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to start Office application in Automation mode via Office itself? HemiltonChen@hotmail.com Microsoft Excel Programming 0 23rd Jan 2008 07:21 AM
Out of office automation =?Utf-8?B?TWFya04=?= Microsoft Outlook VBA Programming 0 6th Aug 2006 04:49 AM
Office Automation Kuups Microsoft VB .NET 1 28th Feb 2005 09:33 AM
Office automation application which will work with any version of office C#.NET Silly Programmer Microsoft Excel Programming 1 21st Feb 2004 10:54 AM
Office Automation & MFC keith Microsoft VC .NET 1 12th Sep 2003 07:57 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:45 PM.