Use RAVE reports in Delphi 7 (1)

xiaoxiao2021-03-06  41

Use RAVE reports in Delphi 7 (1)

I have just finished a project recently, using RAVE to report a lot of information, but I always feel that the information on the Internet is too dispersed, and it is not very comprehensive, so I decide how to use the RAVE report in Delphi 7. Several articles, because I am not writing from small languages, not writing masters, this time I wrote such an article. I hope to see the netizens of this article can give more opinions. Welcome everyone to advice. Can give me a message.

The universal reports, often need to generate a variety of reports in the software we want to write to users, the report is the final form of data in the database, before Delphi 6, writing reports in Quick Report using Qusoft, and in Delphi Quick Report is integrated. In the control panel of the Borland DelphiTM 7 Studio Integration Development Environment (IDE), the Quick Report item is canceled, replaced by Nevrona Rave Reports item, and there is Rave Designer 5.0 in Tools.

Open Rave Designer 5.0, we can develop a report design interface shown in the figure, and developers can develop reports that meet the requirements of the user, and the design of this report is almost completely, which is almost completely, which is almost completely in the use of Delphi integration. RAVE is different from the largest appearance of other report components.

I downloaded Rave Reports V5.1.3 in use, you can download this article at http://www.delphibox.com/, when writing this article, http: // www .nevrona.com / has released Rave Reports 6.0, but the article is also subject to Rave Reports V5.1.3. Open Delphi, you can see the control panel as follows:

Rave under Delphi7

Open RAVE in Tools, see the report design interface as shown:

Rave5 report design interface

Rave5 report design interface

First, describe the components and related properties of the RAVE report designer. The interface of the Rave Designer integrated development environment includes the title bar, menu bar, shortcut, component column, and some windows: • The title bar shows the current engine name, located in the top. · Menu bar, some features can be implemented by the menu commands in the menu bar. · The shortcut toolbar is a bitmap button, and some common menu commands are implemented with these buttons.

• Report Components Board Displays a variety of components (Standard, Report, Zoom, Colors, Lines, Fonts, Drawing, Bar Code, Alignment), which is very important, properly, reasonable use of components in the process of using RAVE development applications. . Use it to design a database and text-based complex statement.

• Report Components Board Displays a variety of components (Standard, Report, Zoom, Colors, Lines, Fonts, Drawing, Bar Code, Alignment), which is very important, properly, reasonable use of components in the process of using RAVE development applications. . Use it to design a database and text-based complex statement.

• Report Components Board Displays a variety of components (Standard, Report, Zoom, Colors, Lines, Fonts, Drawing, Bar Code, Alignment), which is very important, properly, reasonable use of components in the process of using RAVE development applications. . Use it to design a database and text-based complex statement.

• Report Components Board Displays a variety of components (Standard, Report, Zoom, Colors, Lines, Fonts, Drawing, Bar Code, Alignment), which is very important, properly, reasonable use of components in the process of using RAVE development applications. . Use it to design a database and text-based complex statement. · The left half is like the Object Inspector tool of Delphi, which can set the properties of the report element, and the lower part of its lower part has a short tip of the corresponding attribute. · The main part is the design area, developers can add a variety of design components, such as Drawing, straight, rectangular, ellipse, Barcode, various common barcodes, TEXT, MEMO, Section, Bitmap, Metafile and many more. · On the right, you can view more information on the components of the report, such as report library and data display directory, can also quickly locate the component position.

Rave's report designer, components of the component column:

Drawing (Drawing) Component Page:

Line Component: The line component is flexible. It can be seen that its property entered, has a color, line width, line lines, and the like, and the designer changes attributes as needed. Change the length of the line, after selecting the line, selecting an end point, the cursor will become a ten sub-pendant, dragging.

Hline Component: Painted horizontal line components.

VLINE Component: Draw a linear component.

Rectangle Component: Draw a long square component, you can use the Fill component to populate.

Square Component: Picture of a square component, you can use the Fill component to populate.

Ellipse Component: Draw an ellipse assembly, you can use the Fill component to populate.

Circle Component: Draw a circular component, you can use the Fill component to populate.

Bar Code component page:

PostNetBarcode: The POSTNET barcode is included on the print mail tag.

I2OF5Barcode: Print Interleaved 2 of 5 bar code.

Code39Barcode: Print Standard and Extended Code 39 barcode.

Code128Barcode: Print A, B And C C code 128 bar code.

Upcbarcode: Print the UPC-12 bar code.

EANBARCODE: Print EAN-13 barcodes.

