Creating a Custom Preview Screen

  1. Start with the "Quick Start" example project described earlier.
  2. Remove Form1 and add a new form to your project.
  3. Set the form name to frmPreview.
  4. Click on the "ActiveReport Viewer" icon image\ARRE0126_wmf.gif in your toolbox.
  5. Place the control on your form, size it according to your needs.
  6. Set the control name to arv.
  7. Add the following code to the frmPreview_OnLoad event:

    Private Sub Form_Load()
    arv.ReportSource = New ActiveReport1
    End Sub

    Your form should look like this:
    image\ARRE0127_wmf.gif