Free Support Forum - aspose.com

Need help in Mail Merge

Hi,

We are creating a mail merge document with the data. Here, I am passing one non-merge field. How can I pass non-merge field to my merge document.

For ex:

I am displaying employee name and departments for that employee. My merge document will have only one employee name and employee address of each page. i,e) There is no duplication in employee name. The employee name should be displayed only in my first page not for all the page. Please let me know how can i achive this.

I am pulling my head becasue of this issue for 2 days.

Please let me know the answer as soon as possible.

Hi<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks for your request. Could you please attach your template for testing and also create the document using MS Word that will show me how the output document should looks like? I will investigate this issue and try to help you.

Best regards

Hi,

I found the source code from below link. my actual requirement is like this.

http://www.aspose.com/community/forums/126870/how-to-repeat-some-table-fields-but-not-others/showthread.aspx#126870

My problem is, I am not able to use this code in my application..

doc.MailMerge.MergeField += new MergeFieldEventHandler(HandleMergeField)

I'm not getting doc.MailMerge.MergeField property from doc.MailMerge

Should i import any other class . Please help me out.

In my template the <> column should be displayed only once in the document

Hi<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks for your request. If you use VB then you should use the following line to add MergeField event handler:

AddHandler doc.MailMerge.MergeField, AddressOf HandleMyMergeField

Hope this helps.

Best regards.

Hi,

I found the solution myslef and done the job yesterday. You are doing a wonderful support.

I never seen this support before in any site.

Thanks you very much.