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

Free Support Forum - aspose.com

One question on IMailMergeDataSource APIs

Java class IMailMergeDataSource has a API as:
public boolean getValue(String fieldName, Object[] fieldValue)

I think it’s confused. Would it not be better if it become:
public Object[] getValue(String fieldName)
if return object is null, it will equal to current API return false.


Hi

<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks for your suggestion. But data source can contain null values. So there can be a situation when value is null, but getValue method should return true to tell Mail Merge Engine that data source contains this field.

Best regards,