Hi ,
I am new to crystal report, please help. Recently, I work with Crystal report 9 and try to casting the class from IInfoObject to IFolder object
IInfoObject oInfoObjects =
(IInfoObjects) iStore.query(“Select * from CI_INFOOBJECTS Where ‘CrystalEnterprise.Report’ And SI_INSTANCE = 0 And SI_NAME=’” + repName + “’”);
oInfoObject = (IInfoObject) oInfoObjects.get(0);
IFolder oFolder = (IFolder)oInfoObject;
The last line causes problem because ClassCastException is thrown??
I check the Crystal report API and know that IFolder extends IInfoObject and both of them are interface classes, so the last line supposes to be OK. However the classCastExeption is throwed. I check the jar file and seeing that the IInfoObject extends Object not IInfoObject.
even if I try:
IFolder oFolder = (IFolder)oInfoObjects.get(0);
give me ClassCastException also
I guess that because the ceplugins.jar is wrong or something else.
The question is How can I have the IFolder?? and where I can download the ceplugins.jar file for Crystal9
Thanks
ccvu (BOB member since 2006-06-20)