PC Review


Reply
Thread Tools Rate Thread

Office 2003 PIAs

 
 
zfeld
Guest
Posts: n/a
 
      24th Nov 2004
1. Where do I get the Office 2003 PIAs? On the MSDN download site there are
only downloads for XP office PIAs. Do they automatically get installed to
the GAC with the installation of office 2003?

2. My problem is that I am developing an application in C# that does office
automation using Word & Excel that needs to work for Office XP and Office
2003.

After reading all the different posts I am still confused. My development
computer has Office XP installed, I installed the Office XP PIAs to the GAC
as recomended by the MSDN my reference in my solution tree points to the
GAC.

At my clients site the few computers that have a development environment I
installed the Office XP PIAs by using the Visual Studio .NET 2003 Command
prompt. Is this a problem being that my client has Office 2003 installed?

For the other computers I put the necessary DLLs from the PIA in the same
directory as my .EXE. This seems to work. Except for one computer with
Office 2003 on it, that throws an exception that "module not found" whenever
Word is invoked through my application. Weirdly enough when Excel is invoked
from that same computer it works. What can be broken with Word reference?

3. What about late binding? Is that an idea? Is it very slow? What are the
relevant lines of code for C#? DO I remove all references in my solution
space to Word and Excel? When it gets to my client's machine will it
reference the local office XP dlls bundled with my app or the Office 2003
dlls in the GAC? Will I then run into problems with incompatible code, I
heard that office 2003 added another parameter in Word to open() ? Is there
any way when using late binding to figure out what version of Word it found
and then if/else the incompatible code?


 
Reply With Quote
 
 
 
 
Carlos J. Quintero [MVP]
Guest
Posts: n/a
 
      24th Nov 2004
1) If you do a complete install of Office 2003, you'll get the PIAs
installed into the GAC automatically. It's strongly recommended that you do
a complete install. With a typical install, the PIAs are installed on
demand. See:

Office 2003 Primary Interop Assemblies (PIAs)
http://msdn.microsoft.com/library/de.../stconPIAs.asp

For the remaining items, see:

INFO: Develop Microsoft Office Solutions with Visual Studio .NET
http://support.microsoft.com/kb/311452/en-us


--

Carlos J. Quintero

The MZ-Tools all-in-one add-in, now for .NET: http://www.mztools.com


"zfeld" <(E-Mail Removed)> escribió en el mensaje
news:O2XAJ$(E-Mail Removed)...
> 1. Where do I get the Office 2003 PIAs? On the MSDN download site there
> are only downloads for XP office PIAs. Do they automatically get installed
> to the GAC with the installation of office 2003?
>
> 2. My problem is that I am developing an application in C# that does
> office automation using Word & Excel that needs to work for Office XP and
> Office 2003.
>
> After reading all the different posts I am still confused. My development
> computer has Office XP installed, I installed the Office XP PIAs to the
> GAC as recomended by the MSDN my reference in my solution tree points to
> the GAC.
>
> At my clients site the few computers that have a development environment I
> installed the Office XP PIAs by using the Visual Studio .NET 2003 Command
> prompt. Is this a problem being that my client has Office 2003 installed?
>
> For the other computers I put the necessary DLLs from the PIA in the same
> directory as my .EXE. This seems to work. Except for one computer with
> Office 2003 on it, that throws an exception that "module not found"
> whenever Word is invoked through my application. Weirdly enough when Excel
> is invoked from that same computer it works. What can be broken with Word
> reference?
>
> 3. What about late binding? Is that an idea? Is it very slow? What are the
> relevant lines of code for C#? DO I remove all references in my solution
> space to Word and Excel? When it gets to my client's machine will it
> reference the local office XP dlls bundled with my app or the Office 2003
> dlls in the GAC? Will I then run into problems with incompatible code, I
> heard that office 2003 added another parameter in Word to open() ? Is
> there any way when using late binding to figure out what version of Word
> it found and then if/else the incompatible code?
>



 
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
Office XP PIAs TC Microsoft Outlook Interoperability 8 17th Aug 2007 01:21 AM
Office XP PIAs TC Microsoft Outlook Program Addins 8 17th Aug 2007 01:21 AM
Office 2003 PIAs zfeld Microsoft Dot NET 1 24th Nov 2004 05:40 PM
running Word/Excel in silent mode with Office XP PIAs Bob Microsoft C# .NET 4 14th Nov 2003 12:08 AM
Re: running Word/Excel in silent mode with Office XP PIAs Peter Torr \(MS\) Microsoft Excel Programming 0 14th Nov 2003 12:08 AM


Features
 

Advertising
 

Newsgroups
 


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