Skip to Content
0
Former Member
Dec 07, 2009 at 09:02 AM

Error Finding JNDI Name

53 Views

I have report (.rpt) files already created using ms access database(.mdb). Now Im viewing those reports using JRC. Im using thick client version ie swing based (not web based). Im able to load and view a report (report has 3 columns from a table called customer). it shows perfect.

But the problem is when i try to view a report where the .mdb ms access database is password protected. Im giving logon credentials after opening a reporting document. below is code snippet

// Open reports.

ReportClientDocument reportClientDoc = new ReportClientDocument();

reportClientDoc.open(REPORT_NAME, 0);

reportClientDoc.getDatabaseController().logon(null, "pwd1");

// Launch JFrame that contains the report viewer.

new ReportViewerFrame(reportClientDoc);

for this, it says "Error finding JNDI name (E:\Work-Projects\JRCViewReport\src\samplel.mdb)

Please guide me to solve this problem.

Thanks in Advance