cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

convert HTML style into PDF in Java Report

mingye8899
MEGA Partner
MEGA Partner

Hi,

I have Java code like this in Report:

 

Text nodesTitle=new Text("<br><h2 style=\"margin-left:380px;\">Assessment nodes</h2>", false);
nodesTitle.isHtml(true);
reportContent.addText(nodesTitle);

 

and when I try to generate the PDF, it seems doesn't recognize the html code.

and the output is plain html code:

 

<br><h2 style=\"margin-left:380px;\">Assessment nodes</h2>

 

you can also see in the attachments.

 

Mega Version: Hopex V1R3 CP12

 

Any suggestion or ideas?

 

Thanks

1 Reply

FM_MEGA
Super Contributor

You need to create your own Render.  Check out the article Writing Java Report Renderers (Advanced) in the technicial articles.