manavilai
asked on
Multiple Cell Formats in JXL
I am in need to create a excel document in JXL.
However one of the Cell Contents need to have value as "My Company TM"
The only catch is that TM should be superscripted.
Any ideas to accomplish the same.
Thanks,
manavilai
However one of the Cell Contents need to have value as "My Company TM"
The only catch is that TM should be superscripted.
Any ideas to accomplish the same.
Thanks,
manavilai
see this example http://kickjava.com/src/jxl/demo/Write.java.htm
ignore my first comment, you now specify it with the writeable fonts style
writeableFont.setScriptSty le(ScriptS tyle.SUPER SCRIPT);
see the example above for full example
you can also then apply that font to one of your own cell formats if need be
writeableFont.setScriptSty
see the example above for full example
you can also then apply that font to one of your own cell formats if need be
ASKER
savant,
I am in agreement with you.If the whole text has to be superscripted.
However my requirement is that part of the string should be superscripted.
My Company TM
only TM should be superscripted
thanks,
manavilai
I am in agreement with you.If the whole text has to be superscripted.
However my requirement is that part of the string should be superscripted.
My Company TM
only TM should be superscripted
thanks,
manavilai
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
thats what I suggested in my last comment
ASKER
providing the ascii values in my comment.
font.setAlignment( Alignment.SUPERSCRIPT);