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

lukus

Members
  • Posts

    39
  • Joined

  • Last visited

lukus's Achievements

Contributor

Contributor (5/14)

  • Week One Done
  • One Month Later
  • One Year In
  • First Post Rare
  • Collaborator Rare

Recent Badges

0

Reputation

1

Community Answers

  1. BTW the ling above is to the patched version of the jar
  2. Wow! A year later and the problem is resolved!! Replacing the js-mongodb-datasource-1.0.0.jar in my iReport app and for my server code did the trick!
  3. Could you not use a 'Conditional Style' instead? I know its not quite as flexable as passing in a style using the java server but that way you could set up several conditional styles and then just pass in a single string type parameter to determine the style.
  4. There are so many font questions on the forum I'm sorry if I've missed this on in my reading and duplicated it. Set up I have an jasper report template I'm working on in iReport. I have a font family Helvetica LT Std that I want to use 6 members of. I have ensured that the fonts are installed on my machine. I have ensured that they are all TTF. I have installed all six fonts by going into 'iReport>Preferences>Fonts>Install Fonts' (using a Mac).I have set all the font details ('Bold, Italic, Bold Italic' etc) to the same .ttf file I have checked to see if the fonts have been imported by checking 'Contents/Resources/ireport/ireport/fonts' and confirming that the fonts are presentI have then restarted iReportI understand that ultimately these fonts will need to be packaged into a jar file for use on the server. The Problem I am not able to see my newly imported fonts in the font selection list. I can only see the main font family listed 'Helvetica LT Std'. The Question How do I correctly install a full family of fonts for use in a report where the font family member falls outside the usual 'Bold, Italic, Bold Italic'? Thanks
  5. Hi there, I'm running a mongodb on amazon with authenticartion at a db level (not server level). I'm running iReport Designer 4.7.0 with the MongoDbPlugin 0.14. When I ht the test button after setting up the "MongoDB Connection" I get a "...JRException: unauthorized" I've been using iReport for a long time but have been forced to use a different (far inferiorior product) while I sort this out/wait for a change. I'm hoping this is all down to my own stupidity! Cheers Luke
  6. Hi There, I want to connect to a MongoDB that has authentication enabled on it. It seems that iReport does not support this (seems very strange that this is the case). I'm wondering if there is some sort of work around. I would be happy to write a class that returns the fully authenticated connection but I need to know if/how I could impliment this from within iReport. Anyone got any tips or workarouds on how to get my mongodb playing nicely with iReport? Cheers
  7. Hi Matt, thanks for helping me out with this one. Unfortunatly I just couldn't crack it. I took the rather drastic measure of scrapping CentOS and installing FreeBSD and using their Ports jdk16 install... java version “1.6.0_03-p4″ Java SE Runtime Environment (build 1.6.0_03-p4-root_30_mar_2009_17_29-b00) Java HotSpot Client VM (build 1.6.0_03-p4-root_30_mar_2009_17_29-b00, mixed mode) This has worked a charm. Once again thanks. Cheers
  8. Hi Teodord, thanks for helping me out with this one. Unfortunatly I just couldn't crack it. I took the rather drastic measure of scrapping CentOS and installing FreeBSD and using their Ports jdk16 install... java version “1.6.0_03-p4″ Java SE Runtime Environment (build 1.6.0_03-p4-root_30_mar_2009_17_29-b00) Java HotSpot Client VM (build 1.6.0_03-p4-root_30_mar_2009_17_29-b00, mixed mode) This has worked a charm. Once again thanks. Cheers
  9. Hi Teodord, From the FAQs you posted eariler --- "One thing to play attention to is making sure that the fonts set in the report via fontName attributes are actually available in the Java VM, because AWT silently uses the default font when a specific font cannot be loaded" This seems to be the most likely scinario and including the font lib in the class path won't be a problem but I'm unsure of even what font the default fint is. I've tried explicity setting the font and including that in the classpath to no avail. Cheers
  10. I am able to get lebels when creating an RTF so this looks to be PDF specific...
  11. OK I've had a crack using RTF output (I'm not set up to create HTML output at the mo without writing another class). The result was that I actually got the labels...?
  12. Hi Matt, thanks for the sugestions. This isn't an actual report but rather something I knocked up for testing so I haven't been too concerned with proper pratice ;) I've put in a static query with the JRXML Cheers Code:<?xml version="1.0" encoding="UTF-8" ?><!-- Created with iReport - A designer for JasperReports --><!DOCTYPE jasperReport PUBLIC "//JasperReports//DTD Report Design//EN" "http://jasperreports.sourceforge.net/dtds/jasperreport.dtd"><jasperReport name="Action_Graph" columnCount="1" printOrder="Vertical" orientation="Portrait" pageWidth="595" pageHeight="842" columnWidth="535" columnSpacing="0" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" whenNoDataType="NoPages" isTitleNewPage="false" isSummaryNewPage="false"> <property name="ireport.scriptlethandling" value="0" /> <property name="ireport.encoding" value="UTF-8" /> <import value="java.util.*" /> <import value="net.sf.jasperreports.engine.*" /> <import value="net.sf.jasperreports.engine.data.*" /> <subDataset name="Piegraph" > <queryString><![CDATA[sELECT 12 AS count, 'Missed' AS status UNION SELECT 45 AS count, 'Compleated' AS status UNION SELECT 16 AS count, 'Pending' AS status UNION SELECT 75 AS count, 'Actions' AS status UNION SELECT 62 AS count, 'Refused' AS status]]></queryString> <field name="count" class="java.lang.Long"/> <field name="status" class="java.lang.Integer"/> </subDataset> <queryString><![CDATA[sELECT '']]></queryString> <background> <band height="0" isSplitAllowed="true" > </band> </background> <title> <band height="64" isSplitAllowed="true" > </band> </title> <pageHeader> <band height="6" isSplitAllowed="true" > </band> </pageHeader> <columnHeader> <band height="0" isSplitAllowed="true" > </band> </columnHeader> <detail> <band height="0" isSplitAllowed="true" > </band> </detail> <columnFooter> <band height="0" isSplitAllowed="true" > </band> </columnFooter> <pageFooter> <band height="0" isSplitAllowed="true" > </band> </pageFooter> <summary> <band height="337" isSplitAllowed="true" > <bar3DChart> <chart hyperlinkTarget="Self" > <reportElement x="16" y="14" width="515" height="309" key="element-1"/> <box></box> <chartLegend textColor="#000000" backgroundColor="#FFFFFF" > </chartLegend> </chart> <categoryDataset> <dataset > <datasetRun subDataset="Piegraph"> </datasetRun> </dataset> <categorySeries> <seriesExpression><![CDATA[$F{status}]]></seriesExpression> <categoryExpression><![CDATA[$F{status}]]></categoryExpression> <valueExpression><![CDATA[$F{count}]]></valueExpression> <labelExpression><![CDATA["Status"]]></labelExpression> <itemHyperlink > </itemHyperlink> </categorySeries> </categoryDataset> <bar3DPlot > <plot /> <categoryAxisFormat> <axisFormat > </axisFormat> </categoryAxisFormat> <valueAxisFormat> <axisFormat > </axisFormat> </valueAxisFormat> </bar3DPlot> </bar3DChart> </band> </summary></jasperReport>
  13. Hi, Apoligies. I'm not sure how I ended up posting an incomplete JRXML file. I've double checked and ensured that this one is correct. The connection is passed in at the time of launching. I have yet to test with differing output but will do in the next couple of hours and post the results. Cheers Code: Post Edited by lukus at 07/08/2009 22:44
  14. Anyone got any suggestions on this? I'm willing to try almost anything...
  15. If I were you I would pass it in as a string and then perform any casting that may need to be done in the actual report.
×
×
  • Create New...