Sep 20, 2015

Using html in jasper ireport

Sometimes we required to use html tag in jasper ireport.

we can use html in jasper using two methods.

  •  Using Html component 

            You can use Html component to get required output of html script.


            Drag and drop Html component and select HTML Content Exp.  property.

            
            Provide appropriate Expression and click on Preview to run the report.

  • Using Markup property of a Text Field


           You can also use Markup Property of Text Field to show text in html scipt.

           Select a Text Field and goto Markup Property 


           Select html from the list 



           Provide appropriate html Scipt in Text Field Expression of Text Field.

           Click on Preview to run the report.



No comments:

Post a Comment