Jump to content

Spanning text across two cells


kadaba

Recommended Posts

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

  • Replies 8
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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

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

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

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

 

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

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