Jump to content
Changes to the Jaspersoft community edition download ×

haidar_hadi_205

Members
  • Posts

    28
  • Joined

  • Last visited

  • Days Won

    1

 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 haidar_hadi_205

  1. Thank you so much for answering this, where can I download 5.6.0 from? On the download page for the professional version there is only 5.5.0. Any idea?
  2. when you generate a PDF file does the font show in Arial Narrow ?
  3. here is the expression you need, just replace "12/01/2013" with your parameter new java.util.Date(new SimpleDateFormat("MM/dd/yyyy").parse("12/01/2013").getTime() -315569259747L) if you need to further format the output then use DATEFORMAT(new java.util.Date(new SimpleDateFormat("MM/dd/yyyy").parse("12/01/2013").getTime() -315569259747L), "MM/dd/yyyy")
  4. did u get this resolved, I am have the exact same issue ? thanks in advance.
  5. try this in your expression DATEFORMAT(new java.util.Date( NOW( ).getTime() - (1000*60*60*24*365*10)) ,"YYYY-MM-DD")
  6. I do not think that it is possible to do loops inside expressions. The other alternatives that I can think of are : Store the data in a database and then in your sql statement you can do such check. The other option is to use custom class. hth.
  7. I am not sure of I can understand the questions, can you please elaborate?
  8. update: even when I import a jar file genereated by the iReport it does not work. I think this is a bug with the Jasper Studio. update: attached is my jar file. I am trying to install a new font in Jasper Studio (Arrial Narow) so that I can eventually print the report as a PDF docuemtn. Here are my steps: Project Properties ->Fonts --> Configure Workspace settings ->Add-> True Type : C:tmpARIALN.TTF PDF Font Name : Left empty as none of the choices has arial narrow Embed this font in PDF doc : checked. Everything else is default Then applied my new font to a lable on my report and I keep getting this error: java.lang.reflect.InvocationTargetException at com.jaspersoft.studio.editor.preview.actions.export.AbstractExportAction$1.run(AbstractExportAction.java:122) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121) Caused by: net.sf.jasperreports.engine.JRRuntimeException: com.lowagie.text.DocumentException: Font '' with 'Cp1252' is not recognized. at net.sf.jasperreports.engine.export.JRPdfExporter.getFont(JRPdfExporter.java:2062) at net.sf.jasperreports.engine.export.JRPdfExporter.getChunk(JRPdfExporter.java:1818) at net.sf.jasperreports.engine.export.JRPdfExporter.getPhrase(JRPdfExporter.java:1787) at net.sf.jasperreports.engine.export.SimplePdfTextRenderer.getPhrase(SimplePdfTextRenderer.java:89) at net.sf.jasperreports.engine.export.SimplePdfTextRenderer.render(SimplePdfTextRenderer.java:100) at net.sf.jasperreports.engine.export.JRPdfExporter.exportText(JRPdfExporter.java:2158) at net.sf.jasperreports.engine.export.JRPdfExporter.exportElements(JRPdfExporter.java:861) at net.sf.jasperreports.engine.export.JRPdfExporter.exportPage(JRPdfExporter.java:821) at net.sf.jasperreports.engine.export.JRPdfExporter.exportReportToStream(JRPdfExporter.java:698) at net.sf.jasperreports.engine.export.JRPdfExporter.exportReport(JRPdfExporter.java:420) at com.jaspersoft.studio.editor.preview.actions.export.AbstractExportAction.exportWithProgress(AbstractExportAction.java:219) at com.jaspersoft.studio.editor.preview.actions.export.AbstractExportAction$1.run(AbstractExportAction.java:119) ... 1 more Caused by: com.lowagie.text.DocumentException: Font '' with 'Cp1252' is not recognized. at com.lowagie.text.pdf.BaseFont.createFont(Unknown Source) at com.lowagie.text.pdf.BaseFont.createFont(Unknown Source) at com.lowagie.text.pdf.BaseFont.createFont(Unknown Source) at net.sf.jasperreports.engine.export.JRPdfExporter.getFont(JRPdfExporter.java:2051) ... 12 more
  9. I am having the exact same issue. I did Project Properties ->Fonts --> Configure Workspace settings ->Add-> True Type : C:tmpARIALN.TTFPDF Font Name : Left empty as none of the choices has arial narrowEmbed this font in PDF doc : checked. Everything else is defaultThen applied my new font to a lable on my report and I keep getting this error: java.lang.reflect.InvocationTargetExceptionat com.jaspersoft.studio.editor.preview.actions.export.AbstractExportAction$1.run(AbstractExportAction.java:122)at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)Caused by: net.sf.jasperreports.engine.JRRuntimeException: com.lowagie.text.DocumentException: Font '' with 'Cp1252' is not recognized.at net.sf.jasperreports.engine.export.JRPdfExporter.getFont(JRPdfExporter.java:2062)at net.sf.jasperreports.engine.export.JRPdfExporter.getChunk(JRPdfExporter.java:1818)at net.sf.jasperreports.engine.export.JRPdfExporter.getPhrase(JRPdfExporter.java:1787)at net.sf.jasperreports.engine.export.SimplePdfTextRenderer.getPhrase(SimplePdfTextRenderer.java:89)at net.sf.jasperreports.engine.export.SimplePdfTextRenderer.render(SimplePdfTextRenderer.java:100)at net.sf.jasperreports.engine.export.JRPdfExporter.exportText(JRPdfExporter.java:2158)at net.sf.jasperreports.engine.export.JRPdfExporter.exportElements(JRPdfExporter.java:861)at net.sf.jasperreports.engine.export.JRPdfExporter.exportPage(JRPdfExporter.java:821)at net.sf.jasperreports.engine.export.JRPdfExporter.exportReportToStream(JRPdfExporter.java:698)at net.sf.jasperreports.engine.export.JRPdfExporter.exportReport(JRPdfExporter.java:420)at com.jaspersoft.studio.editor.preview.actions.export.AbstractExportAction.exportWithProgress(AbstractExportAction.java:219)at com.jaspersoft.studio.editor.preview.actions.export.AbstractExportAction$1.run(AbstractExportAction.java:119)... 1 moreCaused by: com.lowagie.text.DocumentException: Font '' with 'Cp1252' is not recognized.at com.lowagie.text.pdf.BaseFont.createFont(Unknown Source)at com.lowagie.text.pdf.BaseFont.createFont(Unknown Source)at com.lowagie.text.pdf.BaseFont.createFont(Unknown Source)at net.sf.jasperreports.engine.export.JRPdfExporter.getFont(JRPdfExporter.java:2051)... 12 more
  10. see this questions http://community.jaspersoft.com/questions/826480/customizer-class-remove-space-between-bars-stackedbar
  11. I am trying to further customize a Fusion Charts using <styles> and <application>, my questions is how can I apply the following example into my ChartsPro in Jaspersoft Studio <chart> <!-- Your data here --> <styles> <definition> <style name='MyFirstFontStyle' type='font' face='Verdana' size='12' color='FF0000' bold='1' bgColor='FFFFDD' /> <style name='MyFirstAnimationStyle' type='animation' param='_xScale' start='0' duration='2' /> <style name='MyFirstShadow' type='Shadow' color='CCCCCC' /> </definition> <application> <apply toObject='Caption' styles='MyFirstFontStyle,MyFirstShadow' /> <apply toObject='Canvas' styles='MyFirstAnimationStyle' /> <apply toObject='DataPlot' styles='MyFirstShadow' /> </application> </styles></chart>[/code]Thanks in advance.
  12. from the error log it sound like you are missing a jar file for jodatime and that is why you are missing the class (org/joda/time/ReadableInstant) try this link http://joda-time.sourceforge.net/installation.html
  13. Hello, Does anyone know how to setup bar charts in using the ChartsPro /Fusion charts to use log scale. thanks in advance. Haidar.
  14. I solved this issue by remove the double quotes legened.itemStyle.fontSize=10px
  15. Hello, I am trying to customize the legend itme font size for a bar chart in HTML 5 charts. According to the highcharts docs it should be legened.itemStyle.fontSize="10px" or , but when I added the propety in the chart properties, it did not change the font size, I event tried legened.itemStyle.fomtSize= new Integer(10). any idea? thanks in advance.
  16. ultimatly I want to build a dashboard and be able to export it as a PDF. How should I go about doing so ?
  17. Hello, I created a StackedBar item and want to eliminate the space between the bars. I wrote the following customerize, but the bars are sill spaced, any idea ? thanks in advnace. [/code]import net.sf.jasperreports.engine.*;import net.sf.jasperreports.engine.JRChart;import org.jfree.chart.plot.CategoryPlot; import org.jfree.chart.renderer.category.*; public class CustomizeBarChart extends JRAbstractChartCustomizer { @Override public void customize(JFreeChart chart, JRChart jasperChart) { CategoryPlot categoryPlot = chart.getCategoryPlot(); StackedBarRenderer renderer = (StackedBarRenderer) categoryPlot.getRenderer(); chart.setTitle("Hello"); renderer.setItemMargin(0.0); }} update: Here is the scala version of the same code: import net.sf.jasperreports.engine.JRAbstractChartCustomizer; import net.sf.jasperreports.engine.JRChart; import org.jfree.chart.JFreeChart;import org.jfree.chart.plot.CategoryPlot;import org.jfree.chart.renderer.category.BarRenderer; class CustomizeBarChart extends JRAbstractChartCustomizer{ def customize(chart: JFreeChart , jasperChart:JRChart) ={ val categoryPlot: CategoryPlot = chart.getCategoryPlot() val renderer: BarRenderer = categoryPlot.getRenderer().asInstanceOf[barRenderer] //Spaces between barsrenderer.setItemMargin(0.05f) categoryPlot.getDomainAxis().setCategoryMargin(0.05f)chart.setTitle("Hello From scala") } }
  18. I am trying to build a report that has multiple items; a table and couple of charts next to it. How to best approach this? Which portion of the report should I put such items, Details, Summary, etc.? In other word, I want to build a dashboard Thanks in advance. Update: There is a "page format" option from the context menu, I made the page longer by increasing the Height of the page and then added a page break. My current challenge is that page does not break! I think the "Break" item in the elements palate is meant to break a table but not the entire page. Any idea how do I do an actual page break? Update: I found this question : http://community.jaspersoft.com/questions/533412/how-insert-page-break-ireport-371 is there something similar in the Jasper Studio ?
×
×
  • Create New...