473,695 Members | 1,781 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1923
This is a common misunderstandin g 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******** *******@TK2MSFT NGP10.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
481
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 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?
12
5520
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 and office XP components installed. ie I have word/access/excel 2k/xp/2003 installed. I tried to do a usual access 2k to word 2k automation yet I get the error "Automation Error" "ClassFactory cannot supply requested class" when on late binding try...
2
1721
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 ABSURD, first they delayed delivery and secondly when they sent the ordered product they sent me a badly damaged CD, when I asked for replacement they did not even bother to apologize instead telling me to contact them. I don't ever ever want to...
6
4747
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 appreciated. Thanks in advance
2
2332
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 database? Why you ask! A client has a 2000 database. Currently using 2000 runtime for most employees to work with database. A couple use 2003 to use database, no problems. They have a mix of versions of other products such as Word, Excel - 97,...
0
3855
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 connection to Microsoft Access to complete the current task" I can do mail/merge from Excel with no problems. I can use ODBC to
3
1529
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 I found out that Office 2000 Pro was installed (YIKES - no Access 97) we took off Access 2000 and re installed Access 97. BUT Mail Merge (Word 2000) is flakey. A button on an access form opens a word document with info from the
33
5942
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 future. I haven't heard of this. Does anybody know more about it? The IT-People usually prefer Oracle. If they really want to go in this direction, could our Access-application (if continued) be used as a front end with an Oracle back end? Does...
3
5583
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 document in Word; 2. opens the document and runs the merge process for the new data. I have managed to write the code to perform step 1 ok, but I'm having trouble with step 2. It opens the word document fine but does not perform the mail merge of...
3
2739
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. When converting the front ends I get the following issues and error. If I try to import all the objects into a blank Access 2003 shell I get a missing reference error for Outlook 2000, Excel 2000, and Word 2000 or after importing all the objects...
0
9113
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8977
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8839
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8822
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7656
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4339
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2997
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 we have to send another system
2
2269
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
1971
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.