Jump to content
We've recently updated our Privacy Statement, available here ×

KF24

Members
  • Posts

    13
  • Joined

  • Last visited

KF24's Achievements

Apprentice

Apprentice (3/14)

  • First Post Rare
  • Collaborator Rare
  • Conversation Starter Rare
  • Week One Done
  • One Month Later

Recent Badges

0

Reputation

  1. Hi there, I'm aware of the export functionality for creating docx or pdf files from a report. But is there a way to do it the other way around? Read (import) a docx or pdf file or whatever and have a report created from it? The report should look the same as the imported document. That would be really neat. Thanx in advance, Stan
  2. Hi there, i would like to use the JRTxtExporter from ireport.jar in a product which uses jasperreports only. is that possible in terms of license? greetz kf24
  3. My problem is solved. I (could) use the it.businesslogic.ireport.export.JRTxtExporter provided with iReport which is a "really simple exporter" (quote by the author of this exporter class). From my view it is exporting a report much better than the JRTextExporter provided with the jasperreports-x.x.x.jar. JasperSoft should really consider adding the JRTxtExporter to the jasperreports library as a good alternative. All who will use the JRTxtExporter as well should pay attention to the variables declared at the beginning of the code. They set a char width of 10 and a height of 20 which can not be changed from outside (without modifying the code). So a text element in the report should have a height of 20 pixels (exported to one line in the text) and a width of a multiple of 10 (for width/10 = n chars in a line). And there you go, you get pretty much the results you designed the report for. Greetz kf24
  4. Hi there, i build a report suitable for text export. i tried to consider all hints given by jaspersoft. the problem i have is about the height. i set the report dimensions to 1000x1000 pixels and set the exporter parameter to character width and height of 10. i used the font "monospaced" size 12 just like in the demo. i set the text elements in the report to height 20. the width of the created text file is ok. but i got problems with the height: it is very difficult to control empty lines between text. i would like the information in the detail part to be row by row. but it seems to be working only with an empty line between the rows. so i got the pattern: 1 Data Data Data 2 <empty line> 3 Data Data Data 4 <emptyline> 5 Data Data Data ... Sometimes there are more than one empty line between the data. Even though I set the text elements in the report without any space above or below in the detail part. i just can´t find the right adjustment. does anyone know how to achieve my wishes? Like: 1 Data Data Data 2 Data Data Data 3 Data Data Data Thanks for any advice! Greets kf24
  5. Hi, I solved my problem. The way is to create a chart via scriptlet and pass it to a variable placed in the report: Code: import net.sf.jasperreports.renderers.JCommonDrawableRenderer; import org.jfree.chart.ChartFactory; import org.jfree.chart.JFreeChart; import org.jfree.chart.plot.PiePlot3D; import org.jfree.data.general.DefaultPieDataset; import org.jfree.util.Rotation; DefaultPieDataset dataset = new DefaultPieDataset(); dataset.setValue("Val1", new Integer(variableValue)); JFreeChart chart = ChartFactory.createPieChart3D( null, dataset, true, false, false ); // title, dataset, legend, tooltips, urls chart.setBackgroundPaint(java.awt.Color.white); PiePlot3D plot = (PiePlot3D) chart.getPlot(); plot.setStartAngle(290); plot.setDirection(Rotation.CLOCKWISE); plot.setForegroundAlpha(0.7f); plot.setNoDataMessage("No data to display"«»); this.setVariableValue("Chart", new JCommonDrawableRenderer(chart)); It works fine. But a good knowledge of the JFreeChart library is needed. Hava fun! Greez KF24 Post edited by: KF24, at: 2008/01/30 09:02 Post edited by: KF24, at: 2008/01/30 09:03 Post edited by: KF24, at: 2008/01/30 09:04
  6. Hi, thanks Svenn for your quick response. Unfortunately I´m not using a sql datasource. I retrieve all data and have to do the analysis and calculation within the report. Is it possible to generate a new virtual datasource based on my 5 variables? So iReport could use the variables like fields? Thanks again. Greets KF24
  7. Hi, is it possible to use variables as keys in a pie chart instead of fields? I´m calculating the top five values of my data and store them in variables each. So I got 5 variables I´d like to illustrate in a pie chart. Thanks for any help! Greets KF24 Post edited by: KF24, at: 2008/01/25 13:31 Post edited by: KF24, at: 2008/01/25 13:31
  8. Hi folks, how can I best describe the difference between columnar and tabular layout when using the wizard for instance? thanks in advance! Greetz KF24
  9. Hi, I´m getting a ClassCastException when pressing the "asc/desc"-button in the SortFieldDialog. The exception looks as follows: Code:java.lang.ClassCastException at it.businesslogic.ireport.Report.subDatasetObjectChanged(Report.java:1790) at it.businesslogic.ireport.SubDataset.fireSubDatasetObjectChangedListenerSubDatasetObjectChanged(SubDataset.java:303) at it.businesslogic.ireport.gui.subdataset.SortFieldsDialog.jButtonAscDescActionPerformed(SortFieldsDialog.java:313) at it.businesslogic.ireport.gui.subdataset.SortFieldsDialog.access$8(SortFieldsDialog.java:305) at it.businesslogic.ireport.gui.subdataset.SortFieldsDialog$9.actionPerformed(SortFieldsDialog.java:255) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786) I know what/where the problems is. In line 1790 of the "subDatasetObjectChanged"-method there is a cast from object to JRParameter. But when pressing the button a SortField is given instead of a JRParameter. This happens because in the class "SubDatasetObjectChangedEvent" the integer "parameter" has got the same value as "sortfield". Is that a mistake or wanted? If it is not wanted can I just put a workaround into the code? Thanks for any help in advance! KF24
  10. Thanks for your quick reply. Unfortunately it did not help. German language is set in that menu. I attached a screenshot so you can see what I mean, what happens when I restart iReport in my app. Languages get mixed up: size=400]http://www.jasperforge.org/components/com_joomlaboard/uploaded/images/screen.jpg Post edited by: KF24, at: 2007/09/12 13:54
  11. Hello, I have embedded iReport1.3.3 into my application. The first time I start iReport within my application it works fine (in German language). But when I start it again later on, it is not loading the German language properly. Only some parts of iReport, dialogs mainly, do have some German in it. In terms of embedding, my application just calls iReports main(). So I didnt realize it in an internal frame yet. Does anyone have a suggestion how to reload the language correctly? Thanks in advance. kf24
  12. Hello everyone, i´m a new to this forum so please back off a little ;) I´m trying to embed iReport1.3.3 to an existing application. I accomplished so far, but when I start iReport within our application, it just shows the main frame and its toolbars. And when I try to activate all docking panes in the view menu, I keep getting this exception: <code> java.lang.NullPointerException at org.flexdock.docking.defaults.DefaultDockingStrategy.findRegion(DefaultDockingStrategy.java:189) at org.flexdock.docking.defaults.DefaultDockingStrategy.getSibling(DefaultDockingStrategy.java:107) at org.flexdock.view.View.getSibling(View.java:371) at it.businesslogic.ireport.util.Misc.dockAt(Misc.java:1434) at it.businesslogic.ireport.gui.MainFrame.jCheckBoxMenuItemExplorerActionPerformed(MainFrame.java:6477) at it.businesslogic.ireport.gui.MainFrame.access$122(MainFrame.java:6473) at it.businesslogic.ireport.gui.MainFrame$124.actionPerformed(MainFrame.java:3204) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786) at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1839) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420) at javax.swing.JToggleButton$ToggleButtonModel.setPressed(JToggleButton.java:273) at javax.swing.AbstractButton.doClick(AbstractButton.java:289) at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1113) at javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(BasicMenuItemUI.java:943) at java.awt.Component.processMouseEvent(Component.java:5100) at java.awt.Component.processEvent(Component.java:4897) at java.awt.Container.processEvent(Container.java:1569) at java.awt.Component.dispatchEventImpl(Component.java:3615) at java.awt.Container.dispatchEventImpl(Container.java:1627) at java.awt.Component.dispatchEvent(Component.java:3477) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128) at java.awt.Container.dispatchEventImpl(Container.java:1613) at java.awt.Window.dispatchEventImpl(Window.java:1606) at java.awt.Component.dispatchEvent(Component.java:3477) at java.awt.EventQueue.dispatchEvent(EventQueue.java:456) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137) at java.awt.EventDispatchThread.run(EventDispatchThread.java:100) </code> Can anyone help me out with this? Thanks a lot in advance! Byes KF24
×
×
  • Create New...