Jump to content
Changes to the Jaspersoft community edition download ×

style template not working at all??


xchen

Recommended Posts

Hi folks,

I follow the sample in templates coming with iReport3.5, I defined a style file: styles.jrtx and put this file in the .jrxml like this:

<template>"styles.jrtx"</template>

(iReport changed it to :  <template><![CDATA["styles.jrtx"]]></template> after compiling.)

The strong thing is that when I applied my styles in styles.jrtx, none of them works. Well even worse, these elements(static text) I did not apply the styles had the text disappeared!!!!

 

Segments of the jrxml file are like this:

...

<template><![CDATA["styles.jrtx"]]></template>

...

<staticText>
    <reportElement style="Column Header" x="0" y="0" width="78" height="20"/>
    <textElement/>
    <text><![CDATA[Last]]></text>
   </staticText>

"Column Header" is a style defined in styles.jrtx:

<style name="Column Header" isBold="true" fontSize="12" backcolor="#FFFF00"/>

 

Any hint is highly appreciated!

 

Shawn

 

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

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...