Jump to content
Changes to the Jaspersoft community edition download ×

2006 JR Open Discussion

Members
  • Posts

    181
  • Joined

  • Last visited

2006 JR Open Discussion's Achievements

Proficient

Proficient (10/14)

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

Recent Badges

0

Reputation

  1. By: blosser - blosser Merge vertical column group in crosstab 2006-08-30 14:03 Hi, consider following example: I have column group in crosstab: h11 | h21 | h12 | h22|h23| and h11 equal h12. I want to merge both this cells in one. Can i do it? By: bpatel@exitrealty.com - bpatel96 RE: Merge vertical column group in crosstab 2006-08-31 07:37 you can use the scriplet class thats the best way to do it
  2. By: Krishna - krishnamurthir Print Problem While running jasper in linux 2006-08-19 00:07 dear friends, Can any one help me out for doing the print operation in linux,Is there any difference in linux & windows I have created a small appl.(swing) and i have created .jrxml for report work.In windows everythig is fine. but while run the same appli. in linux it will throw an exception when i press print button in the jasper viewer. exception is: Exception in thread "Thread-5" java.lang.UnsatisfiedLinkError: getDefaultPrinterName at sun.print.Win32PrintServiceLookup.getDefaultPrinterName(Native Method) at sun.print.Win32PrintServiceLookup.getDefaultPrintService(Win32PrintServiceLookup.java:219) at sun.print.Win32PrintServiceLookup.getPrintServices(Win32PrintServiceLookup.java:81) at sun.print.Win32PrintServiceLookup.getPrintServices(Win32PrintServiceLookup.java:178) at javax.print.PrintServiceLookup.getServices(Unknown Source) at javax.print.PrintServiceLookup.lookupPrintServices(Unknown Source) at java.awt.print.PrinterJob.lookupPrintServices(Unknown Source) at sun.print.RasterPrinterJob$4.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at sun.print.RasterPrinterJob.printDialog(Unknown Source) at sun.print.PSPrinterJob.printDialog(Unknown Source) at net.sf.jasperreports.engine.print.JRPrinterAWT.printPages(JRPrinterAWT.java:184) at net.sf.jasperreports.engine.print.JRPrinterAWT.printPages(JRPrinterAWT.java:88) at net.sf.jasperreports.engine.JasperPrintManager.printPages(JasperPrintManager.java:348) at net.sf.jasperreports.engine.JasperPrintManager.printReport(JasperPrintManager.java:239) at net.sf.jasperreports.view.JRViewer$20.run(JRViewer.java:1040) at java.lang.Thread.run(Unknown Source)
  3. By: spoorthi - spoo_anu Jasper report Instance generation 2006-08-16 23:11 Hi, I am shivaraj currently working for Surya-software systems Bangalore. We are working on some banking reporting application. We enhance our reporting application to use Jasper server as a reporting tool. Problem is I am not aware of Spring hibernate framework. since Jasper server is completely designed on Spring hibernate framework am not able trace the code properly. Can any body who have already worked on jasper server, give me the solutions for my following queries. Q1 What is the control flow for jasper report instance generation ? Description:First I want to understand an abstract view of how exactly methods and classes related to report instance generation are invoked(Sequentialy). Report Instance Generation Analysis : After uploading the report templates to jasper server, currently the report templates are storing in file_resource table of jasper server database. When we click on the report template to generate a report instance, for generated instance an entry will be stored along with report data in repository_cache table of jasper server. When we generate a new instance of the same report,previous version will be overwritten with the new instance generated.But i don't want this to happen, instead all instances should be retained in the "repository_cache" table. Q2. How to retain each instances of all reports in jasper server database (Table name: REPOSITORY_CACHE) avoiding overwriting of previous versions ? Also let me know specifically where I should modify the code for this. If you have any document/urls related to jasper report instance generation.. plz let me know. with thanks and regards SHIVARAJ
  4. By: Reangle Liu - reangleliu Strectch problem 2006-08-14 02:29 I have multi rows of TextField's in summary band,footer band in a group. When viewing the report result, Some rows of them is invisible. And I have make a very simple report just like my real report. When running this report with empty datasource you will found that the last row textField's data can not been seen. Please check my report xml: <?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="untitled_report_1" columnCount="1" printOrder="Vertical" orientation="Portrait" pageWidth="595" pageHeight="842" columnWidth="535" columnSpacing="0" leftMargin="30" rightMargin="30" topMargin="20" bottomMargin="20" whenNoDataType="NoPages" isTitleNewPage="false" isSummaryNewPage="false"> <property name="ireport.scriptlethandling" value="2" /> <property name="ireport.encoding" value="UTF-8" /> <import value="java.util.*" /> <import value="net.sf.jasperreports.engine.*" /> <import value="net.sf.jasperreports.engine.data.*" /> <background> <band height="0" isSplitAllowed="true" > </band> </background> <title> <band height="50" isSplitAllowed="true" > </band> </title> <pageHeader> <band height="50" isSplitAllowed="true" > </band> </pageHeader> <columnHeader> <band height="59" isSplitAllowed="true" > </band> </columnHeader> <detail> <band height="100" isSplitAllowed="true" > </band> </detail> <columnFooter> <band height="30" isSplitAllowed="true" > </band> </columnFooter> <pageFooter> <band height="50" isSplitAllowed="true" > </band> </pageFooter> <lastPageFooter> <band height="50" isSplitAllowed="true" > </band> </lastPageFooter> <summary> <band height="120" isSplitAllowed="true" > <elementGroup><!-- Start: 1 !--> <textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement mode="Opaque" x="20" y="10" width="100" height="20" forecolor="#000000" backcolor="#CCCCFF" key="textField-1" stretchType="RelativeToTallestObject" positionType="Float" isPrintRepeatedValues="true" isRemoveLineWhenBlank="false" isPrintInFirstWholeBand="false" isPrintWhenDetailOverflows="true"/> <box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/> <textElement textAlignment="Left" verticalAlignment="Top" rotation="None" lineSpacing="Single"> <font fontName="Arial" pdfFontName="Helvetica" size="10" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="Cp1252" isStrikeThrough="false" /> </textElement> <textFieldExpression class="java.lang.String"><![CDATA["total:"]]></textFieldExpression> </textField> <textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement mode="Opaque" x="120" y="10" width="100" height="20" forecolor="#000000" backcolor="#CCCCFF" key="textField-2" stretchType="RelativeToTallestObject" positionType="Float" isPrintRepeatedValues="true" isRemoveLineWhenBlank="false" isPrintInFirstWholeBand="false" isPrintWhenDetailOverflows="true"/> <box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/> <textElement textAlignment="Left" verticalAlignment="Top" rotation="None" lineSpacing="Single"> <font fontName="Arial" pdfFontName="Helvetica" size="10" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="Cp1252" isStrikeThrough="false" /> </textElement> <textFieldExpression class="java.lang.String"><![CDATA["a123456789 123456789 123456789 123456789 123456789 "]]></textFieldExpression> </textField> <textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement mode="Opaque" x="220" y="10" width="100" height="20" forecolor="#000000" backcolor="#CCCCFF" key="textField-3" stretchType="RelativeToTallestObject" positionType="Float" isPrintRepeatedValues="true" isRemoveLineWhenBlank="false" isPrintInFirstWholeBand="false" isPrintWhenDetailOverflows="true"/> <box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/> <textElement textAlignment="Left" verticalAlignment="Top" rotation="None" lineSpacing="Single"> <font fontName="Arial" pdfFontName="Helvetica" size="10" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="Cp1252" isStrikeThrough="false" /> </textElement> <textFieldExpression class="java.lang.String"><![CDATA["c123456789 123456789 1223456789 "]]></textFieldExpression> </textField> </elementGroup><!-- End 1 !--> <elementGroup><!-- Start: 2 !--> <textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement mode="Opaque" x="20" y="40" width="100" height="20" forecolor="#000000" backcolor="#CCCCFF" key="textField-4" stretchType="RelativeToTallestObject" positionType="Float" isPrintRepeatedValues="true" isRemoveLineWhenBlank="false" isPrintInFirstWholeBand="false" isPrintWhenDetailOverflows="true"/> <box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/> <textElement textAlignment="Left" verticalAlignment="Top" rotation="None" lineSpacing="Single"> <font fontName="Arial" pdfFontName="Helvetica" size="10" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="Cp1252" isStrikeThrough="false" /> </textElement> <textFieldExpression class="java.lang.String"><![CDATA["average:"]]></textFieldExpression> </textField> <textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement mode="Opaque" x="120" y="40" width="100" height="20" forecolor="#000000" backcolor="#CCCCFF" key="textField-5" stretchType="RelativeToTallestObject" positionType="Float" isPrintRepeatedValues="true" isRemoveLineWhenBlank="false" isPrintInFirstWholeBand="false" isPrintWhenDetailOverflows="true"/> <box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/> <textElement textAlignment="Left" verticalAlignment="Top" rotation="None" lineSpacing="Single"> <font fontName="Arial" pdfFontName="Helvetica" size="10" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="Cp1252" isStrikeThrough="false" /> </textElement> <textFieldExpression class="java.lang.String"><![CDATA["1"]]></textFieldExpression> </textField> <textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement mode="Opaque" x="220" y="40" width="100" height="20" forecolor="#000000" backcolor="#CCCCFF" key="textField-6" stretchType="RelativeToTallestObject" positionType="Float" isPrintRepeatedValues="true" isRemoveLineWhenBlank="false" isPrintInFirstWholeBand="false" isPrintWhenDetailOverflows="true"/> <box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/> <textElement textAlignment="Left" verticalAlignment="Top" rotation="None" lineSpacing="Single"> <font fontName="Arial" pdfFontName="Helvetica" size="10" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="Cp1252" isStrikeThrough="false" /> </textElement> <textFieldExpression class="java.lang.String"><![CDATA["a123456789 123456789 123456789 123456789 123456789 "]]></textFieldExpression> </textField> </elementGroup><!-- End 2 !--> <elementGroup><!-- Start: 3 !--> <textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement mode="Opaque" x="20" y="70" width="100" height="20" forecolor="#000000" backcolor="#CCCCFF" key="textField-7" stretchType="RelativeToTallestObject" positionType="Float" isPrintRepeatedValues="true" isRemoveLineWhenBlank="false" isPrintInFirstWholeBand="false" isPrintWhenDetailOverflows="true"/> <box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/> <textElement textAlignment="Left" verticalAlignment="Top" rotation="None" lineSpacing="Single"> <font fontName="Arial" pdfFontName="Helvetica" size="10" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="Cp1252" isStrikeThrough="false" /> </textElement> <textFieldExpression class="java.lang.String"><![CDATA["min:"]]></textFieldExpression> </textField> <textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement mode="Opaque" x="120" y="70" width="100" height="20" forecolor="#000000" backcolor="#CCCCFF" key="textField-8" stretchType="RelativeToTallestObject" positionType="Float" isPrintRepeatedValues="true" isRemoveLineWhenBlank="false" isPrintInFirstWholeBand="false" isPrintWhenDetailOverflows="true"/> <box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/> <textElement textAlignment="Left" verticalAlignment="Top" rotation="None" lineSpacing="Single"> <font fontName="Arial" pdfFontName="Helvetica" size="10" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="Cp1252" isStrikeThrough="false" /> </textElement> <textFieldExpression class="java.lang.String"><![CDATA["2"]]></textFieldExpression> </textField> <textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement mode="Opaque" x="220" y="70" width="100" height="20" forecolor="#000000" backcolor="#CCCCFF" key="textField-9" stretchType="RelativeToTallestObject" positionType="Float" isPrintRepeatedValues="true" isRemoveLineWhenBlank="false" isPrintInFirstWholeBand="false" isPrintWhenDetailOverflows="true"/> <box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/> <textElement textAlignment="Left" verticalAlignment="Top" rotation="None" lineSpacing="Single"> <font fontName="Arial" pdfFontName="Helvetica" size="10" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="Cp1252" isStrikeThrough="false" /> </textElement> <textFieldExpression class="java.lang.String"><![CDATA["j123456789 123456789 123456789 12349 "]]></textFieldExpression> </textField> </elementGroup><!-- End 3 !--> <elementGroup><!-- Start: 4 !--> <textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement mode="Opaque" x="20" y="100" width="100" height="20" forecolor="#000000" backcolor="#CCCCFF" key="textField-10" stretchType="RelativeToTallestObject" positionType="Float" isPrintRepeatedValues="true" isRemoveLineWhenBlank="false" isPrintInFirstWholeBand="false" isPrintWhenDetailOverflows="true"/> <box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/> <textElement textAlignment="Left" verticalAlignment="Top" rotation="None" lineSpacing="Single"> <font fontName="Arial" pdfFontName="Helvetica" size="10" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="Cp1252" isStrikeThrough="false" /> </textElement> <textFieldExpression class="java.lang.String"><![CDATA["max:"]]></textFieldExpression> </textField> <textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement mode="Opaque" x="120" y="100" width="100" height="20" forecolor="#000000" backcolor="#CCCCFF" key="textField-11" stretchType="RelativeToTallestObject" positionType="Float" isPrintRepeatedValues="true" isRemoveLineWhenBlank="false" isPrintInFirstWholeBand="false" isPrintWhenDetailOverflows="true"/> <box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/> <textElement textAlignment="Left" verticalAlignment="Top" rotation="None" lineSpacing="Single"> <font fontName="Arial" pdfFontName="Helvetica" size="10" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="Cp1252" isStrikeThrough="false" /> </textElement> <textFieldExpression class="java.lang.String"><![CDATA["3"]]></textFieldExpression> </textField> <textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement mode="Opaque" x="220" y="100" width="100" height="20" forecolor="#000000" backcolor="#CCCCFF" key="textField-12" stretchType="RelativeToTallestObject" positionType="Float" isPrintRepeatedValues="true" isRemoveLineWhenBlank="false" isPrintInFirstWholeBand="false" isPrintWhenDetailOverflows="true"/> <box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/> <textElement textAlignment="Left" verticalAlignment="Top" rotation="None" lineSpacing="Single"> <font fontName="Arial" pdfFontName="Helvetica" size="10" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="Cp1252" isStrikeThrough="false" /> </textElement> <textFieldExpression class="java.lang.String"><![CDATA["a123456789 123456789 123456789 123456789 123456789 "]]></textFieldExpression> </textField> </elementGroup><!-- End 4 !--> </band> </summary> </jasperReport>
  5. By: Ranjani Giri - ran_giri Jasper Reports export report in TIFF format? 2006-08-11 06:34 Does Jasper Reports generate reports in TIFF format? Are ther any alternatives? I did not find anything in the API that saida bout TIFF. Any help is really apprecaited. Thanks By: Lucian Chirita - lucianc RE: Jasper Reports export report in TIFF form 2006-08-11 08:43 JR does not directly support exporting reports to TIFF images, but one can use the JRGraphics2DExporter in combination with a library that includes a TIFF encoder (e.g. JAI) to generate a TIFF image out of a report page. Also note that the JR forums are moving here http://www.jasperforge.org/index.php?option=com_joomlaboard&Itemid=215&func=showcat&catid=8 Regards, Lucian By: Ranjani Giri - ran_giri RE: Jasper Reports export report in TIFF form 2006-08-11 13:23 Any directions to the code samples to generate TIFF using JRGraphics2DExporter would be really appreciated. Thanks
  6. By: Keith Shakib - kshakib Including Report Criteria in the Report 2006-08-10 09:15 I need to report on a data within a date range. I want the date range used in the query to be in the heading of the report. How do I do this?
  7. By: jasperkan - jasperkannan JRMapCollectionDataSource for subreport 2006-01-17 13:31 Hi i have a main report which executes a database procedure and gets the resultset and show the data. I would need to process the data and show the summary data in a subreport. For this i m using scriplet class and it store the processed data in a JRMapCollectionDataSource and passed to the summary data subreport .Everything works fine without giving an error but the subreport is not getting filled . I would be grateful for any pointers or a better way to do this with out calling the proc twice. By: Neil Lamka - neil_lamka RE: JRMapCollectionDataSource for subreport 2006-08-09 18:20 Did you ever get an answer to this post? I'm trying to do the same thing but having problems (since I'm not a java guy) figuring out exactly how to set things up. What I tried was to define a variable in the main report of type net.sf.jasperreports.engine.data.JRMapCollectionDataSource I then thought I needed to "new" one of those so I put new net.sf.jasperreports.engine.data.JRMapCollectionDataSource() in the variable Initial value expression but that generates an error saying that the constructor is undefined. That was obviously wrong. I then tried to get the variable in my scriptlet by adding net.sf.jasperreports.engine.data.JRMapCollectionDataSource src = (net.sf.jasperreports.engine.data.JRMapCollectionDataSource)getVariableValue("combinedDataSource"); and that generates the following error. C:Documents and SettingsNeil Lamka.ireportScheduleExpressGenericReportsGenericDailyReportScriptlet.java:98: unreported exception net.sf.jasperreports.engine.JRScriptletException; must be caught or declared to be thrown (net.sf.jasperreports.engine.data.JRMapCollectionDataSource)getVariableValue("combinedDataSource"); So at this point, I'm looking for an example or some other way to get this setup. Hope you can help. Neil By: Lucian Chirita - lucianc RE: JRMapCollectionDataSource for subreport 2006-08-10 02:25 You can see examples of scriptlets collecting data in the scriptlet and tableofcontents samples in the JR distribution. However, you should be aware that writing a Java class (and a scriptlet is a Java class) obviously requires basic Java knowledge. A solution for you would consist of the following: - a system variable "SubreportData" of type java.util.List initialized with new java.util.ArrayList() - a scriptlet which in one of its methods gets the SubreportData value and adds to it a java.util.Map of values for the subreport - a subreport in the summary band having new JRMapCollectionDataSource($V{SubreportData}) as data source expression. Also note that the JR forums have moved here http://www.jasperforge.org/index.php?option=com_joomlaboard&Itemid=215&func=showcat&catid=8 HTH, Lucian
  8. By: jaspertest - jaspertest SubReports are getting overlapped 2006-07-13 06:11 I have two subreports in my master report.The two first subreport should get printed at the end of the first page of master report.Data from page 2 will be filled by second subreport.Problem is the two subreports data are overlapping. I tried using dummy group.The second subreport data is not getting displayed in this case. Please help me in this. By: Krishna - krishnamurthir RE: SubReports are getting overlapped 2006-07-23 22:47 Hi friend, Did u check the margin of the subreport If u want,put '0' for left margin ,top margin ,bottom margin and then put the subreport where u want, By: kumar potla - kumarjasper RE: SubReports are getting overlapped 2006-08-03 09:13 I think subreports overlapping problem can be solved by putting tag positionType="float" for the subreport which is getting overlapped. Kumar
  9. By: Sathija Pavuluri - sathija Frame issues in RTF export 2006-08-02 13:42 When a subreport is placed within a frame and the report is exported to RTF the subreport rendering is messed up. It is known that elements in a frame have an offset that is relative to the frame. But only in this case jasper interprets the offset relative to the current page. Eg: If I have a subreport in a frame and the subreport element has x=0, y=0; when the report is rendered the subreport appears at the top left corner of the page, while the frame is empty and sitting in the middle of the page (or whereever its location was defined). And when I have multiple frames like this. The frames are displayed correctly, but all the subreports are piled up on top of one another in the top left corner. This issue does not happen in PDF and HTML exports. Is this a bug that is being addressed or is something else wrong here?
  10. By: slowfinger - slowfinger JRException: Image failed to load 2006-03-15 04:21 Hi, I had curious behaviour with some images on my report. Now I have found the reason for the exception above: The problem image was one which was used on the page header. So on an report which has more than one page the error occurs every time if I move from the first page to one of the next one's. The search for the error was difficult but the solution was easy. I set the flag isUsingCache to true and all works fine. Now I'm considering if that is the correct behaviour. What is your opinion ? Thanks in forward Rico PS: Oh I think this an error which is really risky. Because the mentioned error occured so on the JasperViewer. But when I produced an PDF it ends with an NullPointerException and that can't be in sence of the inventor. By: Code_Slave - code_slave RE: JRException: Image failed to load 2006-03-15 17:38 do not try to put the actual image into the hash map private void Getpictures(HashMap ReportParams) { java.net.URL Source; java.net.URL Source1; Source = MyProvidesReports.class.getResource("/Images/Image1.png"); // this is a fixed format for all java platforms do not use "file.separator Source1 = MyProvidesReports.class.getResource("/Images/Chop.png"); // this is a fixed format for all java platforms do not use "file.separator ReportParams.put("MyChop", Source1); ReportParams.put("CompanyLogo", Source); } instead of passing an actual image, pass a pointer to it's path, let JR deal with getting & releasing it, or you will end up with memory leaks. By: slowfinger - slowfinger RE: JRException: Image failed to load 2006-03-15 22:22 I do not understand your answer. Your suggestion is not to put the image on the map but your sample code does it. Also I don't see a different way in my case because it plays in a web environment. The image are in the class path and will be loaded by: stream = getClass().getClassLoader().getResourceAsStream(image)); and put on the map: parameter.put(REPORT_LOGO, stream); By: slowfinger - slowfinger RE: JRException: Image failed to load 2006-03-15 04:24 oh I forgot following. I put the described image as parameter as InputStream to the parameter map. By: Krishna - krishnamurthir RE: JRException: Image failed to load 2006-07-30 10:49 Dear Friend, we can pass the img directly to the .jrxml file the ex. in the img Expression (.jrxml) getClass().getClassLoader().getResourceAsStream(com/../logo.jpg")] class=java.io.InputStream
  11. By: Shekar - kramshekar How to load compiled Jasper Object 2006-07-28 11:53 Has anyone tried to load compiled Jasper Object (.jasper) in a Java application? Can you forward the code?
  12. By: RJB - rbrennan0614 ASP.NET and Jasper Integration Example (?) 2006-07-28 09:38 Does anyone have an example of how to integrate Jasper Reports / iReport with an ASP.NET web application? I'm looking to be pointed in the direction of a web interface that a user can dynamically select reports to be created from...Any ideas?
  13. By: stevekrasinsky - stevekrasinsky Styled text and xls 2006-07-25 09:50 Is there a way to do conditional styled text in xls format? I have it working in html and pdf, but not in excel. Thanks! By: Teodor Danciu - teodord RE: Styled text and xls 2006-07-27 09:18 Hi, Styled text is not support in XLS format. Thank you, Teodor
  14. By: shy12 - shy12 Problem with PooledExecutor 2006-07-27 07:14 Hi, we are trying to implement asynchronous reporting using Jasper. So whenever we get a request for a report, we are trying to queue that request in a PooledExecutor and then call PooledExecutor's execute method to execute each request one by one. But when we are trying to use pooled executor with Jasper it doesn't seem to work. I get the following stack trace: java.lang.NullPointerException at com.jnetdirect.jsql.ar.a(Unknown Source) at com.jnetdirect.jsql.JSQLConnection.prePrepare(Unknown Source) at com.jnetdirect.jsql.JSQLConnection.getPreparedStatementHandle(Unknown Source) at com.jnetdirect.jsql.am.executeQuery(Unknown Source) at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java: 514) at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:12 0) at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillMa nager.java:291) at com.tci.groovecar.servlets.StatsReportGeneratorServlet.exportPdf(Stat sReportGeneratorServlet.java:566) at com.tci.groovecar.servlets.StatsReportGeneratorServlet.access$100(Sta tsReportGeneratorServlet.java:6 at com.tci.groovecar.servlets.StatsReportGeneratorServlet$ReportRequestJ ob.executeJob(StatsReportGeneratorServlet.java:1008) at com.tci.groovecar.servlets.StatsReportGeneratorServlet$ReportRequestJ ob.run(StatsReportGeneratorServlet.java:978) at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Unknown So urce) at java.lang.Thread.run(Thread.java:484) ******************************* ******************************* Application: Dev_DecisionLender35 / MSUFCU version 1.0 Priority: 4 Message: ExecuteJob: javax.servlet.ServletException at com.tci.groovecar.servlets.StatsReportGeneratorServlet.exportPdf(Stat sReportGeneratorServlet.java:593) at com.tci.groovecar.servlets.StatsReportGeneratorServlet.access$100(Sta tsReportGeneratorServlet.java:6 at com.tci.groovecar.servlets.StatsReportGeneratorServlet$ReportRequestJ ob.executeJob(StatsReportGeneratorServlet.java:1008) at com.tci.groovecar.servlets.StatsReportGeneratorServlet$ReportRequestJ ob.run(StatsReportGeneratorServlet.java:978) at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Unknown So urce) at java.lang.Thread.run(Thread.java:484) ******************************* It would be great if anyone could help me out ASAP. Thanks a lot. By: shy12 - shy12 RE: Problem with PooledExecutor 2006-07-27 07:17 we are using jasper0.6.4 version
  15. By: Krishna - krishnamurthir Add button in to the Jasper viewer 2006-07-25 04:31 Dear Friends, I want to add JButton in to the Jasper viewer and perform some action while click action is performed, Is there any way to hide the components in the Jasper viewer Menu bar(which means that Print Icon,Zoom and So on..) Thank in Advance.....
×
×
  • Create New...