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

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.Office.Interop.Word

There is no Microsoft.Office 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("Word.Application") line.

Any help would be appreicated.

Thanks,
King Wilder

Dec 10 '05 #1
1 1769
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**@kingwilder.com> wrote in message
news:11*********************@o13g2000cwo.googlegro ups.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.Office.Interop.Word

There is no Microsoft.Office 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("Word.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
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...
2
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...
8
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 =...
17
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
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#,...
2
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...
1
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...
1
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...
2
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...
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: 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...
0
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,...
0
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...
0
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...
0
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,...

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.