2006 IR Open Dicussion Posted September 5, 2006 Share Posted September 5, 2006 By: Anthony Presley - blurngr Scriptlets in new JasperReports don't work 2006-04-20 07:57 We are trying to upgrade from JasperReports 0.6.4 to 1.2.1, and are running into some problems with the ScriptLets generated by iReport. The error is: netDisclosuresScriptlet cannot be resolved to a type: value = (java.awt.Image)((java.awt.Image)it.businesslogic.ireport.chart.DefaultChartFactory.drawChart(new String[]{"antialias=true","tooltips=false","legend=true","chartName=Bar3D","plotOrientation=1","foregroundAlpha=0.33","valueLabel=Count","subtitle=","plotBackground=[255,255,255]","quality=1","height=633","titlePosition=1","chartBackground=[255,255,255]","width=519","serie2=SERIE_CampaignName","serie1=SERIE_DateReceived","serie0=SERIE_Count","categoryLabel=Date","title="}, (it.businesslogic.ireport.IReportScriptlet)((netDisclosuresScriptlet)parameter_REPORT_SCRIPTLET.getValue()))); We've tried recompiling these scriptlets, which compile fine. We've always had them stored on the file system relative to the JRXML file (in the same directory as them), and the classpath has not changed. We compile the reports on the fly, by the way. The <jasperReport> tag is: <jasperReport name="netDisclosures" columnCount="1" printOrder="Vertical" orientation="Portrait" pageWidth="595" pageHeight="842" columnWidth="535" columnSpacing="0" leftMargin="30" rightMargin="30" topMargin="20" bottomMargin="20" whenNoDataType="NoPages" scriptletClass="netDisclosuresScriptlet" isTitleNewPage="false" isSummaryNewPage="false"> What do I need to do to get these to work with the new JasperReports? Thanks. -- Anthony Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now