2
votes

I have a Crystal (v9) report with field definitions defined (and placed on the report).

On my vb6 form I dropped a crystal viewer object from the toolbox.

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.

1

1 Answers

1
votes

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.

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.

Ways to feed a report (degined by crystal reports 8.5 in vb6.0) to show a special record?