private void cmdPreview_Click(object sender, System.EventArgs e) { //Preview the defined schedule area PrintDialogSettings dialogSettings = new PrintDialogSettings(DateTime.Parse("1/2/2004"), DateTime.Parse("9:00:00 AM"), DateTime.Parse("1/4/2004"), DateTime.Parse("4:00:00 PM")); schedule1.GoPreview(dialogSettings); }