kadaba Posted May 8, 2008 Share Posted May 8, 2008 Hi, I am new to jasper reports. I was successfully able to create a report. I have a doubt as to how can I span my text across two cells. eg: ----------------- | usage stats | ----------------- the above is my text in a single cell. right now if my text increases the width of the cell increases i.e ------------------------------------ | usage stats for march 2008| ------------------------------------ I want the same text to span across two cells as below -------------------------------------- | usage stats | for march 2008 | -------------------------------------- Can anyone help in this please. Thanks in advance. Link to comment Share on other sites More sharing options...
lshannon Posted May 8, 2008 Share Posted May 8, 2008 I am confused. When you say cell are you talking about in the report design, like a text field? Or do you mean a cell in the exported version of your report (Excel for instance)? Link to comment Share on other sites More sharing options...
kadaba Posted May 8, 2008 Author Share Posted May 8, 2008 You are right. I have exported to a Excel format. I forgot to mention that. It is in the excel sheet where I have the mentioned problem. cell refers to each block in the excel sheet. I tried setting the X and the Y to different values in the design template so as to achieve the solution, but I have not been able to do so. Link to comment Share on other sites More sharing options...
lshannon Posted May 8, 2008 Share Posted May 8, 2008 Ok, I am not sure if what you are describing can be done, although I am still not 100% sure I understand the requirement. Someone more senior may have more details. On a side note, this blog entry may help a little. It covers some of the JR options when configuring the Excel Exporter. I am not sure if you are aware of these, or if any of them will fix your issue but if you continue using the API and plan to work in Excel you should know about them. http://www.jasperforge.org/index.php?option=com_mamblog&Itemid=109&task=show&action=view&id=523&Itemid=109 Link to comment Share on other sites More sharing options...
kadaba Posted May 9, 2008 Author Share Posted May 9, 2008 I will go through the link that you have given.Thank you Link to comment Share on other sites More sharing options...
kadaba Posted May 9, 2008 Author Share Posted May 9, 2008 These files are for your reference of my requirement. [file name=Images.zip size=145735] Link to comment Share on other sites More sharing options...
kadaba Posted May 9, 2008 Author Share Posted May 9, 2008 The images.zip contains two images of the report I have generated. I am not happy with the way the report looks so , The requirement image.zip contains my requirement. Kindly look into them and help me out. meanwhile I ill go through the link. Thank you [file name=Requirement_Image.zip size=80180] Link to comment Share on other sites More sharing options...
lshannon Posted May 9, 2008 Share Posted May 9, 2008 Ok I see now. I am not sure how this could be done. Perhaps increasing the width of the title text field and then adding some left padding to it to push the text to the right? Most times when I export to Excel clients are looking for more of a spreadsheet style data dump. I usually don't put in titles or page headers. Just the columns headers and the data in most cases. Sorry I am not able to be of more help. Good luck! Link to comment Share on other sites More sharing options...
kadaba Posted May 9, 2008 Author Share Posted May 9, 2008 Well its a similar requirement but I need to show to what environment or region the data dump belongs to , so I have to include a title for the report.I will try it out and let you know if I have some luck.Thanks. 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