469,289 Members | 2,330 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,289 developers. It's quick & easy.

Adobe 7.0 print PDF from VB.NET

Does anyone have an example of how to automatically in VB.Net print a PDF file to a network printer?
May 23 '07 #1
3 11368
SammyB
807 Expert 512MB
Does anyone have an example of how to automatically in VB.Net print a PDF file to a network printer?
It's easy to go to the default printer. Can you set the network printer as the default?
Expand|Select|Wrap|Line Numbers
  1. Imports System.Diagnostics
  2. Public Class Form1
  3.     Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
  4.         With New Process
  5.             .StartInfo.Verb = "print"
  6.             .StartInfo.CreateNoWindow = False
  7.             .StartInfo.FileName = "C:\test.pdf"
  8.             .Start()
  9.             .WaitForExit(10000)
  10.             .CloseMainWindow()
  11.             .Close()
  12.         End With
  13.     End Sub
  14. End Class
  15.  
May 24 '07 #2
Can you please give me an example for printing multiple PDF files as a single print job? Is it possible to achive?

Many Thanks
Jun 5 '07 #3
SammyB
807 Expert 512MB
Can you please give me an example for printing multiple PDF files as a single print job? Is it possible to achive?

Many Thanks
Not that I'm aware of, but I just got this code by googling. What happens if you put more than one filie in the filename parameter?
Jun 5 '07 #4

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

2 posts views Thread by Andy W | last post: by
3 posts views Thread by Hank Reed | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.