Jump to content
We've recently updated our Privacy Statement, available here ×

tony-dfs

Members
  • Posts

    7
  • Joined

  • Last visited

tony-dfs's Achievements

Rookie

Rookie (2/14)

  • Week One Done
  • One Month Later
  • First Post Rare
  • Conversation Starter Rare

Recent Badges

0

Reputation

  1. For example, this html/css work : <html>hello<div class='div-fullpage'>Div 2<h1>title</h1></div><span style="text-decoration: underline; color: red;">underligned red text</span></html> But css attributes like margin-top, padding-left, etc ... doesn't work. An other problem is bold or italic in CSS doesn't work, so i tried to use <b> or <strong> tags but the text is not displayed in bold. <html><b>hello</b></html> in this case, the text is display in the report but not in bold...
  2. <textField> <reportElement x="0" y="30" width="555" height="610" backcolor="#FFFFFF"/> <textElement markup="html"/> <textFieldExpression><![CDATA[$V{myHtmlVar}]]></textFieldExpression> </textField> Hi everyone, I have a problem with my report, as you can see above, I use a variable to inject HTML into my report. Everything works as expected, but <b> , <i> and <strong> tags doesn't work. I use "Arial" as font to generate my report. I only want to put some part of my html in bold, i cannot use <style> tag because it will apply to all my report... Any ideas ? Thx
  3. Hi, Yeah, i saw that in the doc, but <b> and <i> doesn't work. <textElement markup="html"/> <textFieldExpression><![CDATA[$V{myHtmlFile}]]></textFieldExpression> In this code, even if my variable "myHtmlFile" contains <b> tags, it doesn't apply to my text...
  4. Hi everyone, Someone may have an answer to my question, I inject HTML into a pdf report, tag attribute "style" in <h2> doesn't work. For example in this case <h2 style="color:blue">myText</h2> and the color is not applied... I replace this tag by a span and it works, idk why... I use <textElement markup="html"/> for the HTML, it works well for the layout, not for the font style, size, color, etc ...
  5. The parameter synthesis contains the html/css. The html part is correctly display with the markup="html" but CSS doesn't work
  6. Hello everyone, I am currently updating an application that uses jasperreports in version 6.0.3 to the latest. Everything works, PDF reports are correctly produced, but I noticed a bug, in fact the CSS style is not applied. Here is an example of what I write in my jrxml file: <parameter name="synthesis" class="java.lang.String"/> <textField textAdjust="StretchHeight"> <reportElement x="20" y="60" width="555" height="3" uuid="d127gg55-c50a-4298-b5y7-7f17596bu752"> <property name="com.jaspersoft.studio.unit.y" value="px"/> <property name="com.jaspersoft.studio.unit.height" value="px"/> </reportElement> <textElement markup="html"/> <textFieldExpression><![CDATA[$P{synthesis}]]></textFieldExpression> </textField> I looked for solutions, there are flying saucer that could work or maybe I can use jrtx files, I don’t know if there is any other solution. Anybody got any idea how to fix this ? Thx
×
×
  • Create New...