Creating a Formatted Bound Report

  1. Add the Data control, ActiveX control, and a command button to your form.
  2. On the Data control, set the DatabaseName property and the RecordSource property as you did in the previous example.
  3. On the ActiveX control:
  4. Open the report template in Crystal Reports and apply any formatting that you want including spacing between columns, font size, colors, grouping, and totaling. Save the report template again when finished.
  5. In your Visual Basic application, set the following properties for the ActiveX control:
  6. On the command button, add the following code to the Click event:
Private Sub Command1_Click()
    CrystalReport1.Action = 1
End Sub

Now, the application will create the report at runtime with the formatting you have applied.



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