Standard (Standard) Component Page:

TEXT: This component is fixed on the report, such as the title of the report, etc., can set the size, color, and the Rotation property you want to display as any angle.

Memo: MEMO components provide multiple lines of text, similar to Delphi, a lot of properties, but we apply much, you can use the text property to add text.

Section: This component is a container of other components, and other components are fixed in this component.

Bitmap: This component is to place the BMP file (* .bmp) in the report, and the FileLink property is connected to the BMP file.

MetaFile: This component places the meta file (* .wmf) in the report, and the FileLink property is connected to the meta file.

FONTMASTER: This component controls the properties of any Text word in the report. Select Fontmaster by the Fontmirrot property of the Text component or MEMO component to use the font. Pagenuminit: Report Displays the initial page number of page numbers. As the value of the figure is 5, the initial page of the report is 5, the page number starts from 5.

Report component page:

If the report needs the data of the database, the components in this component page are frequently used.

DataText: Use information to display a relatively short content in the database, use it to display the corresponding database field information, use two properties to DataField and DataView to connect to the database and fields. When DataText is used to design a master from a report, the LookUpDataView is the corresponding data connection. LookUpDisplay is the display content, and the lookupfield is the content of the field that is associated with the corresponding number of the primary report, which is the field of the main data field. Lookupinvalid is the case after controlling the corresponding error.

DataMemo: On the basis of MEMO, supports the field display of the database, uses DataField and DataView attribute to connect to the database and fields. In addition to the output of the corresponding text content, you can also output the RTF format, display the RTF format, you need to set the ContainsRTF attribute to TRUE.

CALCTEX: This component is used to count the maximum, minimum, sum, statistical value of the report field. Directly, only need to be set via the CALCTYPE attribute, the calcType property includes CTAVERAGE (seeking average),

Ctcount, ctmax, ctmin, CTSUM (seeking sum).

DataMirror Section: Similar to the Section component.

Region: If you want to make a report, the Region component specifies the print area, you can set the columns to column.

Band: This component is a container component, including Text, MEMO components, etc., including non-database library information, and the BAND component is placed in Region, and after selecting the BANDStyle property, the property dialog box appears as shown below. List of Band in the left, the PRINTLOCATION, right, including: body header, Group header, Row Header, Detail, Row Footer, Group F /o Feets and body footer (footer), the BandStyle property can be multi-selection. Print Occurrence properties include: first (Home Print), New Page, New Column. Select First (Home Print) is also the content included by the Band is only printed on the first page, select New Page (Print a new page),

The content included in Band must print on a new page, select New Column (new column), and the content included in the BAN must be printed in the new column.

DesignerHide Properties: When a report has multiple BAND, selecting a lookup band becomes more troublesome, setting the DesignerHide property to True, the Band content that is not selected is hidden. GroupDataView and GroupKey Properties: If you want to use the corresponding data result as a report packet group, you must set these two properties, GroupDataView is the corresponding data source, GroupKey is the index of the data source, and the group is based on the value in GroupKey. Group.

DataBand: It is done directly on the database, and can place the corresponding database report assembly, which allows the corresponding report to have a database library print function. The DataView property is to set the corresponding data source, GroupDataView is the packet data source in the corresponding report.

DATACYCLE: Similar to DataBand is the loop display data, DataBand is a loop print of the database content, and DatacyCle does not need to use Region, which is printed as a page, and you can print one component design per page. Using DataBand is paging according to the range of Region, and DatacyCle is the real realistic one information based on data.

Calcop: This component provides a corresponding computing function, and the specific use will be explained later.

Calctotal: Combined with Calcop to complete the statistical function of our daily report.

ZOOM Components: When designing reports, zoom in, zoom out in the report page.

Colors Components: Quick Sets Colors for the selected object.

Lines (Line) Components: For the selected line, change its line style.

Fills Components: For graphics fill patterns such as squares.

FONTS component: Perform font settings.

Alignment component: Adjust the alignment component and the hierarchy of the formation.

Use RAVE report in Delphi 7 (1) (End)

Since some rush to write, there will be many problems, I hope everyone will correct, and I hope to see the netizens of this article left your opinion so that I will continue to write.

PS: 2004-12-07 Upload the picture, now you can see the picture.

PS: 2005-4-18 Many friends send email to say pictures can't display, the reason is that the original picture is stored in the free space, the system is not seen after the system is updated, today updated, there should be no problem.

Reprint, please state the author - CYQ on the highway)

转载请注明原文地址:https://www.9cbs.com/read-86253.html

New Post(0)