Jump to content
Changes to the Jaspersoft community edition download ×

Help , Width of Text Fields for PDF


jasper10

Recommended Posts

I have developed a iReport which gets the data from dtabase. The field in database is "LONG" and store data as shown below

JOHN SMITH .....................SAN FRANSISCO

SARA THOMAS...........................DALLAS

I am able to pull this data to iReport in a Text Field. Is there any way/settings of TestField which can show this result in iReport in Fixed width such as


JOHN SMITH ............................SAN FRANSISCO

SARA THOMAS...........................DALLAS



Please let me know if it is possible in iReport 3.7.1



Post Edited by m0nika at 04/06/2010 23:09
Link to comment
Share on other sites

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

uhm... you can use a font with fixed size to show fixed width label...

or

a better way is to split the string (Name and City are in the same db column???) in two separate text field, one for each column, so you can use different alignment for them.
you can split the "long" string in the query you make to retrieve your data, or in the text fied (using String.substring(...))

 

______________________________
if it works... KARMA point please!    : ) 


 

 

Link to comment
Share on other sites

Thanks. In my case Name and City are in the same db column as

BOB JOHNSON ...................................SAN FRANSISCO

BOB........................................ATLANTA

 

 

I wanted to show this in PDF as

OB JOHNSON ...................................SAN FRANSISCO

BOB                   ...................................ATLANTA

 

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