Article View: borland.public.jbuilder.java.language
Article #18797Help! Problem calling Crystal report engine
From: Rex
Date: Fri, 01 May 1998 00:00
Date: Fri, 01 May 1998 00:00
28 lines
1322 bytes
1322 bytes
I've been trying to run Crystal reports using the Crystal's report engine
using native calls.
I get an 'Unsatisfied link error:' when I try to invoke native methods.
I've tested the calls using the Powerbuilder and they worked.
The class I wrote looks like this:
package mypackage;
import java.lang.*;
class CrystalPrintClass {
//Declare native methods
public native boolean PEOpenEngine();
public native boolean PECloseEngine();
//etc.
static{
//Load the DLL
System.loadLibrary("CRPE32");
}
}
I used the following code from the application to access the DLL:
//some other code
CrystalPrintClass crystal;
crystal = new CrystalPrintClass(); //Success
breturnvalue = crystal.PEOpenEngine(); //This fails - I get an
'Unsatisfied link error: PEOpenEngine
Technical Details
Message-ID:
<6iap0u$hf74@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,106b40dbaf48218a,start X-Google-Attributes: gidf74b3,public From: "Rex" <rex.bustria@synergy-int.co.nz> Subject: Help! Problem calling Crystal report engine Date: 1998/05/01 Message-ID: <6iap0u$hf74@forums.borland.com> X-Deja-AN: 349242349 X-MimeOLE: Produced By Microsoft MimeOLE V4.71.1712.3 Organization: Another Netscape Collabra Server User Newsgroups: borland.public.jbuilder.java.language