【问题标题】:Crystal Reports Viewer Scale Report Page to Fit Printer Page DisabledCrystal Reports 查看器缩放报表页面以适合打印机页面已禁用
【发布时间】:2019-10-09 13:26:37
【问题描述】:

需要帮助确定如何禁用缩放报告页面以适合 VB.NET 的打印机页面,因为我所有的水晶报告打印输出都较小。我已将程序编码为在运行时不缩放,但在禁用缩放报告页面以适合打印机页面方面似乎没有任何区别。

Dim printPrompt As New Windows.Forms.PrintDialog
printPrompt.PrinterSettings = New System.Drawing.Printing.PrinterSettings
printPrompt.AllowSomePages = True

Dim oLayout As New CrystalDecisions.Shared.PrintLayoutSettings
oLayout.Centered = False
oLayout.Scaling = PrintLayoutSettings.PrintScaling.DoNotScale

Dim margins As PageMargins
margins = rpt.PrintOptions.PageMargins
margins.bottomMargin = 0
margins.leftMargin = 0
margins.rightMargin = 0
margins.topMargin = 0
rpt.PrintOptions.ApplyPageMargins(margins)

rpt.PrintToPrinter(printPrompt.PrinterSettings, printPrompt.PrinterSettings.DefaultPageSettings, False, oLayout)

谢谢

【问题讨论】:

    标签: vb.net crystal-reports crystal-reports-2016


    【解决方案1】:

    您是否在报告的编辑模式下检查了页面设置? 当您在 VS 中创建报告时,您可以配置页面设置。 visual studio menu=>Crystal Reports=>设计=>页面设置...

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-04-26
      • 1970-01-01
      • 2011-12-17
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多