Use RAVE report in Delphi 7 (2)

xiaoxiao2021-03-06  39

Use RAVE report in Delphi 7 (2)

After a long time, I finally had time to continue to introduce Rave, which mainly introduces the RAVE components under Delphi7. Open Delphi7, see the RAVE page as follows: Delphi7 under RAVE

Including RvProject, RvSystem, RvNDRWriter, RvCustomConnection, RvDataSetConnection, RvTableConnection, RvQueryConnection, RvRenderPreview, RvRenderPrinter, RvRenderPDF, RvRenderHTML, RvRenderRTF, RvRenderText these components.

LRVROJECT components

In the use of the RAVE report, this component is the most important one. It is the highest frequency of frequencies. Developers can complete the printing of the report through this report, the generation, output, and the production of the file can use the design status, or you can Take it with the corresponding report designer.

Attributes:

DllFile: The DLL file required when the report is issued. After 5.0, the user does not need to separately issue the corresponding dynamic link file.

ENGINE: Specifies the destination generated by the corresponding report. In general, it is RVSystem, that is, it can print, print a preview, and generate a print file. Of course, the RVNDRWRITER component can also be selected, then the result of the report output is one of RTF, HTML, PDF, TXT.

LoadDesigner: Allows users to call report designers if it is true, then end users can call report designers; if its value is false, then end users do not have power to call report designers.

Projectfile: The corresponding report project file specifies the detailed directory path.

Storerav: To embed the report file into the EXE file, you must fill in the corresponding report project file here.

Main method:

SELECTREPORT method:

Function SelectReport (ReportName: String; Fullname: Boolean): Boolean;

ReportName is the corresponding report name, and FullName indicates whether the number of reports is used as the name of the report.

Execute Method: Print selected report files, which are selected by SelectReport when reported.

RvProject1.execute;

ExecuteREPORT method:

RvProject1.executeReport (ReportName: String);

ReportName is the name of the corresponding report.

Open method:

RvProject1.Open; Open the corresponding report to operate.

Close method:

RvProject1.close; turn off a report.

l rvsystem component

When printing or previewing the report, print parameters are set. Combine with RVProject when used.

Attributes:

DefaultDest: Specifies how to print.

RDPREVIEW: Preview;

Rdfile: file;

RDPrinter: printer.

Rulertype: The corresponding ruler unit.

Rtnone: No ruler;

Rthorizcm: horizontal ruler, unit is centimeter;

RtvertCM: longitudinal ruler, unit is centimeter;

RtbothCM: First, all the ruler, units of centimeters;

Rthorizin: horizontal ruler, unit in inches;

Rtvertin: longitudinal ruler, unit is inch;

Rtbothin: All rulers, units in inches; SystemFiler: Report prints file parameters. If the DefaultDest property is RBFile, you need to set the attribute value here.

SystemOptions: All report output setting properties.

SystemPreview: The settings of the report preview parameters. If the DefaultDest property is RDPREVIEW, you need to set the attribute value here.

Systemprinter: The settings of the report print parameters. If the DefaultDest property is RDPrinter, you need to set the attribute value here.

Systemsetup: It is a setting for parameters such as whether to allow print, whether or not the printer settings is allowed.

TitlePreview: Change the name of the form previewed by the report, for example, can change the Report Preview to the report preview.

TitleSetup: Change the name of the report output form, for example, can change Output Options to the output settings.

TitleStatus: Report Status Form Name, for example, replace the Report Status to report status.

Main method:

OVERRIDEPREVIEW method, OVERRIDESETUP method, OVERRIDESTATUS method:

These three methods can be overwritten on report settings, print settings, and report preview forms, which will be described later to pass these methods to Chinese.

l NDRWRITER components

Use this component to implement a custom report preview.

l RVDataSetConnection components, RVTableConnection components, RVQueryConnection components

Use these three components to implement the database connection.

l RVRenderPDF components, RVRenderHTML components, RVRenderRTF components, RVRenderText components

The report generates components of the corresponding file, allows the report to generate the corresponding PDF, HTML, RTF, and Text files. But generating files are not supported by Chinese, there will be garbled.

(Reprint, please state the author - fish (cyq) on the highway)

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

New Post(0)