ZT: Do the Lord Relationship Report with Rava

zhaozj2021-02-16  57

Do the main relationship report with RAVA

-------------------------------------------------- -------------------------------------------------- -------

Reference

1. Add rvproject1, rvsystem1 on the form,

RvProject1.Engine: = rvsystem1

RvProject1.loadDesigner: = false

RvProject1.ProjectFile: = 'c: /myrave/project1.rav'

2. Add Table1, Table2, RVTableConnection1, RVTableConnection2 in DataModule1,

Table1 Connect the table Customer [Master Table] of the DBDemos Database, Table2 Connect the table Orders on the DBDemos database [from table]

3. Set Table2.FilterOptions: = [fonopartialCompare],

RVTableConnection1:

RVTableConnection1.RuntimeVisibility: = RTENDUSER

RVTableConnection1.Table: = Table1

RVTableConnection2.RuntimeVisibility: = rtenduser

RVTableConnection2.Table: = Table2

4. Set on the property page of Page1: Page Component

Page1.bin: = Middle TRAY

Page1.pagersize: = Custom

5. In the design environment of RAVEREPORT

Add DataView1, DataView1, RVTableConnection1

Add DataView2, DataView2, RVTableConnection2

6. In the design environment of RAVEREPORT

Add Region1, DataBand1, DataBand2 on Page1, add data display controls in DataBand1, DataBand2

7. Set on DataBand1, DataBand2

DataBand1.DataView: = DataView1

DataBand2.controllerband: = DATABAND1

DataBand2.DataView: = DataView2

DataBand2.DetailKey: = Custno

DataBand2.masterDataView: = DataView1

DataBand2.masterKey: = Custno

8. Set a DataText control

DataText1.Datafield: = Custno

DataText1.DataView: = DataView1

DataText1 on DataBand1

DataText2.Datafield: = Custno

DataText2.DataView: = DataView2

DataText2 on DataBand2

9. Set DataBand1, DataBand2

On the properties box of DataBand1, click Property BandStyle, pop up the dialog, select the first Occurrence's First, New Page

On the property box of DataBand2, click Properties BandStyle, pop up the dialog, select the first Occurrence's first,

Detail under Print Location

You can make a primary from the report according to the above steps.

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

New Post(0)