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.
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.
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.
I found the source code from below link. my actual requirement is like this.
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
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.
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.