Jump to content
JasperReports Library 7.0 is now available ×

Different font style in a filed element ???


2005 IR Help

Recommended Posts

By: nkoffee - nkoffee

Different font style in a filed element ???

2004-07-26 22:13

I know there is different font formatting in a text element using style.

But how can i use different font style in a String filed element ?

 

 

 

 

By: nkoffee - nkoffee

RE: Different font style in a filed element ???

2004-07-26 22:21

who can help me?

I really need to use different font style in my filed element whose type is string

 

 

 

 

By: Mykel Alvis - evilarchitect

RE: Different font style in a filed element ?

2004-07-26 23:34

Maybe I don't understand. You change the font by changing...the font attribute.

 

Field elements are formatted according to the textfield that they're placed on the page with. Change the format of the textfield and you change the format of the displayed data field.

 

You'll probably want to define some fonts in the fonts element of the outline. Then set a default font for the report. Then put fields on the report. Everything should be the default unless over-ridden in the properties of the element.

 

Is this what you are trying to accomplish?

 

 

 

 

By: nkoffee - nkoffee

RE: Different font style in a filed element ???

2004-07-26 23:51

i mean use several font style in a single filed.

for example my filed element's type is String

and it's textfield exprission is

$F{field1} + $F{field2},

and field1 i want to use font style1 and field2 i want to use font style2,how can i do?

thank you all the same for evilarchitect.

 

 

 

 

 

By: Peter Severin - peter_p_s

RE: Different font style in a filed element ?

2004-07-27 01:19

Check the "styledtext" sample that comes with the JasperReports distribution.

 

Best regards,

 

Peter Severin

 

 

 

 

By: nkoffee - nkoffee

RE: Different font style in a filed element ???

2004-07-27 01:41

my mistake !

when i recheck the sample

i got it

thank you very muck Peter

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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