5 Forms of Crystal Report form design mode

Source: Internet
Author: User
Tags header
Design | Crystal Report overview

Different from foreign countries, the domestic reports are mostly forms, so use the Crystal Report form although not too convenient, but must face!
The boxes that make up the table are divided into upper and lower border lines, left border, right border, internal horizontal frame line, internal vertical border six kinds, while the top border, the bottom border, the inner horizontal border line is also a horizontal border, the left border, right border, the internal vertical frame line and belong to the vertical border. In the Crystal Report can be achieved by line, frame, object frame, and listen to me slowly ...


Directory

First, the guideline assists
1. The object does not move, the guideline precedes.
2. Use a guideline to align the box lines of a table.
3. Use the guideline to hyphenation, column.
4. Use the alignment to locate rows and columns.
5. Adjust column width and row height using the guideline.

Two, Multi-section box
1. Draw the outer border of the table.
2. Draw the inner horizontal border of the table.
3. Draw the inner vertical frame line of the table.

Third, the section inside
1. Separate the header row and data row of the table and draw the table border separately.
2. Draw the table border of the header row section.
3. Draw the table border of the section of the data row.

Four, multi-section positioning
1. Prevent variable-length objects from covering each other.
2. Prevent database fields and the bottom border from covering each other.

Five, Object border
1. Simulate the box line of the table with the object border.
2. Separates the table header row from the data row, and simulates the table border with the object borders.
3. Use the border of the text object to simulate the table borders of the header row section.
4. Use the border of the database field to simulate the table borders of the data row section.



First, the guideline assists

1. The object does not move, the guideline precedes.

A guideline is a nonprinting line that you can place anywhere on the Design tab and on the Preview tab to help align. They have alignment properties that automatically align the objects with them. The alignment feature not only allows you to easily and accurately align report objects, but it also allows you to reposition and resize multiple objects at the same time.

(1) Display, insert, move, and delete a guideline
① Display Guideline
Select the guideline command on the View menu.
Use the design command to show or hide the alignment in the Design tab. Use the preview command to show or hide the alignment in the Preview tab.
Note: On the preview tab, you must select an object to see the alignment.
② Insertion Guideline
On the Design or Preview tab, click the top ruler to insert a vertical alignment, and click the ruler on the left to insert the horizontal alignment.
Note: Each alignment is connected to an arrow at the starting ruler position.
③ Move Alignment
To place a guideline in the target location, drag its arrows along the ruler to the appropriate position.
④ deletion guideline
To remove a guideline, drag its arrows out of the ruler.

Note: If the Snap to gridlines option is selected, you can insert or move the alignment only incrementally in the grid. To get rid of this limit, right-click the blank space in the report, and then cancel the Snap to Grid command on the shortcut menu.

(2) Align the object with the alignment
① to align an object with a guideline, drag the report object above the alignment until the object's edge falls above the alignment.
② can align multiple objects with the same alignment to reposition and resize multiple objects at the same time.
③ you can align the top or bottom of an object with a horizontal alignment, or you can align the left, right, or perpendicular bisector (the invisible line of a vertically divided object) with the vertical alignment.
④ If you are aligning multiple objects, align the alignment with the same side of the object.

(3) Use the guideline to locate the object
After you align one or more objects with a guideline, you can move all the objects at the same time by moving the line. To move the alignment, drag its arrows along the ruler.
Note: When you move the alignment, all objects aligned with it move together. However, if you move an object aligned with the alignment, the guideline does not move with it.

(4) Adjust the size of the object using the guideline
Use the two guideline to resize two or more objects of the same size (height or width) or different sizes. In both cases, the process of sizing with a two-guideline is the same.
① creates a guideline.
② aligns the side of the object with the alignment.
③ creates a second guideline on the other side of the object.
Note: This guideline should not be exposed to the object.
④ Click the object to activate the sizing handle.
⑤ Drag the sizing handle to the second line to align the object with the alignment.
⑥ Repeat steps 2nd through 5th for each of the other objects that you want to align with these two lines.
⑦ if the object is not the size you want, drag one or all of the alignment until the object is the correct size.

