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

skulaz

Members
  • Posts

    4
  • Joined

  • Last visited

 Content Type 

Profiles

Forum

Events

Featured Visualizations

Knowledge Base

Documentation (PDF Downloads)

Blog

Documentation (Test Area)

Documentation

Dr. Jaspersoft Webinar Series

Downloads

Everything posted by skulaz

  1. Thank you Lucian for your reply. It means that i could not set different font size for each row of my report at runtime? Regards Nicola
  2. Thank you for your reply, but i need to determine the font size at runtime, when filling the report, using an expression. Any suggestion?
  3. Hi Guys, I'm trying to force the size of a single text element of my jasper print using the Custom Element Property "net.sf.jasperreports.default.font.size" But the result never changes. I've seen, debugging the source code that in the class JRProperties there is this method called by JRBaseFiller at line 400: .............. public static List getProperties(JRPropertiesMap propertiesMap, String prefix) { int prefixLength = prefix.length(); List values = new ArrayList(); if (propertiesMap != null) { String[] propertyNames = propertiesMap.getPropertyNames(); for (int i = 0; i < propertyNames.length; i++) { String name = propertyNames; if (name.startsWith(prefix)) { String suffix = name.substring(prefixLength); String value = propertiesMap.getProperty(name); values.add(new PropertySuffix(name, suffix, value)); } } } return values; } ......... debugging the code line in red i see that it expects in the name of my custom property a string like this net.sf.jasperreports.export. So I added this string in the name of my attribute changing the attribute name in "net.sf.jasperreports.export.net.sf.jasperreports.default.font.size" and i successfully entered that if construct, but the output result remains the same: the font for the elements is the default (10px). Do you have any suggestion about this problem? I'm using jasper 3.0.0 Thanks in advance. Bye
  4. I'm trying to force the size of a single text element of my jasper print using the Custom Element Property "net.sf.jasperreports.default.font.size". But nothing happens. I've seen, debugging the source code (ver. 3.0.0) that in the class JRProperties there is this method called by JRBaseFiller at line 400: .............. public static List getProperties(JRPropertiesMap propertiesMap, String prefix) { int prefixLength = prefix.length(); List values = new ArrayList(); if (propertiesMap != null) { String[] propertyNames = propertiesMap.getPropertyNames(); for (int i = 0; i < propertyNames.length; i++) { String name = propertyNames; if (name.startsWith(prefix)) { String suffix = name.substring(prefixLength); String value = propertiesMap.getProperty(name); values.add(new PropertySuffix(name, suffix, value)); } } } return values; } ......... debugging the code line in red i see that it expects in the name of my custom property a string like this net.sf.jasperreports.export. So I added this string in the name of my attribute changing the attribute name in "net.sf.jasperreports.export.net.sf.jasperreports.default.font.size" and i successfully entered that if construct, but the output result remains the same: the font for the elements is the default (10px). I've tried it in jasper 3.1.4 too, but nothing changes. Anyone have any suggestion about this problem? Thanks in advance. Bye
×
×
  • Create New...