當我在IE上點擊「打印預覽」時,如果它被設置爲「縮小到適合」,那麼無限頁面開始被添加到總頁面中。它以Page 1 of 1開頭,並以每10秒約100的速度迅速增加第二個數字,但速度減慢。現在它說Page 1 of 1272並且每秒增加大約三次,沒有停止的跡象。 如果我將其更改爲100%而不是「收縮以適應」,則它立即有1 of 2並停留在那裏。 如何開始調試?它只發生在這一頁上。我無法在jsFidd
這裏是我的代碼: Imports System.Drawing
Imports System.Drawing.Printing
Imports System.Data
Imports System.Data.OleDb
Public Class Form3
Dim dgv As New DataGridView()
Dim print As New PrintDocument()
D
這是我第一次,我必須使用打印預覽和我糊塗了,所以我需要一個建議: 這是我想要的打印對話框: 這是它目前的樣子在我的打印預覽對話框(搞砸): 這是我此刻的全碼: Public Class frmPRINT
Private Sub btnPrint_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles
這裏是我的代碼: Imports System.Data.OleDb
Imports System.Drawing.Printing
Namespace Print
Public Class Form1
Inherits System.Windows.Forms.Form
Dim PrintC As PrinterClass
Dim conn As OleD
Private Sub btnPreview_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnPreview.Click
preview.PrintPreviewControl.Zoom = 1
preview.Document = print
print.Pri