SpecifyDataSourceField

SpecifyDataSourceField enables you to specify the columns that appear, their order, and their width for reports that are automatically generated from a Data control. If you call this function one or more times, only the columns indicated by the calls will appear in the report. You must call this function one time for each column you are setting.

Syntax

[form.]Report.SpecifyDataSourceField ColumnNum%, ColumnName$, ColumnWidth%

For example:

CrystalReport1.SpecifyDataSourceField (0, "Year Born", 10)
CrystalReport1.SpecifyDataSourceField (1, "Au_ID", 20)

«If the data control was pointing to the Authors table in the Biblio sample, the code results in a report where the first column is year born and the second column is author_id.»

Remarks


Seagate Software IMG Holdings, Inc.
http://www.seagatesoftware.com
Support services:
http://support.seagatesoftware.com