We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Datatable for merge ( beans or datalist)

Is the only way to populate a Datatable using a resultset. We need to populate this from a List or a Map, or javabeans. If it is ,doesn’t this mean that the Datatable is only populated by sql? Is there any other class for merging in a table for the word document without using a ResultSet ?



Hi Marcus,


Thanks for your inquiry. To be able to use a custom data source, you need to implement IMailMergeDataSource interface. Please also check the following article:
http://www.aspose.com/docs/display/wordsjava/How+to++Mail+Merge+from+XML+using+IMailMergeDataSource

Moreover, you can get useful example projects from Aspose.Words for Java GitHub repository.
https://github.com/asposewords/Aspose_Words_Java

I hope, this helps.

Best regards,

Hi,

thanks, it works
cheers

Hi Yes this works now,

cheers