473,320 Members | 2,112 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,320 software developers and data experts.

How can I access Word 2000 from .net 2003?

Ken
Hi,

I'm trying to access the values of properties -- summary and custom
without opening Word to do a cleanup op but the customer i'm doing it for
only has Office 2000. I'm using c# in .net 2003 and having trouble.

I've looked on msdn and can find a pia for Office xp but no mention of
Office 2000. Is this possible or do will I have to go back to VS6
and do it in VB?

TIA
Ken
Nov 22 '05 #1
1 1903
This is a common misunderstanding about PIAs. The thinking is that without
a PIA, you cannot use the COM object model for a Microsoft Office app, from
a custom managed app. This is not true.

A PIA is required only when you will have multiple apps that must share
assemblies. If your app (the one that is doing cleanup) will use remoting
or some other communication to send instances of RCWs for office, to another
managed app, then you want both apps to have exactly the same definitions
for the interop assemblies. PIAs do that for you. This is especially useful
if you don't know the apps that will do the sharing - in other words,
arbitrary future clients may want to interconnect. In this case PIAs are
essential.

If on the other hand you have no communication between this cleanup app and
any other managed code, OR, if you do have communication but you "own" all
the interconnecting apps, then you do not need PIAs. You can construct
your own Interop assemblies (check out the tlbimp.exe util) and then use
those assemblies within your app, or apps. In other words, you build an
interop assembly (an IA) for Word 2000 that is not the "Primary" IA (PIA),
and just use it.

So, you can probably just invoke tlmimp on the Word 2000 TLBs, and go to
town.
-Dino

--
Dino Chiesa
Microsoft Developer Division
d i n o c h @ o n l i n e . m i c r o s o f t . c o m
"Ken" <fu************@hotmail.com> wrote in message
news:em***************@TK2MSFTNGP10.phx.gbl...
Hi,

I'm trying to access the values of properties -- summary and custom
without opening Word to do a cleanup op but the customer i'm doing it for
only has Office 2000. I'm using c# in .net 2003 and having trouble.

I've looked on msdn and can find a pia for Office xp but no mention of
Office 2000. Is this possible or do will I have to go back to VS6
and do it in VB?

TIA
Ken

Nov 22 '05 #2

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

Similar topics

1
by: Ken | last post by:
Hi, I'm trying to access the values of properties -- summary and custom without opening Word to do a cleanup op but the customer i'm doing it for only has Office 2000. I'm using c# in .net 2003...
12
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...
2
by: DonLi | last post by:
Hi, I have a copy of Access 97 while my client uses Access 2000 which supports Unicode. My client has ordered a copy of Access 2000 upgrade for me, but the middleman, atomicpark.com is totally...
6
by: Peter Frost | last post by:
Please help I don't know if this is possible but what I would really like to do is to use On Error Goto to capture the code that is being executed when an error occurs. Any help would be much...
2
by: Jeff | last post by:
Does anyone know of any potential problems running a 2000 database with 2003? Also, what about installing all other Office products as 2003 versions but leaving Access as 2002 running a 2000...
0
by: bmoos1 | last post by:
I have MS Office 2000 and upgraded Access Only to 2003. The problem is I want to use my Access queries for a mail/merge, but I get the error message: "Word could not re-establish DDE...
3
by: arthur-e | last post by:
My access 97 database worked great until our I.S. upgraded to Win2000/Office 2000 in order to install a printer (Novell is running too) and the machine was NT - and a USB port was needed. After...
33
by: Uwe Range | last post by:
Hi to all! A customer of mine told me some days ago that her IT-people told her ACCESS would not be such a good idea for continuing with our project, because Access will not be continued in the...
3
by: Andy Davis | last post by:
I have set up a mail merge document in Word 2003 which gets its data from my Access 2000 database. I want to set up a button on a form that: 1. runs the query to provide the dat for the merge...
3
by: NEWSGROUPS | last post by:
I am in the midst of trying to convert about 25 Access 2000 to Access 2003. The new environment consists of Office/Access 2003 and Outlook 2003. When converting the back ends I have no problems....
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
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: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.