java - HTML code in Dynamic jasper -


i tried add html styled text dynamic jasper report

jrdesignband band = new jrdesignband();         band.setheight(20); // set band height         jasperdesign jasperdesign = new jasperdesign();          jrdesigntextfield textfield = new jrdesigntextfield();          textfield.setx(0);  // x position of text field.         textfield.sety(0);  // y position of text field.         textfield.setwidth(860);    // set width of text field.         textfield.setheight(20);    // set height of text field.         jrdesignexpression jrexpression = new jrdesignexpression(); // new instanse of expression. need create new instance when need set expression.         jrexpression.settext("<p>text  &nbsp;  &nbsp;  &nbsp; space</p>"); //  added string before field in expression.          textfield.setexpression(jrexpression);         textfield.setmarkup("html");         band.addelement(textfield);         ((jrdesignsection) jasperdesign.getdetailsection()).addband(band);         jasperdesignviewer.viewreportdesign(jasperdesign); 

but text still has html tags.

as far know, html tags allowed limited , basic text formatting.

<b>bold</b> <i>italic</i> <u>underlined</u> 

and thats it.

there discussion here "html" , "styled" markup having issues when exporting pdf http://community.jaspersoft.com/questions/521757/html-markup-pdf


Comments

Popular posts from this blog

Hatching array of circles in AutoCAD using c# -

ios - UITEXTFIELD InputView Uipicker not working in swift -

Python Pig Latin Translator -