MS world Mail merge at runtime

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have written a program which does late binding to generate mail merged
documents. Its working fine on the dveleopment machine. When I make a build
and run it on machine (framework installed) specially on NT 4 machine it
gives me the following error

*********************************************
Original Exception:

Message = Exception has been thrown by the target of an invocation.

Source = mscorlib.

Stack Trace = at System.RuntimeType.InvokeDispMethod(String name,
BindingFlags invokeAttr, Object target, Object[] args, Boolean[]
byrefModifiers, Int32 culture, String[] namedParameters)

at System.RuntimeType.InvokeMember(String name, BindingFlags invokeAttr,
Binder binder, Object target, Object[] args, ParameterModifier[] modifiers,
CultureInfo culture, String[] namedParameters)

at PPMIP.Common.CommonCode.ProcessKeyRequestLetter(String
vstrTemplateFileName, DataTable vdatMailMergeData, String vstrOutputFileName).

Target Site = System.Object InvokeDispMethod(System.String,
System.Reflection.BindingFlags, System.Object, System.Object[], Boolean[],
Int32, System.String[]).



Inner Exception:





Original Exception:

COM+ Error Code = -2147417851.

Message = The server threw an exception.

Source = .

Stack Trace = .

Target Site = .

*********************************************

I am unable to track where this is going wrong.
Can you please help me with this?
 
Is it the same version of word, and does it have the interop assemblies
installed?

regards

Ronnie
 
Hi Ronnie,

Thanx for your prompt reply.
No the version of word is not same. For this reason only I did late
binding.
Dotnet framework is installed in the running machine. What else needs to
be installed there. How do I install interop assemblies?

Regards,

Raj

Ronnie Edgar said:
Is it the same version of word, and does it have the interop assemblies
installed?

regards

Ronnie

Raj said:
I have written a program which does late binding to generate mail merged
documents. Its working fine on the dveleopment machine. When I make a build
and run it on machine (framework installed) specially on NT 4 machine it
gives me the following error

*********************************************
Original Exception:

Message = Exception has been thrown by the target of an invocation.

Source = mscorlib.

Stack Trace = at System.RuntimeType.InvokeDispMethod(String name,
BindingFlags invokeAttr, Object target, Object[] args, Boolean[]
byrefModifiers, Int32 culture, String[] namedParameters)

at System.RuntimeType.InvokeMember(String name, BindingFlags invokeAttr,
Binder binder, Object target, Object[] args, ParameterModifier[] modifiers,
CultureInfo culture, String[] namedParameters)

at PPMIP.Common.CommonCode.ProcessKeyRequestLetter(String
vstrTemplateFileName, DataTable vdatMailMergeData, String vstrOutputFileName).

Target Site = System.Object InvokeDispMethod(System.String,
System.Reflection.BindingFlags, System.Object, System.Object[], Boolean[],
Int32, System.String[]).



Inner Exception:





Original Exception:

COM+ Error Code = -2147417851.

Message = The server threw an exception.

Source = .

Stack Trace = .

Target Site = .

*********************************************

I am unable to track where this is going wrong.
Can you please help me with this?
 
Hi Raj

Insert the MS office set up disk, and run set up in the list of components
look for .net programming support or something like that.

These should be installed.

I'm not sure how it will work however with different versions of word.

regards

ronnie
 
Hi Ronnie,

You know its working very fine with all the versions of Word. Today I
started getting the error on one particular machine. There was one problem
earlier it used to give this error for the 1st time when running on any
machine after that it used to stop giving me the error. But on one particular
machine it is giving all the time but on that machine everything is installed
correctly.

I really donot know how this will be solved.

Regards
Raj
 
Back
Top