我在打开Crystal Report时遇到错误。我正在使用ms sql后端
Form5.CrystalReportViewer1.Enabled = True
Form5.CrystalReportViewer1.ReportSource = "E:\vb.n et\Delltech Erp System Updated 11-05-2019\Delltech Inventory System\Delltech Inventory System\cpv.rpt"
Form5.CrystalReportViewer1.SelectionFormula = "(cashpayment.CashPaymentid)=" + CashPaymentidTextBox.Text.ToString
Form5.CrystalReportViewer1.Refresh()
Form5.CrystalReportViewer1.RefreshReport()
Form5.Show()
是否可以通过ID查看报告?就像用户保存现金付款凭证一样,保存后他可以查看和打印保存的凭证。我尝试了上面的代码,但它抛出错误 图片附上