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

sravyts

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 sravyts

  1. Hello, I would like to have the reportElement foreColor tag overrule the markup's forecolor. Is this possible? It is because we have rtf text which we want to display in a report, but in our application, the background of the textpanes showing the rtf is black (and foreground white). In the reports we want to have a background white and foreground black of course). If I could set the textelement's forecolor to black in the design, and it would use this forecolor to overrule the rtf's forecolor, I would have a solution. Wkr, Sofie
  2. We have a setup where designs are created on the client, and rendering is done on the server. In the designs we add a custom queryString, and on the server I register the queryExecuterFactory for that language in the properties. But when I try to add this string on the client (where this class is not accessible) by calling jasperDesign.setQuery(xxx), I get a JRException saying that the property needs to be filled in.And when I add this property with the serverclass filled in, ofcourse I get an exception saying the class cannot be found. Is there a way of adding this string to the design on the client without having this exception? It is only at filling-time that this is really used, so why is this validation done at the moment the queryString is added?
  3. We have a setup where designs are created on the client, and rendering is done on the server. In the designs we add a custom queryString, and on the server I register the queryExecuterFactory for that language in the properties. But when I try to add this string on the client (where this class is not accessible) by calling jasperDesign.setQuery(xxx), I get a JRException saying that the property needs to be filled in.And when I add this property with the serverclass filled in, ofcourse I get an exception saying the class cannot be found. Is there a way of adding this string to the design on the client without having this exception? It is only at filling-time that this is really used, so why is this validation done at the moment the queryString is added?
  4. ceck out the demoexamples folder in the jasper reports download!
  5. ceck out the demoexamples folder in the jasper reports download!
  6. ceck out the demoexamples folder in the jasper reports download!
  7. sravyts

    Printing

    FYI: exporting to pdf works fine! So I don't think there is a problem with the url to the image?
  8. sravyts

    Printing

    I get the following exception when trying to print a report: "java.awt.print.PrinterException; Image read failed". I cannot find any suggestions on what is causing this. Can anyone help me with this one?
  9. Hey, I'm struggling a bit with pdf rendering and fonts. I have created a very basic template with some styled text (bold and italic included). There are no fonts referenced in the design, but still the bold does not come up in the pdf file. I understand this is because I need to add a mapping for the fonts used. But since I didn't specify a special font, i presume a default font is used by Jasper (is this Arial?)? And why is the mapping for this default font not automatically set? Or am I missing something? Wkr, Sofie
  10. Is it possible it doesn't work with JDT 3.2.0 as well? Do we have to use JDT 3.1.1? Wkr, Sofie
  11. Is it an option to stretch cell contents over multiple pages or is this not possible?
  12. I have a crosstab with a cell with a very long text shown in a dynamic textfield. But my rendering process seems to go into an infinite loop. When Ctrl-Break is pressed I see the stacktrace pasted at the bottom. Can this infinite loop throw an exception like the (infinite loop due to column header overflow etc...) if it is due to a bad design, or is this a bug? at java.text.RuleBasedBreakIterator.handlePrevious(RuleBasedBreakIterator.java:960) at java.text.RuleBasedBreakIterator.previous(RuleBasedBreakIterator.java:626) at java.text.RuleBasedBreakIterator.preceding(RuleBasedBreakIterator.java:774) at java.awt.font.LineBreakMeasurer.nextOffset(LineBreakMeasurer.java:363) at java.awt.font.LineBreakMeasurer.nextLayout(LineBreakMeasurer.java:422) at java.awt.font.LineBreakMeasurer.nextLayout(LineBreakMeasurer.java:395) at net.sf.jasperreports.engine.fill.TextMeasurer.renderParagraph(TextMeasurer.java:294) at net.sf.jasperreports.engine.fill.TextMeasurer.measure(TextMeasurer.java:249) at net.sf.jasperreports.engine.fill.JRFillTextElement.chopTextElement(JRFillTextElement.java:535) at net.sf.jasperreports.engine.fill.JRFillTextField.prepare(JRFillTextField.java:529) at net.sf.jasperreports.engine.fill.JRFillElementContainer.prepareElements(JRFillElementContainer.java:343) at net.sf.jasperreports.engine.fill.JRFillCellContents.prepare(JRFillCellContents.java:357) at net.sf.jasperreports.engine.fill.JRFillCrosstab$CrosstabFiller.prepareDataCell(JRFillCrosstab.java:1515) at net.sf.jasperreports.engine.fill.JRFillCrosstab$CrosstabFiller.prepareRow(JRFillCrosstab.java:1439) at net.sf.jasperreports.engine.fill.JRFillCrosstab$CrosstabFiller.fillRows(JRFillCrosstab.java:1351) at net.sf.jasperreports.engine.fill.JRFillCrosstab$CrosstabFiller.fillVerticalCrosstab(JRFillCrosstab.java:916) at net.sf.jasperreports.engine.fill.JRFillCrosstab$CrosstabFiller.fill(JRFillCrosstab.java:863) at net.sf.jasperreports.engine.fill.JRFillCrosstab.prepare(JRFillCrosstab.java:495) at net.sf.jasperreports.engine.fill.JRFillElementContainer.prepareElements(JRFillElementContainer.java:343)
  13. I created a feature request a while ago (after the previous post in this topic), but there doesn't seem to have been any development for this. Are we the only ones trying to embed rtf (or html) in reports? Are there workarounds?
  14. The pdf with stationary [file name=TestReport_withstationary.pdf size=1564]http://www.jasperforge.org/components/com_joomlaboard/uploaded/files/TestReport_withstationary.pdf[/file]
  15. The pdf without stationary [file name=TestReport_withoutstationary.pdf size=1364]http://www.jasperforge.org/components/com_joomlaboard/uploaded/files/TestReport_withoutstationary.pdf[/file]
  16. Here are the pdf's and all jrxml's. I'm sorry, there is still some custom code in there regarding the query that is needed in our environment. But I hope you can see what is the problem? [file name=TestReport_withstationary.jrxml size=6715]http://www.jasperforge.org/components/com_joomlaboard/uploaded/files/TestReport_withstationary.jrxml[/file]
  17. Attached is the stationary that I'm using. The subreport seems to stretch (see the static text I added below the subreport) , but the details section of the subreport doesn't stretch (I have a pagefooter in the subreport but this isn't shown at the bottom of the space provided for the subreport, like if I view the report itself (so not using it as a subreport). [file name=stationary.jrxml size=3137]http://www.jasperforge.org/components/com_joomlaboard/uploaded/files/stationary.jrxml[/file]
  18. What I was thinking about is whether it is possible to extend the templates. Next to <style> elements, they could contain e.g. <title>, <pageFooter>, <pageHeader> elements which in turn contain report elements. The result when referring to such a template is the merge of all elements in the template and the report on band level. If elements from the stationary fall out of the report's bands, the same error can be thrown that is now thrown when an element falls out of it's own band. Or am I missing something here? Btw: I have tried solving the stationiary/template issue in the following way: Each stationary I create contains a parameter "template" (type = JasperDesign). Each template I create contains a parameter "stationary" (type = String) When loading a report I always check if it contains a parameter "stationary". If this is the case, I load the stationary in turn; set the parameter "template" to point to my already loaded report's JasperDesign and continue with filling the stationary (and change the name of the JasperPrint to be the report's name instaed of the stationaries name) This works fine. But I have a problem because the details section of the template file does not stretch to fill the complete subreport element in the stationary. Resulting in my subreport being collapsed instead of going to the bottom of the page. (Are you still following? :whistle: )
  19. We are currently busy with integrating JasperReports as our reporting tool in our application. But our software will work in an environment where currently reports are generated using stationary templates. You can consider a stationary template as a bag (with some text and images) that is reused for all generated reports (and these can be very different in turn). The biggest request for this functionality is that changing the stationary template is sufficient to change all future reports. I have been looking into the query example for using the .ent files but I don't think this is exactly what we need. It would mean that we need to create for each section such an ent file instead of creating 1 stationary template. Furthermore they want to be able to handle such a stationary as a normal design (open it in our designer and add text/images). Is there such a concept that I have missed? Or are you guys planning to implement something similar? For reusing styles, I very much like the templates (of course). But style only is not sufficient for us, we need some content in different sections as well :-(
  20. Hello, I'm using a crosstab with a subdataset which contains a field called "ReportResult.modificationDate" which is of a custom class TimeStamp. In my rowGroup I define the bucket as follows: <bucket order="Descending"> <bucketExpression class="java.lang.String"> <![CDATA[$F{ReportResult.primaryKey}]]> </bucketExpression> <comparatorExpression> <![CDATA[((Date)$F{ReportResult.modificationDate}.getJDKDate())]]> </comparatorExpression> </bucket> getJDKDate() returns a java.util.Date which implements the Comparable interface. But I always get the exception that the field ReportResult.modificationField cannot be found. If I put this field in the bucketExpression for testing purpose, (and remove the comparatorExpression element) then it works ok (no errors). If I define the field in my main dataset it works ok as well. Can anyone help me with this one? Wkr, Sofie
  21. Hey, We are using JasperReports to generate reports in rtf. But the resulting rtf files should contain some autotexts. I succeeded in doing this a few times with jasperreports 1.3.0 by adding rtf code in a static text element: <text><![CDATA[{fieldflddirty{*fldinst {AUTOTEXT ADDRESSEE.CODE \* MERGEFORMAT }}{fldrslt {ADDRESSEE.CODE}}}]]></text> But the result of the exported rtf files was not always ok (sometimes it worked, and sometimes not), so I upgraded to jasperreports 2.0.0 hoping it would be solved. But now I don't succeed in doing it anymore because all backslashes are replaced by double backslashes in the resulting rtf. I don't see a way to avoid this in the code. Is this something you would allow in the future or do you see a workaround I can implement? Wkr, Sofie
×
×
  • Create New...