【发布时间】:2021-04-10 04:03:19
【问题描述】:
我一直在使用水晶报告,但直到现在我才发现这样的错误。在 Crystal Report Viewer 之前,我的水晶报表可以正常工作。但是当我点击打印按钮时出错..
My report When I See From Crystal Report Viewer
But Got This Error When I Print it
我有历史表格,可以在打开报告之前显示我的列表。 打开报表查看器的按钮是
Dim i As Integer = DataGridView1.CurrentRow.Index
Dim FormViewReport As New FormViewReport()
Dim rpt As CrystalDecisions.CrystalReports.Engine.ReportDocument
NoFaktur = DataGridView1.Item(0, i).Value
rpt = New FakturPartaiLama
rpt.SetParameterValue(0, NoFaktur)
FormViewReport.MdiParent = FormUtama 'Set the Parent Form of the Child window.
FormViewReport.Text = "Form View / Print Nota Partai '" & NoFaktur & "'"
FormViewReport.Show() 'Display the new form.
FormViewReport.CrystalReportViewer1.ReportSource = rpt
FormViewReport.CrystalReportViewer1.Refresh()
Me.Dispose()
【问题讨论】:
-
查看数据库图中的连接(来自数据库专家)。检查连接类型是否为左连接而不是内连接。如果您使用内部联接,则必须存在所有记录,否则您会得到一个空白页。
标签: visual-studio crystal-reports