Page 1 of 1

Extra lines with dynamic resizing

Posted: Wed Jul 27, 2011 10:03 pm
by JosepM
Hi Jan,

Other issue I deal with the extra space when I use the "Stretch the field vertically" versus "Fixed heigth".
Same report with a field with the stretch option selected generated a extra blank lines between the rows. First I thought that maybe I add some extra return after the text but isn't the case.

To try simply change the dynamic resizing and compare the extra lines.

How can I solve this? I forget something to use the stretch option?

Salut,
Josep M

Re: Extra lines with dynamic resizing

Posted: Thu Jul 28, 2011 6:06 am
by JanSchenkel
If there is no return at the end of the data, then the only thing I can think of right now, is that the heigth of the data field in the layout is too tall - this is considered to be the minimum height for the field and the engine wll only stretch, not shrink.

Could you elaborate on the data field? Is it plain, unicode, html or rtf text - or is it formatted using a Printf formula? Does it use a special font - and is it set directly on the field or inherited from the report settings?

Jan Schenkel.

Re: Extra lines with dynamic resizing

Posted: Thu Jul 28, 2011 7:48 am
by JosepM
Hi Jan,

The text is UTF8, this is the field expression.

unidecode(uniencode(sDetail["Description"],"UTF8"))

And the font used is Verdana, Helvetica or the used by the customer so I must adapt it to customers actual designs. The heigth I set to differents but ever left extra space between lines. Attach screenshot.
What is the minimum heigth?

Also I capture when I save and when I open the report again. In the image you can see how the "Detail Line Bar" is moved some pixels down when I the saved version is adjusted at 0 pixels.



Salut,
Josep

Re: Extra lines with dynamic resizing

Posted: Thu Jul 28, 2011 4:06 pm
by JanSchenkel
Thanks for the additional information. I see you're converting from UTF-8 to UTF-16, and then converting to whatever the native single-byte codepage of the platform is.

Try changing the data field expression to:

Code: Select all

uniEncode(sDetail["Description"], "UTF8")
And then in the Inspector palette, change the option 'Format the result as' from 'Text' to 'UnicodeText'

If my memory serves me well, this solved the problem for Japanese field content for another QR user.

Let me know if that does the trick,

Jan Schenkel.

Re: Extra lines with dynamic resizing

Posted: Mon Nov 21, 2011 1:28 pm
by JosepM
Hi Jan,

The same issue, if I put the stretch the field vertically that is what happen.

The data is recovered from a datagrid array.

I need found a solution to this issue, so for reports that normally one page is enought the user need two pages.

Thanks in advance,
Josep M

Re: Extra lines with dynamic resizing

Posted: Thu Nov 24, 2011 6:21 am
by JanSchenkel
Hi Josep,

I'm sorry, but I can't find a cause just by looking at the code and experimenting. Could you distill a reproducible scenario that I can step through with the debugger, and send it to support@quartam.com?
It doesn't have to be the complete application with an actual database, just a .qrl layout file and a stack with a single button that causes the problem to appear.

Thanks in advance,

Jan Schenkel.

Re: Extra lines with dynamic resizing

Posted: Wed Dec 14, 2011 11:41 pm
by JosepM
Hi Jan,

I send to you but to a wrong email. I send you again to support.

Salut,
Josep M