Regarding Mail Merge :- Index was out of range

Hi,

I am using to product for performing mail merge. i create a document with mail merge fields.

I am getting error when i am trying to Execute group. I am using following Coding:-

document.MailMerge.ExecuteGroup(pdt)

and i m getting following error:

"Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index"

Stack Trace is following :-
" at System.Collections.ArrayList.get_Item(Int32 index)
at Syncfusion.DocIO.DLS.ParagraphItemCollection.get_Item(Int32 index)
at Syncfusion.DocIO.DLS.MailMerge.GroupSelector.FindInBodyItems(BodyItemCollection bodyItems)
at Syncfusion.DocIO.DLS.MailMerge.GroupSelector.ProcessGroups(WTextBody body, IRowsEnumerator rowsEnum)
at Syncfusion.DocIO.DLS.MailMerge.ExecuteGroup(WSection section, IRowsEnumerator rowsEnum)
at Syncfusion.DocIO.DLS.MailMerge.ExecuteGroup(IRowsEnumerator rowsEnum)
at Syncfusion.DocIO.DLS.MailMerge.ExecuteGroup(DataTable table)
at SDP.Base.QueryBuilder.MailMergeExecuter.ExecuteGrp(WordDocument document, MergeTable MT, DataSet DSet, WordDocument orgDoc, WordDocument& doc1, Int32 counter)"

Can you please guide me how to resolve this issue.

Thanks,

Gurpreet Madaan




1 Reply

BP Bhuvaneswari P Syncfusion Team July 18, 2008 11:11 AM UTC

Hi Gurpreet,

Thank you for your interest in Syncfusion products.

I am afraid that I am not able to reproduce the issue. Could you please provide your sample to reproduce the issue, so that we would be able to reproduce the issue in our end and investigate more on this issue.

Please let me know if you have any questions.

Best Regards,
Bhuvana



Loader.
Up arrow icon