Connecting Tech Pros Worldwide Forums | Help | Site Map

Call was rejected by callee -

Member
 
Join Date: Jun 2007
Posts: 99
#1: Apr 8 '08
While creating a word doc using Javascript I am getting error "Call was rejected by callee"

Expand|Select|Wrap|Line Numbers
  1. var objWord=new ActiveXObject('Word.Application');
  2. objWord.Visible = "True";
I am executing this in a ASP document on IIS 5 Server.


Please Help...

Regards,

acoder's Avatar
Site Moderator
 
Join Date: Nov 2006
Location: UK
Posts: 14,581
#2: Apr 9 '08

re: Call was rejected by callee -


This could possibly be caused by the Word application being busy.

You could try waiting a while and then trying. See if this link helps.
Member
 
Join Date: Jun 2007
Posts: 99
#3: Apr 11 '08

re: Call was rejected by callee -


Quote:

Originally Posted by acoder

This could possibly be caused by the Word application being busy.

You could try waiting a while and then trying. See if this link helps.

I am trying to open a word doc with Javascript and create a new document using mailmerge.

Now problem is when more then one user is using the same template for mailmerge I got a error from Word "Document is locked for editing by xxx"

Is there any way to overcome this ...or any way to keep word doc in shared way.
acoder's Avatar
Site Moderator
 
Join Date: Nov 2006
Location: UK
Posts: 14,581
#4: Apr 11 '08

re: Call was rejected by callee -


More than one person can't edit the same file at the same time otherwise you'd get unexpected results. Either they use separate templates or catch the error and wait a while and try again.

Did you manage to solve the first problem?
Member
 
Join Date: Jun 2007
Posts: 99
#5: Apr 15 '08

re: Call was rejected by callee -


Quote:

Originally Posted by acoder

More than one person can't edit the same file at the same time otherwise you'd get unexpected results. Either they use separate templates or catch the error and wait a while and try again.

Did you manage to solve the first problem?

For the first issue "Call was rejected by callee" it was not the problem of Anti virus...

I just make null the objword object just after making Word visible.

Till time haven't got that problem yet and stand resolved.

Another problem frequently disturbing is "Automation server can't create Object" and once we again login to the application it disappears and application work fine and suddenly appears again....I don't no why? what is the reason. IE all settings are on LOW

Acoder can u plz help on this?
acoder's Avatar
Site Moderator
 
Join Date: Nov 2006
Location: UK
Posts: 14,581
#6: Apr 16 '08

re: Call was rejected by callee -


Quote:

Originally Posted by buntyindia

Another problem frequently disturbing is "Automation server can't create Object" and once we again login to the application it disappears and application work fine and suddenly appears again....I don't no why? what is the reason. IE all settings are on LOW

Usually, this error occurs because the ActiveX script doesn't have sufficient permissions to run. In your case, it does, so I'm not sure why you have this problem. When you login to the application, do you access an ActiveX object?
Member
 
Join Date: Jun 2007
Posts: 99
#7: Apr 16 '08

re: Call was rejected by callee -


Quote:

Originally Posted by acoder

Usually, this error occurs because the ActiveX script doesn't have sufficient permissions to run. In your case, it does, so I'm not sure why you have this problem. When you login to the application, do you access an ActiveX object?

While login we are authenticating the user with ldap using a DLL after that main page loads and there user can choose to mail merge the letters where it actually to the function
acoder's Avatar
Site Moderator
 
Join Date: Nov 2006
Location: UK
Posts: 14,581
#8: Apr 17 '08

re: Call was rejected by callee -


So does this error occur whenever you create a new ActiveX object?
Member
 
Join Date: Jun 2007
Posts: 99
#9: Apr 22 '08

re: Call was rejected by callee -


Quote:

Originally Posted by acoder

So does this error occur whenever you create a new ActiveX object?

Yes when work with ActiveX to generate letters using mail merge
acoder's Avatar
Site Moderator
 
Join Date: Nov 2006
Location: UK
Posts: 14,581
#10: Apr 22 '08

re: Call was rejected by callee -


Select Tools --> Options --> Security tab --> Custom Level... button.

Make sure this is only set for trusted sites or Local intranet.

Then look at the ActiveX options and enable the disabled options, e.g. Initialize and script ActiveX control not marked as safe for scripting.
Reply