我可以静音打印然后输入页面范围(通过代码隐藏)而不是打印整个文档,如下面的代码?
Dim infoPrint As New ProcessStartInfo()
infoPrint.Arguments = "\" & rcbPrinters.SelectedItem.Text & "\"
infoPrint.FileName = Session("strPath")
infoPrint.CreateNoWindow = True
infoPrint.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden
infoPrint.UseShellExecute = True
infoPrint.Verb = "Print"
System.Diagnostics.Process.Start(infoPrint)
System.Threading.Thread.Sleep(50000)
Dim Process1 As New Process
For Each prc As Process In Process.GetProcessesByName("AcroRd32")
prc.Kill()
Next
提前致谢