473,779 Members | 1,952 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Word automation in .Net using PIA's

Like many other developers I've written a VB.Net app to automate Word
2000. The app does work on my machine, but when I create an
Installation package and install it on other users machines, it may
work, but most of the time it doesn't. I followed the instructions on
how to install the Office XP PIA's, but I don't think it installed
correctly.

Here's why:

-- When I set a reference, the associated DLL's are in my applications
/bin folder, not the GAC
-- When I use the Imports statement such as "Import Word" that's all I
can do. I can't do this:

Imports Word = Microsoft.Offic e.Interop.Word

There is no Microsoft.Offic e namespace.

Does anyone have any ideas why this isn't working?

Here's my system configuration:

OS: Windows Server 2003 (used as a development machine, not to be used
as an Office server!)
Office Version: 2000
Visual Studio 2003

So all of this means that if I try to run the example listed here,
http://support.microsoft.com/default...b;en-us;316383, is
doesn't work. If fails on the CreateObject("W ord.Application ") line.

Any help would be appreicated.

Thanks,
King Wilder

Dec 10 '05 #1
1 1786
Hi,

When your code automates word you target one version of word. On
any computer that has word 97, xp, or 2003 instead of 2000 your software
will crash.

Ken
----------------------
"kwilder" <in**@kingwilde r.com> wrote in message
news:11******** *************@o 13g2000cwo.goog legroups.com...
Like many other developers I've written a VB.Net app to automate Word
2000. The app does work on my machine, but when I create an
Installation package and install it on other users machines, it may
work, but most of the time it doesn't. I followed the instructions on
how to install the Office XP PIA's, but I don't think it installed
correctly.

Here's why:

-- When I set a reference, the associated DLL's are in my applications
/bin folder, not the GAC
-- When I use the Imports statement such as "Import Word" that's all I
can do. I can't do this:

Imports Word = Microsoft.Offic e.Interop.Word

There is no Microsoft.Offic e namespace.

Does anyone have any ideas why this isn't working?

Here's my system configuration:

OS: Windows Server 2003 (used as a development machine, not to be used
as an Office server!)
Office Version: 2000
Visual Studio 2003

So all of this means that if I try to run the example listed here,
http://support.microsoft.com/default...b;en-us;316383, is
doesn't work. If fails on the CreateObject("W ord.Application ") line.

Any help would be appreicated.

Thanks,
King Wilder

Dec 11 '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?
2
2819
by: Shawn | last post by:
Hi, I have added a spell checker to my web application using the "Microsoft Word Document" DCOM. Everything works great in my development environment. When I move everything over to my production machine I get... "Object reference not set to an instance of an object" This is caused when the following Visual Basic line is executed...
8
3181
by: sudha | last post by:
Hi, To open a word doc from c#, i use the following code : Word.ApplicationClass WordApp = new Word.ApplicationClass (); // give any file name of your choice. object fileName = "C:\\test.doc"; object readOnly = false;
17
6348
by: Mansi | last post by:
I need to do some research on how to use excel automation from c#. Does anyone know of any good books related to this subject? Thanks. Mansi
2
4416
by: john_20_28_2000 | last post by:
What is the technology that replaces OLE Automation in .NET? Please. Sorry, I couldn't find it. Also, I wanted to know if I have a program, any executable, can I "automate" it from .net, c#, etc.? Not sure how to ask this, but say I have an image manipulation program not made by Microsoft, but I want to use it in my C# program (and assume it doesn't violate anything), can I do this in .net. Thanks for any advice.
2
2624
by: Radek | last post by:
Hi, I have got such problem: in my directory "C:\folder" I have 3 files in MS WORD (having tables, images etc), these are: "1.doc", "2.doc", "3.doc". I want to write an application (C# of course) which will merge the contents of files which I will point ie. 1.doc and 2.doc into one file: "12.doc" I've just tried to find smth in MSDN help, and in google archive of programing groups but still I don't know how to do it:(
1
2707
by: John Davy | last post by:
I am trying to set up a mail merge by automation using a text file as the data source but I keep getting the message "Requested object is not available" and the debugger stops on the opendatasource line (code below) (I am VERY new to c# so this is a bit difficult for me at the moment) I am using win xp and office xp 2003 (word 11) I have installed the PIA for office as per Microsoft KB
1
1956
by: =?Utf-8?B?SWdvcg==?= | last post by:
Hi ! I have a problem with WebControl I opened Microsoft Word document not directly, but in Visual Basic 6.0 WebBrowser control. When I selected with Range.Select any text the Saved property of the document did not change, but when I highlighting even one character with Range.HighlightColorIndex, I cannot prevent the WebControl from displaying save message. Undo method also has no effect.
2
1668
by: Terry | last post by:
Hello: using vb.net 2005 and word 2007. I would like to open a word.docx document Have a button on a vb.net form that when clicked inserts text on the word document Have a button on a vb.net form that when clicked removes the inserted text on the word document that was inserted above. I have seen examples that modify the underlying xml and other examples using word interropt.
0
9636
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9474
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10074
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
9930
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...
1
7485
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5373
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...
0
5503
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4037
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
3632
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.