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

MS world Mail merge at runtime

Raj
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(St ring
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?
Nov 17 '05 #1
4 1737
Is it the same version of word, and does it have the interop assemblies
installed?

regards

Ronnie

"Raj" wrote:
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(St ring
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?

Nov 17 '05 #2
Raj
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" wrote:
Is it the same version of word, and does it have the interop assemblies
installed?

regards

Ronnie

"Raj" wrote:
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(St ring
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?


--
Sent via .NET Newsgroups
http://www.dotnetnewsgroups.com
Nov 17 '05 #3
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
Nov 17 '05 #4
Raj
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

"Ronnie Edgar" wrote:
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

Nov 17 '05 #5

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

Similar topics

2
by: William Wisnieski | last post by:
Hi Everyone, Access 2000 I have some code behind a button that performs a word merge with a query data source. The merge works fine. But what I'd like to do somehow is after the merge is...
2
by: Aaron | last post by:
hello, i am perfoming a mail merge with the following code. Public Function MergeIt() Dim objWord As Object Set objWord = GetObject("C:\MyMerge.doc", "Word.Document") ' Make Word visible....
1
by: Lisa | last post by:
I have a query named QryDept where one of the fields is DeptID. The query is used for the data source of a mail merge letter. I would like to control which department is to get the mail merge...
3
by: Andy Davis | last post by:
I have set up a mail merge document in Word 2003 which gets its data from my Access 2000 database. I want to set up a button on a form that: 1. runs the query to provide the dat for the merge...
4
by: lesperancer | last post by:
I have 3 tables (office97) tblQuote quoteNbr tblDetails ( quote : 1 <-> M: quoteDetails) quoteNbr detailLine product value
6
by: crealesmith | last post by:
Firstly, I have no problem with mail merging to Word, VB code for that works perfectly. On one mail merge I need to merge 15 fields of data that are from 3 seperate records. The 3 records are all...
1
by: mr k | last post by:
Hi, I wanted to use mail merge with forms but Text form fields are not retained during mail merge in Word, I got the code from Microsoft but it doesn't remember the text form field options such as...
9
by: atc | last post by:
Sorry but another question from a newbie. I am trying to create a mail merge based on a query. I have a button on a form (form is based on query). I found this code in one of the discussions and...
7
by: =?Utf-8?B?QmFkaXM=?= | last post by:
Hi, I'm trying to follow a mail merging example in C#.Net that I got from: http://support.microsoft.com/default.aspx/kb/301659 and in one the methods: Word.Application wrdApp; Word._Document...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: 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
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...

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.