Jump to content
Changes to the Jaspersoft community edition download ×

Parameter inside Font attribute


xzquiel

Recommended Posts

Hi!

We are currently supporting a Linux server aside from the current Windows server. As such, hardcoded paths must be removed particlarly from the .jrxml files we're using. I am successful in most cases until I was stucked in the font attribute. Can someone tell me how to insert a parameter inside the font attribute? Following are what I have:

<parameter name="certDirectory" class="java.lang.String">
<defaultValueExpression><![CDATA[]]></defaultValueExpression>
</parameter>
 
<imageExpression><![CDATA[$P{certDirectory}+"certsSolutions.jpg"]]></imageExpression>
 
<textElement textAlignment="Center" verticalAlignment="Bottom">
<font fontName="Arial" size="48" pdfFontName="C:certsarialuni.TTF" isPdfEmbedded="true" pdfEncoding="Identity-H"/>
</textElement>
 
My problem is how to insert the parameter certDirectory into the pdfFontName.
 
Many thanks!
Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...