using System; using System.Drawing; using System.Collections; using System.ComponentModel; using System.Windows.Forms; namespace ALS.Crystal { /// <summary> /// Summary description for ALS. /// </summary> public class frmPreview : System.Windows.Forms.Form { private CrystalDecisions.Windows.Forms.CrystalReportViewer crViewer; /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.Container components = null; public frmPreview() { InitializeComponent(); } /// <summary> /// Clean up any resources being used. /// </summary> protected override void Dispose( bool disposing ) { if( disposing ) { if(components != null) { components.Dispose(); } } base.Dispose( disposing ); } #region Windows Form Designer generated code /// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.crViewer = new CrystalDecisions.Windows.Forms.CrystalReportViewer(); this.SuspendLayout(); // // crViewer // this.crViewer.ActiveViewIndex = -1; this.crViewer.Dock = System.Windows.Forms.DockStyle.Fill; this.crViewer.Location = new System.Drawing.Point(0, 0); this.crViewer.Name = "crViewer"; this.crViewer.ReportSource = null; this.crViewer.Size = new System.Drawing.Size(292, 266); this.crViewer.TabIndex = 0; // // frmPreview // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(292, 266); this.Controls.Add(this.crViewer); this.Name = "frmPreview"; this.Text = "Preview"; this.ResumeLayout(false); } #endregion } }What code do I need for this form to display? Should I make the crystal preview control public (so I can change ReportSource and other settings) or should I add my own public method where I can set these things?