phpjasperxml icon indicating copy to clipboard operation
phpjasperxml copied to clipboard

textfield in detail band cannot strecth to max height, how to solve this ?

Open anggadedysaputro opened this issue 1 year ago • 22 comments

gambar

anggadedysaputro avatar Oct 04 '24 23:10 anggadedysaputro

There is option stretch text in properties

kstan79 avatar Oct 05 '24 00:10 kstan79

gambar

in text adjust ? i try set to stretch height not work

gambar

anggadedysaputro avatar Oct 05 '24 00:10 anggadedysaputro

I think Stretch height is correct, but I wondering why cause this. I no face this issue before

kstan79 avatar Oct 05 '24 02:10 kstan79

do you have any suggestions mr @kstan79 ?

anggadedysaputro avatar Oct 05 '24 05:10 anggadedysaputro

I mean this problem should not exists. You may check band setting too?

kstan79 avatar Oct 05 '24 12:10 kstan79

i create default setting band from jasper not change any settings

anggadedysaputro avatar Oct 05 '24 13:10 anggadedysaputro

simple example test in jasper studio gambar test in localhost gambar this is my file jrxml code -> new 2.txt

anggadedysaputro avatar Oct 05 '24 13:10 anggadedysaputro

Set text align top

kstan79 avatar Oct 06 '24 00:10 kstan79

work correctly mr @kstan79, but the final result of height in each textfield not same gambar

anggadedysaputro avatar Oct 06 '24 02:10 anggadedysaputro

Yes, so you should not use text bolder in this case. Try draw a line start from x0, y0 to xend at detail band. It give you similar look

kstan79 avatar Oct 06 '24 03:10 kstan79

i try to add line from basic element tool bar not working mr @kstan79 gambar

anggadedysaputro avatar Oct 06 '24 08:10 anggadedysaputro

add top only, dont add bottom. no point

kstan79 avatar Oct 06 '24 13:10 kstan79

the horizontal line is working if use top only, but not symetric line,, then the vertical line not stretch to tallest height of textfield

gambar

anggadedysaputro avatar Oct 06 '24 23:10 anggadedysaputro

Use background band

kstan79 avatar Oct 07 '24 01:10 kstan79

not working mr @kstan79

anggadedysaputro avatar Oct 07 '24 01:10 anggadedysaputro

usually design format will put total at last page footer, and you use background to draw a rectangle + vertical line for break column. refer examples

Screenshot 2024-10-07 at 11 59 06 AM

kstan79 avatar Oct 07 '24 02:10 kstan79

still not working, is there something wrong? gambar gambar

anggadedysaputro avatar Oct 07 '24 04:10 anggadedysaputro

you need to think how to draw background table via background band. Continue Try yourself

kstan79 avatar Oct 07 '24 06:10 kstan79

i does'nt understand mr @kstan79, may I ask for an example of a jrxml file?

anggadedysaputro avatar Oct 07 '24 06:10 anggadedysaputro

below is example of detail band, make it full height and draw vertical line

Screenshot 2024-10-07 at 3 02 10 PM

kstan79 avatar Oct 07 '24 07:10 kstan79

the line cannot symetric mr @kstan79.. it's just that the line length cannot adjust the content gambar I want it to look like the image below, is it possible? gambar

anggadedysaputro avatar Oct 07 '24 09:10 anggadedysaputro

It is not supported, I did some research before but it can't solve when content go multiple pages.

kstan79 avatar Oct 07 '24 10:10 kstan79

ok thank you mr @kstan79

anggadedysaputro avatar Oct 08 '24 12:10 anggadedysaputro