你能幫我嗎 我有 vb.net 語言的問題。我想呼叫水晶報表,但不能使用通過水晶報表發送的 gridview 中的資料格式。使用以下代碼:
Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
Dim reports As New bpkb_1
reports.SetDataSource(ds.Tables(0))
viewermurabahah.CrystalReportViewer1.ReportSource = reports
viewermurabahah.ShowDialog()
end sub
你能舉例說明如何在visual studio vb.net專案檔案之外呼叫水晶報表檔案的代碼嗎?
uj5u.com熱心網友回復:
可以呼叫ReportDocument的load方法
Dim rpt As New CrystalDecisions.CrystalReports.Engine.ReportDocument
rpt.Load(<Path to your crystal report file>)
rpt.SetDataSource(<your data table>)
YouReportViewer.ReportSource = rpt
轉載請註明出處,本文鏈接:https://www.uj5u.com/caozuo/379274.html
上一篇:需要一些有關VisualBasics中面積計算器的幫助
下一篇:在可視化基本表單中打開URL
