因为我所有的水晶报表打印输出都较小,所以需要帮助确定如何禁用“缩放报表页面以适合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)
谢谢
答案 0 :(得分:0)
您是否以报告的编辑模式检查了页面设置? 在VS中创建报告时,可以配置页面设置。 visual studio菜单=> Crystal Reports => Design =>页面设置...