I am using demo version to generate word document.
I am using db2 database to get the data. While passing the resultset to doc.getMailMerge().execute(rs);
Getting following error.
It looks like your db2 dataset throws that exception. Maybe because it does not implement the interface of the result set properly. See it appears to be in getType(). We have tested with several datasets, but not with db2 one. At this stage only a vague workaround - avoid using that class. More detailed info a bit later.
Hi, Anand,
Can you provide additional info? ResultSet.getType() is here from jdk 1.2. What version of your db2 driver?
The simplest way to get data from an arbitrary data source is implementation of IMailMergeDataSource interface (only three methods). If your driver doesn’t support only getType() but can move a cursor and get data, you can use this option. See com.aspose.words. IMailMergeDataSource javadoc for further info.
Best Regards,
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
Enables storage, such as cookies, related to analytics.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.