How to add Key and MergeField dynamically into WordProcessing OpenXML document C# program
XML / XSL
1
Posts
1
Posters
14
Views
1
Watching
-
Hi Friends, I have a scenario where need to generate WordProcessing Report Here is my template sample below First Name: «FirstName» Last Name: «LastName» Here First Name and Last Name are keys and corresponding Merge-fields are («FirstName» & «LastName») Now I have to generate a report where these key and merge-fields need to repeat number of times according to the Employee record. Example if there are fice employees in database, i need to show all five employees record one after other with FirstName and LastName in sequence. I tried with below code. But this wont help because the key and data value does not show as per template configuration. Can you please tell me how can i achieve this in C#? Thanks in advance.