【问题标题】:Crystal Report Printing Blank Page With Visual Studio水晶报表用 Visual Studio 打印空白页
【发布时间】: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

My Crystal Report Design

My Page Setup

我有历史表格,可以在打开报告之前显示我的列表。 打开报表查看器的按钮是

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


【解决方案1】:

当您使用 pdf 打印机而不是物理打印机打印报告时会发生什么。那它行得通吗?可能是字体的问题。 你如何判断使用哪个数据库?也许它没有连接。

【讨论】:

  • pdf 工作正常,没有错误.. 数据库已连接。我使用默认配置..只需将纸张尺寸更改为信纸折叠即可。我用的是爱普生LX310..
猜你喜欢
  • 1970-01-01
  • 2023-03-21
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多