Is it possible that I can silent print then input the page range(via codebehind) rather than printing the whole document like the code below?
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
Thanks in advance
我只是通过提取页面然后将其保存为新文件,然后打印该文件http://forums.asp.net/t/1630140.aspx来使用此功能。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.