Jump to content
Changes to the Jaspersoft community edition download ×

Xecu

Members
  • Posts

    9
  • Joined

  • Last visited

Xecu's Achievements

  1. If I understood you correctly, you mean i should copy the height-stretching textfield of the master-report and insert it with the same width in the subreport? That was my initial solution, but the problem is that the copied text is still rendered in the finished pdf. It might not be visible there, but it is still searchable and selectable. If it were not for these 2 issues, this solution might be viable for me again.
  2. Thanks for the quick response. I tried that, but could see no change in the rendered pdf. Also, all elements in Subreport B (the one with the dates) are set to stretch with the tallest object. I think the problem is, that the elements and bands in Subreport B dont know, that their reports height has changed, and thus still think their band / biggest items have the default height of 17px.
  3. Hi, I am struggling with a report that should spawn a table where each row can have 1 or more subrows. I solved this by using this structure: Master renders the tableheaders, creates each row via Subreport ASubreport A renders each row, creates each subrow via Subreport BSubreport B renders each subrowBy default, each row is 17px in height, but can get taller if the content is causing a linebreak in a table-cell. If this happens in Subreport A, then Subreport B is not stretching itself to keep up with Report A´s height. In the end, Subreport A creates a row with ,e.g. a height of 25px, while Report B´s row is only 17px height, resulting in a small gap. Does anyone know how to make Report B stretch with Report A ? What i tried so far: Playing with the strech-options of both subreportsCopying the line-breaking text of report A to report B. Sadly, this is not an option anymore.Using the Table-element instead of Subreport B. Same issue.In the image below, the first 2 columns are part of Subreport A and the last 2 columns are part of Subreport B Edit: Fixed Question styling
  4. The font defined in the template is not nessessarily the font that is used to create the pdf. If the font is not installed or unaivable, then a fallback-font will be used instead. If you want to use a custom font for PDF´s, then go to define a new one via Window > Preferences > Jaspersoft Studio > Fonts. But beware, the dialog is kind of buggy in this version. See also: http://community.jaspersoft.com//questions/822999/jasper-studio-55-fonts-pdf http://community.jaspersoft.com/jaspersoft-studio/issues/3360
  5. Can you post the relevant part of your report? Also, are you using a subreport ? REPORT_COUNT is not a Parameter but a Variable of your Report (thats why its prefixed with $V instead of $P).
  6. I´ve managed to fix a part of this. The PDF didnt display any font, because the embedded font used an invalid encoding. Changing the decoding to cp1250 made the font successfully embedding into the pdf. Now I just need to know how I can tell Jasper add more fonts to the "PDF Font Name"-Dropdown. Edit: I fixed the second part of this and it seems to be a bug. I figured out that If I dont touch the "PDF Font Name"-Dropdown, so it remains empty, the exported PDF will use my font. However, if the dropdown has been touched before, e.g. by inputting something in it or choosing a value, and then was cleared, Jasper seems to work an empty String as font name. I will further observe this behavious and open a Ticket for it. To summarize this: If you create a new font family and do not want to use any of the fonts that Jasper offers you in the "PDF Font Name"-Dropdown, then DO NOT touch it! If you already selected a value then you have to delete and re-add your font family.
  7. Hello, I am working on a report which will finally end up as PDF. I am using a custom font for which i created a new font family inside Jasper Studio (Window -> Preferences -> Jasper Studio -> Fonts). My problem is, that the "PDF Font Name" -Dropdown contains only a small portion of the fonts installed on my system. Where is the rest and how can i tell Jasper to use these for PDF´s? Also, if I use my newly created font in my template and export it to PDF, Jasper wont render any text at all. If instead I use the pure custom font, it works. Anyone else having these problems? Thanks in advance and best regards.
  8. Hello, I am using Jasper Studio 5.5 and try to create a report using a JSON-Datasource. My example json-file looks as followed: [/code]{ "dto": [ { "item": { "active": 1 }, "itemProjects": [ {"id": 1}, {"id": 2} ] }, { "item": { "active": 1 }, "itemProjects": [ {"id": 3}, {"id": 4} ] } ]} To summarize it: I have an array of "dto"-objects. Each dto contains an object "item" and an array of "itemProjects". Using the Select-Query "dto" and the Fields "item.active" allows me to read the property "acttive". However I have yet to find a way to read the properties from the sub-arrays. I tried it with different Select-Strings and Fieldnames, but had no success. I also tried passing the array as parameter to a subreport, but this also didnt worked (the generated report showed empty fields). Does anyone know, how to correctly read data from an array inside an array in JSON ? best regards.
×
×
  • Create New...