怎么使用delphi 7 的rave 生成动态报表?(200分!!急)(200分)

  • 主题发起人 主题发起人 小鲨鱼
  • 开始时间 开始时间

小鲨鱼

Unregistered / Unconfirmed
GUEST, unregistred user!
rave这个新东西不太熟悉 刚刚搞清楚一些属性
老板就要动态生成报表 555
要求说清楚使用的组件,事件,最好有现成的例子,小弟是delphi初学者
 
动态报表是什么意思?想调它的设计器么,那可是英文的啊,你们用户能用么?
 
意思是由用户自定义打印报表中的显示内容
比如说 报表中有 含税金额 免税金额 进货价…………
然后由用户自己选择打印 含税金额 还是免税金额, 进货价等,或者全选
而且可以自己定制 调节报表版面
 
我想和quickreport应该是一样的把?
 
有人说rave的功能比fastreport强大
应该能解决动态生成报表的问题
但是我只能生成固定的报表 用户无法自定制报表内容
而且rave的资料太少了
 
ft,那就干脆装一个quickreport算了阿。Rave的中文资料是在是很少
 
www.51delphi.com 有篇 初识rave
http://dever.6to23.com也有几篇rave的简介
但是都太简单了!!不行我就用fastreport了
 
同意,就用quickreport把!
 
现在在看fastreport的中文指南…………
不过还是希望有高手指教rave的动态报表问题
 
按照下面的去作就好了

You can use Rave Reports in both VCL and CLX applications to generate reports from database and non-database data. The following procedure explains how to add a simple report to an existing database application.
1 Open a database application in Delphi.
2 From the Rave page of the Component palette, add the TRvDataSetConnection component to a form in the application.
3 In the Object Inspector, set the DataSet property to a dataset component that is already defined in your application.
4 Use the Rave Visual Designer to design your report and create a report project file (.rav file).
Choose Tools|Rave Designer to launch the Rave Visual Designer.
Choose File|New Data Object to display the Data Connections dialog box.
In the Data Object Type list, select Direct Data View and click Next.
In the Active Data Connections list, select RVDataSetConnection1 and click Finish.
In the Project Tree on the left side of the Rave Visual Designer window, expand the Data View Dictionary node, then
expand the newly created DataView1 node. Your application data fields are displayed under the DataView1 node.
Choose Tools|Report Wizards|Simple Table to display the Simple Table wizard.
Select DataView1 and click Next.
Select two or three fields that you want to display in the report and click Next.
Follow the prompts on the subsequent wizard pages to set the order of the fields, margins, heading text, and fonts to be used in the report.
On the final wizard page, click Generate to complete the wizard and display the report in the Page Designer.
Choose File|Save as to display the Save As dialog box. Navigate to the directory in which your Delphi application is located and save the Rave project file as MyRave.rav.
Minimize the Rave Visual Designer window and return to Delphi.
5 From the Rave page of the Component palette, add the Rave project component, TRvProject, to the form.
6 In the Object Inspector, set the ProjectFile property to the report project file (MyRave.rav) that you created in step j.
7 From the Standard page of the Component palette, add the TButton component.
8 In the Object Inspector, click the Events tab anddo
uble-click the OnClick event.
9 Write an event handler that uses the Execute method to execute the Rave project component.
10 Press F9 to run the application.
11 Click the button that you added in step 7.
12 The Output Options dialog box is displayed. Click OK to display the report.
 
我这里还有rave英文文档 300多页 就是看不懂才问的
 
我有英文的资料,需要的话就转过身告诉我吧。
 

Similar threads

D
回复
0
查看
2K
DelphiTeacher的专栏
D
D
回复
0
查看
2K
DelphiTeacher的专栏
D
D
回复
0
查看
1K
DelphiTeacher的专栏
D
后退
顶部