on 03-05-2007 9:30 PM
<p>Dear all, </p><p>trying to use JRC to export to pdf from a resultset, it ran but return with this error.</p><p>ERROR - JRCAgent1 received a request that cannot be handled by the JRC<br />ERROR - JRCAgent1 detected an exception: Currently not implemented in the Java Reporting Component</p><p>ReportClientDocument reportClientDoc = new ReportClientDocument();</p><p>reportClientDoc.open(REPORT_NAME, 0);</p><p>reportClientDoc.getDatabaseController().setDataSource(rs, "rpt01", "abc");</p><p>// Did some debugging and the error is returned here</p><p>ByteArrayInputStream byteArrayInputStream = (ByteArrayInputStream)reportClientDoc.getPrintOutputController().export(ReportExportFormat.PDF);</p><p>reportClientDoc.close();</p><p>Any help is very much appreicated, thanks.</p>
<p> </p><p>The "Currently not implemented in the JRC" is likely not the cause of your issue. That log error message is wrong - some functionality was moved in the JRC, but they didn't remove the logging. It's invoked when you do a setDataSource or setTableLocation method call. </p><p>Do you get a different error?</p><p>What do you do with the ByteArrayInputStream after you get it? Do you save the contents to a file?</p><p>TUeda </p>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.