Jump to content
Changes to the Jaspersoft community edition download ×

I am Leo

Members
  • Posts

    98
  • Joined

  • Last visited

Community Answers

  1. I am Leo's post in How to auto resize font size to fit text in textfield? was marked as the answer   
    <textField textAdjust="ScaleFont"> <reportElement x="0" y="0" width="1520" height="15" uuid="6cb61704-2f0a-4b05-b714-f0219175f001"> <property name="com.jaspersoft.studio.element.name" value="content"/> </reportElement> <box topPadding="35" leftPadding="35" bottomPadding="35" rightPadding="35"/> <textFieldExpression><![CDATA[$F{point4}]]></textFieldExpression></textField>[/code]Just use textAdjust="ScaleFont" in your text field. 
  2. I am Leo's post in SUBREPORT_DIR as relative path was marked as the answer   
    I have a file named some-image.png I put in src/main/resources/static/images
    And in my jasper template:
     
    <image onErrorType="Blank"> <reportElement style="some-row" mode="Opaque" x="0" y="0" width="3116" height="843" forecolor="#FFFFFF" uuid="33d8b7cf-29f9-45ee-9397-4090f1e648a2"> <property name="com.jaspersoft.studio.element.name" value="someImg"/> <property name="com.jaspersoft.studio.unit.width" value="px"/> <property name="com.jaspersoft.studio.unit.height" value="px"/> </reportElement> <box> <pen lineWidth="0.0" lineColor="#FFFFFF"/> </box> <imageExpression><![CDATA["static/images/some-image.png"]]></imageExpression></image>[/code]You can point to your subreport use the above way.
    Hope this can help you.
  3. I am Leo's post in how to know page number inside a list was marked as the answer   
    In my opinion,
    Because your list is on page #1 so that It will print the page number is 1.
    So for the workaround solution, you can calculate the page number base on the total record you have, total record on one page and current index ($V{REPORT_COUNT})
  4. I am Leo's post in How to change template DPI was marked as the answer   
    I scale everything with (300/72)=4.17 times and they are fit with 300 DPI.
×
×
  • Create New...