Home > database >  How to implement automatic newline column?
How to implement automatic newline column?

Time:09-19

I do report, report column width is not enough, so the print can't display completely, so want to use the word wrap, could you tell me how to achieve this?

CodePudding user response:

Get listed some narrow, don't hook automatic horizontal scrolling hook, line height set higher (more than 2 line level), can automatically wrap
I use pb12, I wonder if your version

CodePudding user response:

Automatic folding line setup:


1. In the DataWindow Painter opened in the DataWindow;


2. Double click on to set automatic folding line column, bounce off the column properties window;


3. Choose the Position TAB, select the Autosize box Height;


4. Select Edit tag, l don't select the Auto Horz Scroll boxes;


5. Click the OK button to save the changes;


6. Click the Detail Band (that is, the gray strip) are written on the Detail, click the right mouse button, select the Properties... Menu item;


7. Select the Autosize box Height;


8. Click the OK button to save the changes;


9. Save the DataWindow,

CodePudding user response:

Word wrap, and line spacing of data window field control

Author: Guo Baoli
Say first word wrap, the operation is as follows:
1, cancel the field of Auto hScroll attribute
2, set Auto Height attribute
3, set Auto VScroll attribute
4, set the Limit properties of 0, or the larger one (at least more than one line can display the number of characters)
After the above Settings, can word wrap, but the question becomes, line spacing is very compact, not beautiful, such as contract format compare the specific program development, shows the line number is determined, you can use the following techniques:
1, for example, can be placed 2 line, that we use two computational domain instead of the original field, two computational domain we can adjust the spacing between, of course, if you can put more lines, then we will need to put more computing domain,
2, this is the key point is how to get the contents of the original field distribution to two computational domain, the first expression is written as follows:
If (Lena (lefta (nr, 98))=len (lefta (nr, 98)) * 2, lefta (nr, 99), lefta (nr, 98))
The second calculation domain expression is written as follows:
If (Lena (lefta (nr, 98))=len (lefta (nr, 98)) * 2, MidA (nr, 100), MidA (nr, 99))

The above application in PB10 debugging success, although you can better solve the problem of multiple line spacing, but has its limitations, is suitable for the application of display format is clear,

Readers can consider ourselves, if 3 line how to do,

CodePudding user response:

Fold line shows the data window (

Too much data, automatically display a new line, this is a very practical problem, has the following two cases:
1, title line according to
2, the columns of the data in the word wrap,
The above two methods to resolve the problem,
A, wrap title
Use '~ r ~ n, the letters in the direct input to the position of the line is ok,
Two, column data to fold line
Need to be set from the following three aspects:
1, will be listed in section (usually the Detail section) highly automatic, namely selected section (Band) 'AutoHeight attribute,
2, will be automatically fold lines of columns selected AutoHeight attribute,
3, cancel column Auto Horz Scroll 'attributes,

Automatic folding line setup:

1, in the DataWindow Painter opened in the DataWindow;
2, double click on to set automatic folding line column, bounce off the column properties window;
More than 3, choose the Position TAB, select the Autosize Height marquee.
4, select the Edit tag, uncheck Auto Horz Scroll boxes;
5, click the OK button, save the changes;
6, some Detail Band (i.e., gray strip are written on the Detail), click the right mouse button, select the Properties... Menu item;
7, select the Autosize box Height;
8, click the OK button, save the changes;
9, save DataWindow,

Original concept is the most outstanding front-end development tool database development, powerful data window function there is no doubt that developers, however, in the process of application development, some special Chinese report to developers, had these special reports from time to time from time to time to developers, such as how to automatically fold line in the data window,
This topic may have been introduced in the last century, but I looked through all the information in the answers cannot solve practical problems, after I set up and test many times, in the basic don't write any code, finally you're done, please see the following implementation steps:
Step 1: set up and adjust the grid data window object, the diagram below:



Step 2: set up automatic folding line edit page properties, the diagram below:



Step 3: set up automatic folding position page properties, the diagram below:



Description: GZRW automatic folding, 64 is automatic folding (GZRW) height, the length of the divisor 60 32 characters, because I want to list all 32 characters, word wrap, GZRW multiplier is 60, 64, this is for when multiple rows, word row distance is more beautiful, the multiplier and 60 divisor 60 both has nothing to do, just happened to be here, look at the below results:

CodePudding user response:

4th floor, three picture? I am also looking for the picture,

CodePudding user response:

Learning,

CodePudding user response:

I think the 3 floor PB life comprehensive enough

CodePudding user response:

The second floor can be achieved

CodePudding user response:

Get listed some narrow, don't hook automatic horizontal scrolling hook, line height set higher (more than 2 line level), can automatically wrap
I use pb12
  • Related