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

Automation urgent help

I'm doing a server side automation(I know it's bad but..) and its working
fine locally and when accessing it from a remote machine using web browser is
was giving me this error"Retrieving the COM class factory for component with
CLSID
{000209FF-0000-0000-C000-000000000046} failed due to the following error:
80070005". so I configured the server using dcomcnfg as described in this
link:
http://support.microsoft.com/kb/288368/
and know this error now is gone but I'm having this error:"Object reference
not set to an instance of an object." when it comes to the last line of this
code:
Object oName = "C:\\improvement.doc";
Word.Application wrdApp;
Word._Document wrdDoc;
wrdApp = new Word.Application();
wrdDoc = wrdApp.Documents.Add(ref oName, ref oFalse,
ref oMissing, ref oMissing);
wrdDoc.Select();

So, Why it's telling me that wrdDoc.Select(); "is not set to an instance of
an object." when it's accessed from a remote machine but not when running it
locally in debug mode!!?

Apr 30 '07 #1
3 1017
"Badis" <Ba***@discussions.microsoft.comwrote in message
news:B0**********************************@microsof t.com...
I'm doing a server side automation(I know it's bad but..)
OK, let me get this straight - you are doing something which you already
know to be patently stupid, and now you are wondering why it doesn't
work...?
So, Why it's telling me that wrdDoc.Select(); "is not set to an instance
of
an object." when it's accessed from a remote machine but not when running
it
locally in debug mode!!?
Sigh - because when you're running it all locally on the same machine, it's
not doing server-side automation - don't you get it...???

--
http://www.markrae.net

Apr 30 '07 #2
There is no need for such harsh answer, I was just asking!!
isn't that what forums are about!? discussing and sharing ideas?
>Sigh - because when you're running it all locally on the same machine, it's
not doing server-side automation - don't you get it...???
I'm beginner if I knew the answer for my question I wouldn't ask in the
first place

"Mark Rae" wrote:
"Badis" <Ba***@discussions.microsoft.comwrote in message
news:B0**********************************@microsof t.com...
I'm doing a server side automation(I know it's bad but..)

OK, let me get this straight - you are doing something which you already
know to be patently stupid, and now you are wondering why it doesn't
work...?
So, Why it's telling me that wrdDoc.Select(); "is not set to an instance
of
an object." when it's accessed from a remote machine but not when running
it
locally in debug mode!!?

Sigh - because when you're running it all locally on the same machine, it's
not doing server-side automation - don't you get it...???

--
http://www.markrae.net

Apr 30 '07 #3
"Badis" <Ba***@discussions.microsoft.comwrote in message
news:D9**********************************@microsof t.com...
I'm beginner if I knew the answer for my question I wouldn't ask in the
first place
The very first line of your OP was:
"I'm doing a server side automation(I know it's bad but..)"

Clearly, you're not so much of a beginner to know that what you are trying
to do (server-side automation) doesn't work...
isn't that what forums are about!? discussing and sharing ideas?
Sure, but there's very little point in asking for help with something you
already know is never going to work!

May 1 '07 #4

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

Similar topics

15
by: qwweeeit | last post by:
Hi all, Elliot Temple on the 1 June wrote: > How do I make Python press a button on a webpage? I looked at > urllib, but I only see how to open a URL with that. I searched > google but no...
25
by: Neil Ginsberg | last post by:
I have a strange situation with my Access 2000 database. I have code in the database which has worked fine for years, and now all of a sudden doesn't work fine on one or two of my client's...
1
by: Jimmer | last post by:
I've got what should be an easy automation problem, but the solution simply isn't coming to me. I've got several public variables set up for automation as follows: Public gappExcel As...
1
by: Lee Seung Hoo | last post by:
hi~ :) I need all information of "Automation" or "Automation Object" what is that ? why is it useful ? How can I use that by C# or .Net Framework ?
6
by: a.theil | last post by:
Please help! I need a simple excel automation, just 2 write some files into excel. I do: Dim oXL As Excel.Application Dim oWB As Excel.Workbook Dim oSheet As Excel.Worksheet Dim oRng As...
1
by: kkmar | last post by:
I have a doubt on RangeObject of word document.i am trying to pass a string which is more than 256 characters into range.find.execute(str) where str is more than 256 characters.It gives me error...
1
by: =?Utf-8?B?QmFkaXM=?= | last post by:
I'm doing a server side automation(I know it's bad but..) and its working fine locally and when accessing it from a remote machine using web browser is was giving me this error"Retrieving the COM...
10
by: cj2 | last post by:
I open a word template in VB and add values to the bookmarks then save the document as as pdf. When I then go to close the document it pops up a save as dialog box. It's already saved the...
2
by: anirudhbapu | last post by:
Need help for Unix ksh automation. I have a daily activity whihc need to be done manually every day for which we have 7 to 8 scripts which calls each other to reflect the application and database....
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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...
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...

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.