kunkasurendra Posted March 11, 2008 Share Posted March 11, 2008 Hi, I want to use the common styles for all reports like, For Title --> one style, Page footer --> one style, text field --> one style ,etc., I am planing to create the .JRTX file, In jrtx file i will define the all styles. Is the .JRTX file available to all reports? Or Do we need to place the Style tags into every .JRXML report? Please can any one help me on that. Thanks in advance, Surendra Babu.K. Link to comment Share on other sites More sharing options...
lucianc Posted March 13, 2008 Share Posted March 13, 2008 kunkasurendra wrote: Is the .JRTX file available to all reports? You need to reference the jrtx file in JRXMLs: Code: ..path to jrtx file.. ..[/code] See the "templates" sample for a working example. HTH, Lucian Link to comment Share on other sites More sharing options...
kunkasurendra Posted March 13, 2008 Author Share Posted March 13, 2008 Hi, I have seen the "template" example.It's working fine.If I want add one more style in "styles.jrtx" file,it's not visible in the iReport tool -- Formats==> Styles. I am not able to add the new styles in the existing "styles.jrtx" file.if I added also i am not able to see on iReport Formats--> styles tab. please find the attachment. In styles.jrtx file i have added the 'Times New Roman" style,while I placed the style.jrxml file in iReport,it is not showing in the styles tab. Link to comment Share on other sites More sharing options...
kunkasurendra Posted March 13, 2008 Author Share Posted March 13, 2008 Hi, I have seen the "template" example.It's working fine.If I want add one more style in "styles.jrtx" file, it's not visible in the iReport tool -- Formats==> Styles. I am not able to add the new styles in the existing "styles.jrtx" file.if I added also i am not able to see on iReport Formats--> styles tab. please find the attachment. In styles.jrtx file i have added the 'Times New Roman" style,while I placed the style.jrxml file in iReport,it is not showing in the styles tab. [file name=templates.zip size=2228] Link to comment Share on other sites More sharing options...
lucianc Posted March 13, 2008 Share Posted March 13, 2008 I suggest posting questions related to iReport on the iReport forum, you would have better chances of getting answers. I'm not an iReport expert, so I won't be able to help you with your iReport issues. Regards,Lucian 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