msafi
Members-
Posts
18 -
Joined
-
Last visited
msafi's Achievements
-
Any thoughts or suggestion on this, i really need this done. Since my reports are based on brand colors.
-
Hi I have Pie Chart displayed with custom series color that is set in the chart customizer class. And i am setting ten different series color using the method piePlot.setSectionPaint() from 0-9. When the report is displayed if the series count is less then five i get different colors the way i set it, but if the series count exceeds five i get repeated colors from the first five custom colors. Any idea why this happening? I am using jasper version 3.6 Thanks
-
Hi, I am trying to pass a sorted list to a sub report through datasource expression. When i print the list elements before passing it to the subreport the elemnts are in sorted order. But in the final subreport the list elements are not displayed in the sort order. Any thoughts? Given below is what i have in the main jrxml and the bean. Code:<dataSourceExpression><![CDATA[new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource( $F{answers})]]></dataSourceExpression>And in my bean class for getAnswers() method i have thispublic List<PieType> getAnswers() { Collections.sort(answers); //when i print the list items here it is in the sorted order return answers; }
-
reading more on forum looks like there is no straight way of doing this, can some one help me here on, what customization needs to be done if i need to change my seriesColor at runtime (i.e) what base classes that i need to modify?
-
Hi How to set dynamic colors for a bar chart, my plot looks likes this, the hardcoding of the color works, but i wanted to pass a set of colors as parameters and use them in plot series, is that something possible? Please Suggest. <bar3DPlot isShowLabels="true"> <plot> <!--<seriesColor seriesOrder="0" color="#3A6E90"/>--> <seriesColor seriesOrder="0" color="$P{primary_color}"/> <seriesColor seriesOrder="1" color="#F58029"/> <seriesColor seriesOrder="2" color="#53BDEC"/> <seriesColor seriesOrder="3" color="#6A8098"/> <seriesColor seriesOrder="4" color="#7F8084"/> </plot>
-
Hi Does any one have any thoughts on this, if i have solution for this it will save me lots of time then working with other means of datasource. since our project already has these XMLs. I have attached my code and JRXMLs in my last post. Please suggest.
-
Table works wonderful now its my bad i was providing a datasource in my java app that does not have data for the table, So stupid :-)
-
Hi Does any one have any thoughts on this? Please suggest, I need to get this done ASAP
-
Hi I tried to do something similar to table example provided in jasper projects 3.6.0 /demo/sample, Every things works fine and i am able to preview the table from iReport in both html and PDF. But when i try to use the same .jasper file compiled by iReport in my appilcation i get an empty report, Iam i missing something here? The table example uses properties like <property name="net.sf.jasperreports.export.pdf.tagged" value="true"/> <property name="net.sf.jasperreports.export.pdf.tag.language" value="EN-US"/> Do i need additional jar files to run this outside of iReport? Please help its urgent. My .jrxml is attached. The only difference is i use jasperreports 3.5.3 in my application, where as iReport 3.6.0 uses jasper 3.6.0
-
Hi I need to use my custom chart theme in my web application, i created the theme in Ireport 3.6 and made it a .jar file everything worked fine in IReport, Now i need to include my theme in the java web application. Any help on the steps how to use the custom theme in the app? I tried just adding the .jar file i generated in iReport to my to my /lib directory but that dosen't work? Do i need to do any additional step? Thanks Safi
-
Hi Is is possible to extend the detail band height beyond 760 pixels (iReport dosen't allow me to do that) i have 4 subreports in my parent report and all these subreports needs to be placed with correct spacing between them so one dosen'nt get dispalyed on top of other, but to do that i cannot expand my band height beyond 760 pixels. And ideas?
-
Hi I wanted to display data in a simple table format like 2 rows and 3 columns etc.., i couldn't find any direct component in iReport for table format. Can someone help me here how to display a table? I read the forums for suggestion like using text boxes and lines we can get a table like format, but there are some limitations like rectangle does not display in html i used a rectangle to give background color to my heading row. getting to a table format using lines and boxes is tedious. Please suggest
-
Hi Does this mean list component cannot be used in a subreport? I wanted to display a simple table (no cross tab or total columns) format data in a subreport, what are my options here? Please suggest i was trying to use a list component in a subreport, but i don't know how i can pass a java bean collection to it.
-
Hi I get query.JRXPathQueryExecuter The supplied org.w3c.dom.Document object is null when i pass the documents as parameters, java code is given below. Please help In the Main Report: <parameter name="activityDoc" class="org.w3c.dom.Document"/> <parameter name="visitsDoc" class="org.w3c.dom.Document"/> <detail> <band height="364" splitType="Stretch"> <subreport> <reportElement x="34" y="13" width="413" height="100"/> <subreportParameter name="XML_DATA_DOCUMENT"> <subreportParameterExpression>$P{activityDoc}</subreportParameterExpression> </subreportParameter> <subreportExpression class="java.lang.String"><![CDATA[$P{SUBREPORT_DIR} + "MainXMLReport_activity.jasper"]]></subreportExpression> </subreport> <subreport> <reportElement x="34" y="146" width="413" height="100"/> <subreportParameter name="XML_DATA_DOCUMENT"> <subreportParameterExpression>$P{visitsDoc}</subreportParameterExpression> </subreportParameter> <subreportExpression class="java.lang.String"><![CDATA[$P{SUBREPORT_DIR} + "MainXMLReport_visits.jasper"]]></subreportExpression> </subreport> </band> </detail> In My sub-report: <queryString language="xPath"> <![CDATA[/response/group/data]]> </queryString> <field name="monthName" class="java.lang.String"> <fieldDescription><![CDATA[ancestor::group/@name]]></fieldDescription> </field> <field name="week" class="java.lang.String"> <fieldDescription><![CDATA[@name]]></fieldDescription> </field> <field name="weekCount" class="java.lang.Integer"> <fieldDescription><![CDATA[@value]]></fieldDescription> </field> Code:Java Code:ServletOutputStream stream = response.getHTTPServletResponse().getOutputStream(); response.getHTTPServletResponse().setContentType("application/pdf");String jasperPath = "http://localhost:8080/reports/MainXMLReport.jasper";URL jasperUrl = new URL(jasperPath);Document activityByMonthDoc = JRXmlUtils.parse(JRLoader.getLocationInputStream("Url"));//url to load my xml document Document keyVisitsDoc = JRXmlUtils.parse(JRLoader.getLocationInputStream("Url")); Map params = new HashMap(); params.put("activityDoc", activityByMonthDoc); params.put("visitsDoc", keyVisitsDoc); JasperRunManager.runReportToPdfStream(jasperUrl.openStream(), stream, params); stream.flush();stream.close();
-
Hi Can someone help me on this, i need this done ASAP. I wanted to know if this is doable?. Can i pass two XML_DATA_DOCUMENT as param to my main report? If yes, how to i differnetiate them when i pass it back to my sub-report. Since the query executor factory expects the Param name to be XML_DATA_DOCUMENT by default.