Print Sliding problem

Greetings,

I am attempting a report with a field in the body that I want to print if it has content, and if no content, I want the body section to shrink to fit to the required fields only.

Shown is my layout. I cannot get the notes field or body to collapse if it is empty. I adjusted all elements on the form so there was no overlap and still no luck. Any ideas?

Thanks,
Jay

jblarsen:
I cannot get the notes field or body to collapse if it is empty.

Sliding cannot make the fields smaller then 1 line, we will add this info to the manual.
To get what you want, replace the fields ima_itemname and pricelistnotes with a sliding field based on a calc:

if (pricelistnotes.lenght == 0)
{
return ima_itemnama
}
else
{
return ima_itemnama +'\n' + pricelistnotes
}

Jan,

Thank you - after handling the fields with null values I got it to work.

Now I would like to italicize the pricelistnote portion of the concatenated field.

I tried making the field HTML_AREA and added the HTML tags to my Dataprovider calculation script, however the tags came through as plain text in the report.

Any ideas?

Also - feature suggestion - allow sliding fields to collapse to zero lines.

Thanks,
Jay

jblarsen:
the tags came through as plain text in the report

Did you enable the useTags on the field?

Is this on the feature request list?

I would like to see this too - as empty optional sections (ie, fields) leave gaping holes with print sliding.

Labels don’t seem to do this, but as wrap doesn’t work in labels, you cannot use them for text that has the chance to wrap.

OR Give the option to let labels act as text areas (wrap, returns). They do stay at 1 height if set to that and allowed to grow

NCM
FSCI

fsciweb:
I would like to see this too - as empty optional sections (ie, fields) leave gaping holes with print sliding.

Which version of servoy are you using, we did fix a print problem in Servoy 3.1.6

3.1.6.

I’m having all kinds of printing problems still.

HTML areas are not printing out all the lines - ie, if lines wrap they push off other lines - either as labels or as fields.

Text Areas that are empty still take up a full line height, even if set to 1 pixel and GROW.

Labels with TEXT AREA data provider content are not growing to full length - they only print one line, and fail to grow.

What is the problem in the 3.1.6 announcement thread that was mentioned? Is one of the above the same?

Thanks!

NCM
FSCI

please file a sample solution demonstrating these problems at: http://crm.servoy.com/servoy-webclient/ … oy_support

Upgrade to 3.5.1 solved all of our print sliding / content cropping problems to date.

Labels work great with HTML and DISPLAY TAGS set - sliding, growing, whatever.

Haven’t tested HTML_area, RTF_area as much, but they seem to work fine.

Thank Servoy.

NCM
FSCI