I have my own implementation of IMailMergeDataSource, in which I override the getValue method. What’s the best way to still be able to use my MappedDataFields? When getValue is called, the fieldname passed on is the one from the document, and in my case this sometimes is different from what I have in my datasource.
Haven’t found this anywhere on the forum/documentation.
Thanks in advance
Thanks for your request. I think, in your case, you can pass collection of mapped fields as one of parameters to constructor of your custom mail merge data source. Then, on GetValue method, you can check whether collection of mapped fields contains the current field name and if so, use the mapped name.
Hope this helps.