【问题标题】:Print 2 Pages in Visual Basic Application在 Visual Basic 应用程序中打印 2 页
【发布时间】:2019-10-23 10:13:17
【问题描述】:

我有一个打印面板及其内容的按钮。都在工作。我只是无法让它自动打印同一个面板的 2 页。

当前代码:

bmp = New Bitmap(Output.Width, Output.Height)
    Dim G As Graphics = Graphics.FromImage(bmp)
    Output.DrawToBitmap(bmp, Output.ClientRectangle)
    G.Dispose()
    PrintDocument1.Print()

【问题讨论】:

标签: vb.net


【解决方案1】:

我实际上没有考虑过,但我可以通过简单地添加另一个 Printdocument 查询来使其打印 2 页

PrintDocument1.Print()
PrintDocument1.Print()

完美运行

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-03-02
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-01-10
    相关资源
    最近更新 更多