private void cmdPrint_Click(object sender, System.EventArgs e) { //Print a portion of the schedule 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.GoPrint(); }