Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.ClicktryDim c as new CrystalReport1CrystalReportViewer1.ReportSource=cCatch ex as ExceptionMsgBox("ex.String")EndTryEndSub