473,378 Members | 1,555 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,378 software developers and data experts.

Office 2003 PIAs

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?
Nov 22 '05 #1
1 3047
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" <zf******@hotmail.com> escribió en el mensaje
news:O2**************@TK2MSFTNGP12.phx.gbl...
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?

Nov 22 '05 #2

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

Similar topics

2
by: thierry | last post by:
hi, i've download pia office for c# i've install them in the gac i've made a reference in my c# code and it seems to work well as i can acess to the property of the excel object i've created...
1
by: zfeld | last post by:
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? ...
4
by: J-T | last post by:
I'm trying to read an excell file in my .Net application using Office XP Primary Interop Assemblies (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnoxpta/html/odc_oxppias.asp)....
1
by: webstuff | last post by:
Hi, I'm getting a 'Type mismatch' exception when calling the Word.Application.Documents.Open method when using the Office XP 2003 PIAs. the actual error is: ...
2
by: Thilaka | last post by:
Some time back i learnt that Office 2003 will be built to be able to use managed code (instead of the classic VBA). Is this true. Can someone please, give me a link where i could learn about...
2
by: William LaMartin | last post by:
I have created a program that allows for the automation of things in Word documents, like changing the values of DocVariables and the links to Excel Sheets. I did it using interoperoperatability,...
3
by: ChrisFrohlich | last post by:
I'm trying to use the Office XP PIA in an ASP.NET application. It's working fine on my workstation and I can manipulate a Workbook using Microsoft.Office.Interop.Excel. When I try to deploy the...
5
by: Michael Russell | last post by:
Hi all, Using C#, I've created a simple wrapper class for using Excel. I have Office Pro 2003 installed on my devel machine. The wrapper class works great, reading and writing to/from Excel. ...
0
by: LeAnne | last post by:
I've developed a word Add-in. I need to support Office XP and Office 2003. I've learnt that if using Office XP, then my product needs to be using the XP PIAs and vice versa. Thus at the end...
0
by: KnighT | last post by:
I did the whole PIA thing, now I just want to use this COM interface. When I run this code from my computer using a windows form it works properly. However, I am trying to install this as a...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: 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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.