IMailMergeDataSource.getValue problem

Hi, i downloaded version 18.3 of Aspose words, but interface IMailMergeDataSource changed… and the method getValue has now following signature:

public boolean getValue(String string, zz95 zz95) throws Exception;

in previous versions the signature was as follows:

public boolean getValue(String fieldName, Object[] fieldValue) throws Exception

My code doesnt compile anymore…what should i do ??
thanks
Simone

@simone.padovan,

Thanks for your inquiry. We have tested the scenario and have managed to reproduce the same issue at our side. For the sake of correction, we have logged this problem in our issue tracking system as WORDSJAVA-1755. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.

Hi, i see that the issue is closed but the problem still exists in version 18.4 …

Thanks

Simone

@simone.padovan,

Thanks for your inquiry. This issue has been resolved in latest version of Aspose.Words for Java 18.4.

The signature of getValue method is changed:
public boolean getValue(final String field, final Object[] value)

The new signature of this method is:
public boolean getValue(String var1, Ref<Object> value)

You can use com.aspose.words.ref.Ref as shown below.

public boolean getValue(String s, com.aspose.words.ref.Ref<Object> ref) throws Exception {
 ref.set("new value");
 return false;
}

The issues you have found earlier (filed as WORDSJAVA-1755) have been fixed in this Aspose.Words for .NET 18.5 update and this Aspose.Words for Java 18.5 update.