2. Use a guideline to align the box lines of a table.

Note: If the Snap to gridlines option is selected, you can insert or move the alignment only incrementally in the grid. To get rid of this limit, right-click the blank space in the report, and then cancel the Snap to Grid command on the shortcut menu.

(1) Insert Box
① on the Design tab, insert two horizontal lines by clicking the ruler on the left. The top and bottom boxes of the table correspond to the upper and lower border lines.
② inserts two vertical lines by clicking the top ruler. One left and one right, corresponding to the left and right border of the table respectively.
③ the Insert box and resize so that the four sides of the box are aligned to the four alignment.

(2) Insert vertical bar
① on the Design tab, insert two horizontal lines by clicking the ruler on the left. First, the top and bottom vertices of the vertical border are corresponding to each other.
② Click the ruler at the top to insert a vertical line to assist in locating the vertical border in a horizontal direction.
③ inserts vertical lines and aligns vertical lines.
④ adjusts the size of the vertical bar so that the top and bottom sides align to the top and bottom two horizontal lines respectively.

(3) Insert horizontal line
① In the Design tab, insert two vertical lines by clicking the top ruler. One left and one right, corresponding to the top and left vertices of the horizontal frame line respectively.
② Click the ruler on the left to insert a horizontal line to assist in locating the horizontal border in the vertical direction.
③ inserts horizontal lines and aligns them horizontally.
④ adjusts the horizontal line size so that the left and right sides of the two vertical alignment are aligned.

3. Use the guideline to hyphenation, column.
(1) to hyphenation
① on the Design tab, click the ruler on the left to insert the horizontal alignment.
② aligns the data field on the same line or the bottom of the table header with the horizontal alignment.

(2) Align columns
① on the Design tab, click the top ruler to insert a vertical alignment.
② aligns the data fields and the left side of the table headings on the same column with the vertical alignment.

4. Use the alignment to locate rows and columns.
Each guideline is connected to an arrow at the starting ruler position. When you align rows with horizontal lines or align columns with the vertical alignment, drag their arrows along the ruler to move rows and columns.

5. Adjust column width and row height using the guideline.
(1) Adjust column width
① on the Design tab, click the ruler at the top to insert vertical guideline 1 and align the data field and the left side of the table header on the same column with the vertical alignment 1.
② on the right side of the column, click the ruler at the top to insert vertical guideline 2.
Note: This guideline should not be exposed to data fields and table headings.
④ Ctrl-click continuously to select data fields and table headings on the same column, and resize handles appear on the last selected object.
⑤ Drag the sizing handle to the vertical guideline 2 to align the column with the alignment.
⑥ If the column is not the size you want, drag one or all of the alignment until the column size is correct.

(2) Adjust line height
① on the Design tab, click the ruler on the left to insert horizontal Line 1 and align the data field on the same line or the top of the table header with horizontal guideline 1.
② at the bottom of the line, click the ruler on the left to insert horizontal guideline 2.
Note: This guideline should not be exposed to data fields or table headings.
④ hold down CTRL and click continuously to select All data fields on the same line, and the sizing handles appear on the last selected object.
⑤ Drag the sizing handle to the horizontal guideline 2 to align the line with the alignment.
⑥ if the row is not the size you want, drag one or all of the alignment until the row size is correct.



Two, Multi-section box

1. Draw the outer border of the table.
(1) Insert box, spanning the "header" and "Details" section.
(2) Adjust the "details" of the size, so that the bottom of the table with the lower border alignment.

2. Draw the inner horizontal border of the table.
(1) Insert horizontal line in "details".
(2) Move the horizontal line in the vertical direction to align it with the top of the details.
(3) Adjust the horizontal line to align the left and right ends with the outer border.

