Home > database >  For help, the data window, urgent
For help, the data window, urgent

Time:09-21

Recently made a free form of data form, one column is a multiline text box C1, because of the need to try to save paper when printing, need C1 Height can adjust automatically according to the number of words, I met with some difficulties, such as there are now three records, not for each line of C1 level set, and can only be set dw_1. Object. C1. Height=500, I also think of using text labels, also cannot be set on line,
I didn't move, to various master for help, thank you very much! urgent

CodePudding user response:

C1. Height='0 ~ if (len (C1) & gt; 20, xx, xx)
"Is height plus the if function, will that do? I didn't try

CodePudding user response:

With automatic folding lines

Dw fields in the
Select Position TAB, select Autosize Height checkboxes,
Select the Edit tag, uncheck Auto Horz Scroll boxes,

Dw
Some Detail Band (i.e., gray strip are written on the Detail), click the right mouse button, select the Properties... Menu item
Selected Autosize Height checkboxes,

Note: Chinese characters together no punctuation or space-delimited (middle), the system will think that is a word, don't automatically folding line,
English is so... DW window fold line if there is one Chinese character is required with the blank space will fold line, otherwise how to set up all not line, for example you
If you want to row in the 20th, first determine whether 20th is a Chinese characters, such as not just add a space after the 20th, if it is Chinese characters in
19th to add Spaces, judge whether the Chinese characters can be judged by its ASCII is greater than 127,

CodePudding user response:

reference 1st floor zeeeitch response:
C1. The height='0 ~ if (len (C1) & gt; 20, xx, xx)
"Is height plus the if function, will that do? I didn't try


I tried, there's no way;