Jump to content
Changes to the Jaspersoft community edition download ×

stopbugginme

Members
  • Posts

    20
  • Joined

  • Last visited

 Content Type 

Profiles

Forum

Events

Featured Visualizations

Knowledge Base

Documentation (PDF Downloads)

Blog

Documentation (Test Area)

Documentation

Dr. Jaspersoft Webinar Series

Downloads

Everything posted by stopbugginme

  1. With the hotline of elba.at i had found a workaround now: The printing resolution must be symmetrical. (example 600x600 dpi) This works if you do following: set at Printer configuration in advanced settings printing text always black and print quality to "normal" that works now for me. mke@gmx.at Please excuse the broken english because i´m speaking german.
  2. Hello! I´m having exaktly the same problem with the "ELBA" application witch is also using Jasper reports. I use Windows XP. with a HP Officejet Pro 8500a Plus A910 printer. previously i used a HP OfficeJet 7580 and there was no problem with Printing from Elba. Do you allready have a solution for this problem? Michael mke@gmx.at
  3. Code:import java.text.NumberFormat; import org.jfree.chart.JFreeChart; import org.jfree.chart.labels.AbstractCategoryItemLabelGenerator; import org.jfree.chart.labels.CategoryItemLabelGenerator; import org.jfree.chart.plot.CategoryPlot; import org.jfree.chart.renderer.category.LineAndShapeRenderer; import org.jfree.data.category.CategoryDataset; import net.sf.jasperreports.engine.JRAbstractChartCustomizer; import net.sf.jasperreports.engine.JRChart; /** * @author mdahlman This chart customizer allows the report developer to set the * following JFreeChart property which is not otherwise set-able in * iReport: * * Tick Label Font * * This property applies only to Pie plots. Charts that do not use pie * plots will ignore these properties. The properties should be set * using the "Properties expressions" field in iReport. This results in * .jrxml like the following: * * <property name="TickLabelFontName" value="Verdana"/> <property * name="TickLabelFontStyle" value="Font.PLAIN"/> <property * name="TickLabelFontSize" value="8"/> * */ public class CustomizedLineChart extends JRAbstractChartCustomizer { @Override public void customize(JFreeChart chart, JRChart jasperChart) { // TODO Auto-generated method stub CategoryPlot categoryPlot = (CategoryPlot) chart.getPlot(); LineAndShapeRenderer lineAndShapeRenderer = (LineAndShapeRenderer) categoryPlot.getRenderer(); lineAndShapeRenderer.setBaseItemLabelGenerator(new CustomLabelGenerator()); lineAndShapeRenderer.setBaseItemLabelsVisible(true); } // Clase customizada, para implementar la visibilidad de los valores del grafico static class CustomLabelGenerator extends AbstractCategoryItemLabelGenerator implements CategoryItemLabelGenerator { /** * Creates a new generator that only displays labels that are greater * than or equal to the threshold value. * * @param threshold the threshold value. */ public CustomLabelGenerator() { super("", NumberFormat.getInstance()); } /** * Generates a label for the specified item. The label is typically a * formatted version of the data value, but any text can be used. * * @param dataset the dataset (<code>null</code> not permitted). * @param series the series index (zero-based). * @param category the category index (zero-based). * * @return the label (possibly <code>null</code>). */ public String generateLabel(CategoryDataset dataset, int series,int category) { String result = null; Number value = dataset.getValue(series, category); result = value.toString(); // could apply formatting here return result; } /* (non Javadoc) * @see org.jfree.chart.labels.CategoryItemLabelGenerator#generateRowLabel(org.jfree.data.category.CategoryDataset, int) */ public String generateRowLabel(CategoryDataset arg0, int arg1) { // TODO Stub del metodo generado automaticamente return null; } /* (non Javadoc) * @see org.jfree.chart.labels.CategoryItemLabelGenerator#generateColumnLabel(org.jfree.data.category.CategoryDataset, int) */ public String generateColumnLabel(CategoryDataset arg0, int arg1) { // TODO Stub del metodo generado automaticamente return null; } } }
  4. Hi all, Is it possible to add a label in each point in a Line Chart? In case i have to customize the chart...is there any example on how to do it? I guess this is a common issue, how did tyou solve this?
  5. Hi all, Is it possible to add a label in each point in a Line Chart? In case i have to customize the chart...is there any example on how to do it? I guess this is a common issue, how did tyou solve this?
  6. Hi all, I've got a jsp with some checkboxes...counting all, they are like around 40 checkboxes. Each checkbox identifies a variable that must be shown in a chart. The requirement is that depending the amount of variables checked, i have to show a report with the chart concerning that variable. So if all the checkboxes are checked, a have to show the report with a chart for each variable checked. I know that i can achieve that creating a subreport for each variable, creating a select to retrieve data for each variable and in case the data retrieved is null, not to show the subreport band(within detail band). That would be ok, but i dont want to create a report with 40 subreports. Is there any other way to create only one subreport and do this? I believe its impossible to create subreports dynamically due to the fact that the reports are compiled before being called. Thank you.
  7. Hello. I need to make a very complex report, which I don't know, at design time, how many data (columns and rows) the report will have to show. I've found that crosstabs would fit my problem, but I'm facing a lot of difficulties. I need the report to show each table in a different page. I've tried to have lots of detail bands, each one with a subreport with a crosstab in it, separated by page break elements; and I've tried to have a lot of crosstabs, in the same report summary, each one separated by page break elements too. None o those solutions worked fine: in the first one, the report doesn't show all the data in the crosstab, actually it shows only the first subreport (and, yes, I've configured the datasource for each subreport); in the second solution, configuring different subdatasets for each crosstab does not work at all, but when I use the same datasource it seems to work fine. I'm using a simple JRBeanCollectionDataSource to fill the report data, and today, when I added more than two objects into the collection (!), I received the following exception: java.lang.ArrayIndexOutOfBoundsException: 1 at com.apple.laf.AquaTabbedPaneTabState.relayoutForScrolling(AquaTabbedPaneTabState.java:151) at com.apple.laf.AquaTabbedPaneUI$AquaTruncatingTabbedPaneLayout.superCalculateTabRects(AquaTabbedPaneUI.java:1093) at com.apple.laf.AquaTabbedPaneUI$AquaTruncatingTabbedPaneLayout.calculateTabRects(AquaTabbedPaneUI.java:983) at com.apple.laf.AquaTabbedPaneCopyFromBasicUI$TabbedPaneLayout.calculateLayoutInfo(AquaTabbedPaneCopyFromBasicUI.java:2328) at com.apple.laf.AquaTabbedPaneCopyFromBasicUI$TabbedPaneLayout.layoutContainer(AquaTabbedPaneCopyFromBasicUI.java:2232) at java.awt.Container.layout(Container.java:1421) at java.awt.Container.doLayout(Container.java:1410) at java.awt.Container.validateTree(Container.java:1507) at java.awt.Container.validateTree(Container.java:1513) at java.awt.Container.validateTree(Container.java:1513) at java.awt.Container.validateTree(Container.java:1513) at java.awt.Container.validate(Container.java:1480) at javax.swing.RepaintManager.validateInvalidComponents(RepaintManager.java:669) [catch] at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:124) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) at java.awt.EventQueue.dispatchEvent(EventQueue.java:633) at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:104) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188) at java.awt.EventDispatchThread.run(EventDispatchThread.java:122) I'm desperate. Really. I'm trying to make this report for a week now, and really don't know what to do anymore. Has anybody a suggest to solve my problem or something?
  8. In my case it happens because I have a "Keep together" group inside the "Reprint header" group. In the source code there is quite suspicious "else if". Does anybody have any ideas how to fix it? Code: (Jasper Reports v 3.7.3) Post Edited by stopbugginme at 07/21/2010 15:07
  9. lucianc Wrote: You can have explicit Excel sheet breaks by using the net.sf.jasperreports.export.xls.break.before.row and net.sf.jasperreports.export.xls.break.after.row properties on report elements. HTH, Lucian Hi. could anybody paste the code to use this properties. I don't know how i should use them. Thank's a lot
  10. Hi fellows, i'm working with ireport a month ago. I have a XML datasource which i group by a field. I set "Start on a new page" flag's group true. So, if i build a pdf report, each group creates a new page If i build an excel report, i want create a new sheet (sheet per group). Is it possible? If it is, how can i do it? Thank's a lot
  11. I don't know if it's possible, but if it is, i really appreciate your help with an example, tutorial or a simple answer. Thanks a lot.
  12. Hello fellows, i'm using jasperserver's web service to generate my reports. I've generated them succesfully, but i have a new challenge now. I want to send the datasource into the SOAP message. Something like this: Code:<SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/1999/XMLSchema"> <SOAP-ENV:Body> <request operationName="runReport" locale="en"> <argument name="RUN_OUTPUT_FORMAT">PDF</argument> <argument name="PROP_HAS_DATA">true</argument> <argument name="USE_DIME_ATTACHMENTS"><![CDATA[1]]></argument> <resourceDescriptor name="" wsType="reportUnit" uriString="/reports/myreport" /> <!-- HERE IS MY DATASOURCE. I DON'T KNOW HOW I SHOULD PUT IT --> <parameter name="datasource"> <users> <user> <name>Jack</name> <age>40</age> </user> <user> <name>Kate</name> <age>31</age> </user> <user> <name>Hugo</name> <age>33</age> </user> <user> <name>Benjamin</name> <age>49</age> </user> </users> </parameter> </request> </SOAP-ENV:Body></SOAP-ENV:Envelope>
  13. Hi everybody, I'm a newbie Jasperserver user. I'm trying run a report using the web service API. I'm using Python (with SOAPpy), but results are not successful. Here is my code: from SOAPpy import SOAPProxy, WSDL, URLopener url = "http://user:pass@localhost:8080/jasperserver/services/repository" server = SOAPProxy(url) xml = """ <request operationName="runReport" locale="en"> <argument name="RUN_OUTPUT_FORMAT">XML</argument> <argument name="USE_DIME_ATTACHMENTS"><![CDATA[1]]></argument> <resourceDescriptor name="" wsType="reportUnit" uriString="/reports/samples/AllAccounts"> <label><![CDATA[Accounts Report]]></label> </resourceDescriptor> </request> """ print server.runReport(xml) and here's is the result: Traceback (most recent call last): File "test.py", line 20, in <module> print server.runReport(xml) File "/usr/local/lib/python2.6/dist-packages/SOAPpy/Client.py", line 499, in __call__ return self.__r_call(*args, **kw) File "/usr/local/lib/python2.6/dist-packages/SOAPpy/Client.py", line 521, in __r_call self.__hd, self.__ma) File "/usr/local/lib/python2.6/dist-packages/SOAPpy/Client.py", line 424, in __call p, attrs = parseSOAPRPC(r, attrs = 1) File "/usr/local/lib/python2.6/dist-packages/SOAPpy/Parser.py", line 1077, in parseSOAPRPC t = _parseSOAP(xml_str, rules = rules) File "/usr/local/lib/python2.6/dist-packages/SOAPpy/Parser.py", line 1060, in _parseSOAP raise e xml.sax._exceptions.SAXParseException: <unknown>:1:0: not well-formed (invalid token) I've tested the web service with the php sample, but it's really complex. I just want begin with the very easiest sample in python. Thanks a lot Post Edited by stopbugginme at 02/08/2010 12:16
  14. Hi all, accessing jasper server from the web interface I'd like to set the default report output as PDF. In other words I would like to get the PDF format opened as I click on the selected report. Any help would be appreciated, Franco
  15. I'd like to integrate jasper reports in my C++ application. How should I do that? Is it necessary to have a JasperServer running or there is a way to invoke jasper-reports java library, or any other way. Any help would be greatly appreciated
  16. I've the same problem. I'd like to login to the web app via a GET http request.
  17. Hi jasperForum! I solved It! Apparently the isPrintWhenDetailOverflows="true" Flag was causing the issue (it was set on the reportElement of the subreport). Deleting it in oder to revert it to its default setting of false solves the issue and prints fully used pages! Thanks Marc Post Edited by stopbugginme at 10/21/2009 08:24
  18. Hi jasperReport-Forum! I'm a newbie and noticed a rather strange behaviour, at lest by my expectations. When I use a Subreport the first page looks fine, but on the following pages only a rather small portion of the page is used to display the data. First Page-Pictrue: (sorry, the images wouldn't upload using the forums integrated feature) img5.imagebanana.com/view/enfe6qv1/firstPage.jpg other pages. img5.imagebanana.com/view/1je515w9/secondPage.jpg The free space seems to match the space taken by the other Elements in the title of the MasterReport (the subreport is also in the Title ín Order to only execute it once). Could anybody explain my mistake? The Code: MasterReport:pastebin.com/m7138b4e7 Subreport:pastebin.com/m59835eeb Java-Main:pastebin.com/m3b9e78b5 Java-DB:pastebin.com/m7ba400b1 Java-Jasper:pastebin.com/m54d91ae3 Thanks for your help, ps, the attached Code is the SubReport, the rar contains all the files Marc Code:<?xml version="1.0" encoding="UTF-8"?><jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="sub" columnCount="2" pageWidth="595" pageHeight="842" whenNoDataType="AllSectionsNoDetail" columnWidth="250" leftMargin="0" rightMargin="0" topMargin="0" bottomMargin="0"> <field name="name" class="java.lang.String"/> <detail> <band height="13" splitType="Stretch"> <textField> <reportElement x="0" y="0" width="595" height="13"/> <textElement/> <textFieldExpression class="java.lang.String"><![CDATA[$F{name}]]></textFieldExpression> </textField> </band> </detail></jasperReport>
×
×
  • Create New...