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

Help with Interop.Word problems

Hi gang,

Very sorry if this is in the wrong place, but I am at my wits end with this
thing and am in DESPERATE need of some assistance, ANY assistance...

I have a Service that I wrote that fetches a Word doc via FTPS and prints it
locally. The service was not working due to an error I could not trap (or
didn't understand), so I decided to just write a plain old Win Forms app to
do the job until I could figure out the service issue.

I write the Win Forms app, and whenever I get to the call to create a new
Word.Application instance, my code wanders off into the weeds, never to be
heard from again. I have tried:
wordApp = New Word.Application as well as wordApp =
CreateObject("Word.Application") and both produce the same results. However,
the CreateObject call would occaisionally throw a "Cannot create ActiveX
control" exception.

Now, here is the weird part. I have another Web app that uses the same code,
and it worked fine on my dev machine... until I hit this problem. Now
suddenly the Web app is doing the same thing. As far as I know, nothing has
changed on my system (except for perhaps a Windows update, which could be the
culprit).

I have searched high and low on the Net for solutions, and have found many,
but none seem to work. I am also able to reproduce this on my deployment
machine, so one possibility I read that my OS was corrupted, does not seem
viable.

Can anyone shed some light on this, or guide me through to a solution? Help
me Obi Wan Kenobi... you're my only hope...

Please, anyone who has any insight/input/experience with this problem, help!

Frustrated, frantic, and feeling like an idiot,

Chris
Jul 21 '05 #1
0 1209

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

Similar topics

1
by: Anand G | last post by:
We are trying to find help on the Interop classes for interfacing with Word/Excel to create Word document with tables/charts etc. We are not able find any help on the MSDN and on google for...
0
by: Kaytrim | last post by:
I have an application that puts data into an Excel spreadsheet. It then opens a Word doc that reads the data and either prints the resulting form letters or keeps the file open for viewing. This...
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,...
0
by: Raconteur | last post by:
Hi gang, Very sorry if this is in the wrong place, but I am at my wits end with this thing and am in DESPERATE need of some assistance, ANY assistance... I have a Service that I wrote that...
0
by: R Reyes | last post by:
ISSUE (reposted) =========================== Can someone please explain to me why I can't get the MS Word Interop assembly to work in my VS2005 project? For many people, they say they add the...
1
by: winston.heng | last post by:
Hi, Thanks for reading this posting. I have been cracking my head on solving the infinite loop when i call the following section code. Any help or advise is greatly appreciated =D Thanks in...
12
by: Nelluru | last post by:
Hi, I am using Office XP PIA's to read a word document. I am able to read the whole content. The problem is that i want to get a particular word in the document instead of the whole content. ...
2
by: Derek Hart | last post by:
I am using late bound Microsoft Word integration with a vb.net winforms application. If I run code such as the following: Dim objWord As Object Dim objWrdDoc As Object Dim count As Integer...
1
by: =?ISO-8859-1?Q?S=F8ren?= | last post by:
Hi guys I got the following code: ------------------------------------------------------- Dim Word As New Microsoft.Office.Interop.Word.Application Dim Document As...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...
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:
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...
0
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,...

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.