Jump to content
Changes to the Jaspersoft community edition download ×

mnaeher

Members
  • Posts

    4
  • Joined

  • Last visited

mnaeher's Achievements

Rookie

Rookie (2/14)

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

Recent Badges

0

Reputation

  1. That solution worked for me, too. Thank you very much.
  2. Ooops, looks like my markup examples have scrambled the text ... OK, next try ... Hi There, I have a problem using styled text in PDF export. My application uses JasperReport for creating PDF documents. These are made of text modules, which are stored in my datasource. Within these text modules, there are small parts in bold, italic, and underline. At first, I tried HTML markup <b>, <i>, <u>. That worked in the iReport preview, but in the PDF, only <u> had an effect. Looking at the examples, I found the <styleisBold="true" pdfFontName="Helvetica-Bold">. OK, that worked in PDF also, but has the disadvantage that an explicit font name has to be specified in the datasource. And that is bad because different users will use the same datasource with different layouts (including different fonts). And with the font name in the <style>, all bold text will have the same font, ignoring what font is specified in the jrxml for thereport. Is there a way to have bold or italic text in PDF export without specifying the font in the datasource ? Note: I can not put the whole textfield in bold because it's always only a few words that are in bold. Thanks and Regards, Markus
  3. Ooops, looks like my markup examples have scrambled everything else ... OK, complete text again ... Hi There, I have a problem using styled text in PDF export. My application uses JasperReport for creating PDF documents. These are made of text modules, which are stored in my datasource. Within these text modules, there are small parts in bold, italic, and underline. At first, I tried HTML markup <b>, <i>, <u>. That worked in the iReport preview, but in the PDF, only <u> had an effect. Looking at the examples, I found the <style isBold="true" pdfFontName="Helvetica-Bold">. OK, that worked in PDF also, but has the disadvantage that an explicit font name has to be specified in the datasource. And that is bad because different users will use the same datasource with different layouts (including different fonts). And with the font name in the <style>, all bold text will have the same font, ignoring what font is specified in the jrxml for the report. Is there a way to have bold or italic text in PDF export without specifying the font in the datasource ? Note: I can not put the whole textfield in bold because it's always only a few words that are in bold. Thanks and Regards, Markus
  4. Hi There, I have a problem using styled text in PDF export. My application uses JasperReport for creating PDF documents. These are made of text modules, which are stored in my datasource. Within these text modules, there are small parts in bold, italic, and underline. At first, I tried HTML markup , , . That worked in the iReport preview, but in the PDF, only had an effect. Looking at the examples, I found the OK, this works in PDF also, but has the disadvantage of having to specify an explicit font name in the datasource. This is bad because different users will use the same datasource with different report layouts (including different fonts). And with the font name in the datasource, all bold text will always have that font, no matter what font is specified in the jrxml for the report... Is there a way to have bold / italic text in PDF export without having the font name in the Note: I can not put the whole textfield in bold, because it's always only a small part of the text module that is in bold. Thanks and Regards, Markus
×
×
  • Create New...