3. Draw the inner vertical frame line of the table.
(1) Insert the corresponding number of vertical lines in the report based on the number of columns.
(2) Move the vertical bar in a horizontal direction so that it is just between two columns.
(3) Adjust the size of the vertical bar to align the upper and lower ends with the outer border.

Question: If you insert a subreport in the report footer, the vertical and bottom lines of the table appear on the subreport, and the results are confusing and 戡! So we have the following ...



Third, the section inside

1. Separate the header row and data row of the table and draw the table border separately.
(1) Place the header row of the table in the header, and the border will not be drawn beyond the header.
(2) The table data row in the "Details", the box line drawing does not exceed the "detailed information."

2. Draw the table border of the header row section.
(1) in the "header", use the line to draw the table's top border, the table's internal horizontal border, the table left border, right border, the inner vertical border of the title bar section.
Draw the horizontal and vertical lines refer to the article: two, Multi-section box 2. Draws the inner horizontal border of the table. 3. Draw the inner vertical frame line of the table.
(4) Adjust the size of the "header" so that its bottom is aligned with the inner horizontal border of the table.

3. Draw the table border of the section of the data row.
(1) in the "Details", the line draws the table's bottom border, the table left border, the right border, the internal vertical frame line's title bar section.
Draw the horizontal and vertical lines refer to the article: two, Multi-section box 2. Draws the inner horizontal border of the table. 3. Draw the inner vertical frame line of the table.
(2) Adjust the "details" of the size, so that the bottom of the table with the lower border alignment.

Problem: If the row height of the data row is not fixed, the database field is set to expand to automatically expand vertically based on the size of the data. The data will go beyond the bottom border of the table, and the vertical bar cannot automatically expand vertically, and the display is very ugly! So we have the following ...



Four, multi-section positioning

1. Prevent variable-length objects from covering each other.
You can eliminate this overprinting problem by creating multiple sections and placing the objects in the section below the section of the variable-length object.

2. Prevent database fields and the bottom border from covering each other.
(1) Create two sections in "Details": "Details a", "Detailed information B".
(2) Place the database field in "Details a".
(3) in "Details B", draw the bottom border of the table with the line, and adjust the size of "details B" so that it aligns with the lower border.
(4) Draw the vertical frame line in the "Details" line and cross the section "Details a" and "details B".



Five, Object border

1. Simulate the box line of the table with the object border.
(1) Select the Report object and select the Format command from the Format menu or right-click menu to enter the Formatting Editor dialog box.
(2) Select the Borders tab.
(3) The left, right, top, bottom box line "line Style" set to "one-way".

2. Separates the table header row from the data row, and simulates the table border with the object borders.
(1) Place the header row of the table in the header, simulating the border of the header row with the text object's bounding box.
(2) Put the table data rows in "Details", using the database field border to simulate the data row of the box line.

3. Use the border of the text object to simulate the table borders of the header row section.
(1) The left, right, top and bottom borders of the leftmost text object border are set to single line.
(2) The "line style" of the border of the other text object is set to "single line" for the right, top, and bottom borders.
(3) Connect the text objects from left to right tightly, then the top of the box is composed of the upper border of the table, the bottom of the box is composed of the inner horizontal border of the table, the left and right border is the table of the left border, right border, the title bar of the inner vertical frame section.
(4) Adjust the size of the "header" so that its bottom is aligned with the inner horizontal border of the table.

4. Use the border of the database field to simulate the table borders of the data row section.
(1) The left, right, and bottom borders of the leftmost text object border are set to single line.
(2) The line style for the right and bottom border of the other text object is set to "Single-line".
(3) The text objects from left to right tightly connected, the bottom of the box will be combined into the lower border of the table, left and right border is the table left border, right border, the title bar of the inner vertical frame section.
(4) Adjust the "details" of the size, so that the bottom of the table with the lower border alignment.


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.