• หน้าแรก
  • หลักสูตร
  • บทความ
  • ร้านค้า
  • ติดต่อเรา
    มีคำถามเกี่ยวกับ odoo ?
    (02) 4302475
    info@odoothaidev.com
    Login
    Odoothaidev - We are Odoo professional in Thailand
    • หน้าแรก
    • หลักสูตร
    • บทความ
    • ร้านค้า
    • ติดต่อเรา

      iReport

      • บ้าน
      • บล็อก
      • iReport
      • iReport Dynamically changing font size

      iReport Dynamically changing font size

      • โพสโดย admin
      • หมวดหมู่ iReport, Jasper Server & Server, Reporting ระบบรายงาน
      • วันที่ กันยายน 9, 2019

      Today I will show you how to dynamically change font size in jasper reports using iReport designer tool. To change font size dynamically we need to create two variables, and give a readable name to that variables. To create variables follow these steps.

      1- Go to your Report Inspector tab
      2- Expand Variables
      3- Right click on Variables and select Add Variables

      4- After adding variable give a readable name to variable and set variable expression to that variable.

      5- Revise above steps for second variable with different variable name. Now that you have two variables. Now we use that variable with different fonts in our report using “Print When Expression” property. In this property we find length of variable expression  which we have given in step no 4.

      Print When Expression

      Print this statement when this expression is true.

      6- Now click on “Print When Expression” property and type following code.

      ($F{you_field_name}.length() > 28)&&($F{you_field_name}.length())

       

      In the above code we have checked that if the field length is greater than 28 then print this field other wise hide this field. Similarly we can do this with other field. Now we have two fields and we can easily set font size on that field. Means if the length of fields meets above condition than print those with field value with your desired font size otherwise display another field with different font size.

       

      แท็ก:changing, Dynamic, font, ireport, size

      • Share:
      อวตารของผู้เขียน
      admin

      โพสต์ก่อนหน้า

      How to display images dynamically in jasper report using iReport
      กันยายน 9, 2019

      โพสต์ถัดไป

      How to add custom font in ireport
      กันยายน 9, 2019

      คุณอาจชอบ

      ตัวอย่างเอกสารจาก Odoo
      11 กันยายน, 2021
      ตัวอย่างเอกสาร Odoo
      21 มีนาคม, 2020
      ตัวอย่างเอกสารจากระบบ Odoo
      21 มีนาคม, 2020

      ค้นหาบทความ

      หมวดหมู่

      หมวดหมู่

      • Accounting
      • Adobe XD
      • API
      • Blog
      • Business
      • Buttons
      • CRM
      • Custom Fields
      • Design / Branding
      • Django
      • Ecommerce
      • ERP
      • ERP Flow
      • Express
      • Flectra
      • Form View
      • Frontend
      • Github
      • Github
      • Grant Chart
      • Header
      • iReport
      • Jasper Server & Server
      • Jaspersoft Studio
      • Java
      • JSON-RPC
      • Lazada
      • Linux
      • MLM
      • MRP
      • Nignx Proxy
      • NodeJS
      • Odoo 10
      • Odoo 12 Module
      • Odoo 13
      • Odoo 14 Development
      • Odoo 16
      • Odoo 8
      • Odoo 9
      • Odoo API
      • Odoo Certification
      • Odoo Developer
      • Odoo Ebook
      • Odoo Enterprise
      • Odoo ERP
      • Odoo Event
      • Odoo Implement
      • Odoo Inventory
      • Odoo Report
      • Odoo V15
      • Open Source
      • Open-office
      • OpenERP 7.0
      • PhantomJS
      • Postgres SQL
      • Programming Language
      • Project Management
      • Python
      • Python3
      • Qweb
      • Reporting ระบบรายงาน
      • RML Report
      • Search View and Filters
      • Social Network
      • Statusbar
      • Ubuntu
      • Uncategorized
      • Voip & Call Center
      • Warehouse Management
      • WMS
      • Woocommerce
      • Workflow
      • XML-RPC
      • การ Implement
      • การเก็บข้อมูล Pre-Requirement
      • การเตรียมตัวเพื่อใช้งาน erp
      • ความรู้ด้านการตลาด CRM
      • ธีมเว็บไซต์ Odoo
      • ธุรกิจบริการ
      • ธุรกิจประเภทจัดอบรมสัมมนา
      • ธุรกิจสิ่งพิมพ์
      • นักพัฒนา
      • ประเภทธุรกิจที่เหมาะกับ Odoo
      • ระบบบัญชี
      • ระบบเคลม
      • ลิขสิทธิ์ – License
      Introduction LearnPress – LMS plugin

      Introduction LearnPress – LMS plugin

      Free
      From Zero to Hero with Nodejs

      From Zero to Hero with Nodejs

      Free
      Learn Python – Interactive Python

      Learn Python – Interactive Python

      $69.00

      บทความล่าสุด

      V16 Planned Date of Tasks are invisible.
      12ก.พ.2023
      Odoo Implement Methodology
      29พ.ย.2022
      Odoo Enterprise Subscription Agreement
      29พ.ย.2022
      (02) 430-2475
      info@odoothaidev.com
      Facebook Twitter Google-plus Pinterest

      Odoothaidev by OdooTeaM.

      • Privacy
      • Terms
      • Sitemap
      • Purchase

      เข้าสู่ระบบด้วยบัญชีเว็บไซต์ของคุณ

      ลืมรหัสผ่าน?

      Click to Copy