linkedinfacebooktwittermenuarrow-up

GemBox Support Forum

Load data from custom json to MailMerge.Execute(...)

There are a way for loading data from a json with multiple levels and arrays? Seems mail.merge only accept <Dictionary<string, string>>

Hi,

On the following link, under the “Mail merge data sources” section, you can find a list of supported data source types:
https://www.gemboxsoftware.com/document/docs/mail-merge.html#mail-merge-data-sources

Try to serialize your JSON into an object and pass that as a data source.
For such custom objects, the reflection will be used to retrieve property/column values based on their names.

I hope this helps.

Regards,
Mario