Skip to Content
0
Jul 27, 2018 at 01:34 PM

Why Casting an IInfoStore object into IDestinationPlugin is not possible?

165 Views

Hi,

I use BO 4.0, and want to use .copyToPlugin(), but a Cast is not working.

My code is:

line 1) IDestinationPlugin destPlugin = (IDestinationPlugin) boInfoStore.query("select * from ci_systemobjects where si_parentId=29 and si_name='CrystalEnterprise.SMTP' "); line 2) boDestination.copyToPlugin(destPlugin);


The following Exception happens:

com.crystaldecisions.sdk.occa.infostore.internal.InfoObjects cannot be cast to com.crystaldecisions.sdk.occa.infostore.IDestinationPlugin

Is it possible to fix it?

Thank you in advance,

Rafa