xchen Posted October 9, 2009 Share Posted October 9, 2009 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now