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

akhanh

Members
  • Posts

    31
  • 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 akhanh

  1. For an administrator: i dont know why: if i post something one time, it create two posts. in my last posts it create four times, but i press the submit button only one time...
  2. Hi, that works very fine. For all a summary: 1. create: package tests; import net.sf.jasperreports.engine.JRAbstractChartCustomizer; import net.sf.jasperreports.engine.JRChart; import net.sf.jasperreports.engine.JRChartCustomizer; import org.jfree.chart.JFreeChart; import org.jfree.chart.axis.NumberAxis; import org.jfree.chart.plot.CategoryPlot; import org.jfree.data.Range; public class customizer extends JRAbstractChartCustomizer{ public void customize(JFreeChart jfreechart, JRChart arg1) { // Get the plot CategoryPlot plot = jfreechart.getCategoryPlot(); plot.getRangeAxis().setRange(10, 100); } } 2.: set it (see last post) in the chart the customizer class. In my example you must write tests.customize tests is the package name. Thats all and you get a y-axis range from 10 to 100. With the methods of plot (see above) you can change different values of the chart Ali Baba
  3. Hi, that works very fine. For all a summary: 1. create: package tests; import net.sf.jasperreports.engine.JRAbstractChartCustomizer; import net.sf.jasperreports.engine.JRChart; import net.sf.jasperreports.engine.JRChartCustomizer; import org.jfree.chart.JFreeChart; import org.jfree.chart.axis.NumberAxis; import org.jfree.chart.plot.CategoryPlot; import org.jfree.data.Range; public class customizer extends JRAbstractChartCustomizer{ public void customize(JFreeChart jfreechart, JRChart arg1) { // Get the plot CategoryPlot plot = jfreechart.getCategoryPlot(); plot.getRangeAxis().setRange(10, 100); } } 2.: set it (see last post) in the chart the customizer class. In my example you must write tests.customize tests is the package name. Thats all and you get a y-axis range from 10 to 100. With the methods of plot (see above) you can change different values of the chart Ali Baba
  4. HI, this could work, but my problem is to set the customizer class. I have a custumizer extends JRAbstractChartCustomizer and i try to use it with JRDesignChart i = (JRDesignChart) (jdesgn.getSummary().getElements()[0]); i.setCustomizerClass("customizer"); but i get Exception in thread "main" net.sf.jasperreports.engine.JRRuntimeException: Could not create chart customizer instance. i dont know i set the customizer class...
  5. Hi, my problem is to find the interface to get a jfreechart from JR. Do you know how i get it?
  6. Hi, i tried to change the range y-axis of a bar-chart. i create a 'class customizer implements JRChartCustomizer' a i tried to use it with ' // getchart JRDesignChart i = (JRDesignChart) (jdesgn.getSummary().getElements()[0]); i.setCustomizerClass(new customizer().toString()); ' but it do not work. What i should write in i.setCustomizerClass(new customizer().toString()); Thanks Ali Baba
  7. Hi, i tried to change the range y-axis of a bar-chart. i create a 'class customizer implements JRChartCustomizer' a i tried to use it with ' // getchart JRDesignChart i = (JRDesignChart) (jdesgn.getSummary().getElements()[0]); i.setCustomizerClass(new customizer().toString()); ' but it do not work. What i should write in i.setCustomizerClass(new customizer().toString()); Thanks Ali Baba
  8. Hi, i tried to change the range y-axis of a bar-chart. i create a 'class customizer implements JRChartCustomizer' a i tried to use it with ' // getchart JRDesignChart i = (JRDesignChart) (jdesgn.getSummary().getElements()[0]); i.setCustomizerClass(new customizer().toString()); ' but it do not work. What i should write in i.setCustomizerClass(new customizer().toString()); Thanks Ali Baba
  9. Hi, i tried to change the range y-axis of a bar-chart. i create a 'class customizer implements JRChartCustomizer' a i tried to use it with ' // getchart JRDesignChart i = (JRDesignChart) (jdesgn.getSummary().getElements()[0]); i.setCustomizerClass(new customizer().toString()); ' but it do not work. What i should write in i.setCustomizerClass(new customizer().toString()); Thanks Ali Baba
  10. Hi StackTrayce, your way is possible, but i will avoid to use awt classes. I will try to use only jasper reports api functionality, but i didnt found any class/method. Can anybody help? Thanks HA
  11. Hi all, (sorry that i posted the same in ireport forum). I need the pixel size of a String value. Can anybody help? Thanks HA
  12. Hi all, how can i get the pixel size of a Stringvalue? Thanks all HA
  13. Hi all, i have a Subreport. This includes in the columnheader the tableheader. In the detail band i have the table content. Now i write JasperDesign.setsplitallowed(true); If it works, i get sometimes in the bottom of the page ONLY the tableheader and in the next page i get again the tableheader with the content. It is possible to avoid this. If the tableheader is print in e.g. page 1 i will print minimum 1 line content... Thanks HA
  14. Thank you very much. You saved me a lot of time... HA
  15. Hi, i load the report with JasperDesign jdesgn = JRXmlLoader.load("C:/Programme/JasperSoft/reports/graphTest.jrxml"); and will change the height of the detail band or an Image JRBaseImage, but i have no setheight(...) method. Have you an idea? Thanks HA
  16. Hi, i load the report with JasperDesign jdesgn = JRXmlLoader.load("C:/Programme/JasperSoft/reports/graphTest.jrxml"); and will change the height of the detail band or an Image JRBaseImage, but i have no setheight(...) method. Have you an idea? Thanks HA
  17. Hi all, i create an Image with ireport. Now i will change the height of the image. How i can do it? It has only the method setwidth(...). Thanks HA
  18. Hi all, i create an Image with ireport. Now i will change the height of the image. How i can do it? It has only the method setwidth(...). Thanks HA
  19. hi all, in the detail band i call a subreport. the size of the collection is 10. so the supreport are called 10 times. after then i will retry this prozess 5 times = 50 calls of subreport. is this possible? Thanks
  20. hi all, in the detail band i call a subreport. the size of the collection is 10. so the supreport are called 10 times. after then i will retry this prozess 5 times = 50 calls of subreport. is this possible? Thanks
  21. i try again: e. g. i add in the detail band of my subreport the static text "detail" and in the page Header of my sub report the text "header". now i run the masterreport. in the pdf file i see only the text "header". the information in the detail band are not print in pdf. I think the reason is: if i open in the masterreport the preferences of the subreport and see in the tab Subreport->connection/datasource i must add a connection. if it is empty the detail band are not print. what can i write? Thanks and sorry about my perfect english
  22. i try again: e. g. i add in the detail band of my subreport the static text "detail" and in the page Header of my sub report the text "header". now i run the masterreport. in the pdf file i see only the text "header". the information in the detail band are not print in pdf. I think the reason is: if i open in the masterreport the preferences of the subreport and see in the tab Subreport->connection/datasource i must add a connection. if it is empty the detail band are not print. what can i write? Thanks and sorry about my perfect english
  23. hi, it works now after the svenn's post. i work under window and i wrote for subreport expression "C:\Programme\JasperSoft\reports\a1.jasper". After i wrote "C:/Programme/JasperSoft/reports/a1.jasper" it works. Now i have a new problem. i will display the detail datas of the subreport in the masterreport. But it shows all bands of the subreport without detail band. i need the detail band informations to print in the masterreport. what can i do? Thanks
  24. hi, thank you, it compiles. in the supreport i create a simple text "hello" but i cannot see it in the masterreport. i reserve enough place in the masterreport :(
×
×
  • Create New...