简体   繁体   English

VB6水晶报表

[英]Crystal Report with VB6

I have a Crystal (v9) report with field definitions defined (and placed on the report).我有一个 Crystal (v9) 报告,其中定义了字段定义(并放置在报告上)。

On my vb6 form I dropped a crystal viewer object from the toolbox.在我的 vb6 表单上,我从工具箱中删除了一个水晶查看器对象。

Not sure why but I am assuming that there is a way to programmatically bind record set data to these fields.不知道为什么,但我假设有一种方法可以以编程方式将记录集数据绑定到这些字段。

Is this possible?这可能吗?

Eg,例如,

Report.Field1 = rs("Data")
Report.Field2 = rs("Data2")

I believe I am using CRAXDRT .我相信我正在使用CRAXDRT

You can programmatically alter the data connection, set parameters and even alter the selection criteria but I don't think you can set the data on fields manually.您可以以编程方式更改数据连接、设置参数甚至更改选择标准,但我认为您不能手动设置字段上的数据。 Data has to come from the selection statement w/i the report itself.数据必须来自带有报告本身的选择声明。 It has no DOM, per se.它本身没有 DOM。

Looks like you can use the report viewer to set a whole reports data source to a ado recordset at runtime (I didn't think you could), but not one field/control at a time.看起来您可以使用报表查看器在运行时将整个报表数据源设置为 ado 记录集(我认为您不能),但一次不能设置一个字段/控件。

Ways to feed a report (degined by crystal reports 8.5 in vb6.0) to show a special record? 如何提供报告(由 vb6.0 中的水晶报告 8.5 定义)以显示特殊记录?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM