473,320 Members | 1,991 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

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 11536
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

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

Similar topics

1
by: Brian Sabolik | last post by:
After developing my entire applications around printing via the Crystal Decisions engine in .net, I was shocked to find out that a report that printed fine in Adobe 5.0 reader now prints garbled...
0
by: MC | last post by:
Hi, I'm developing an VB.NET app that converts TIFFs to PDFs using Office Imaging 2003 and Adobe Distiller 6.0 in the follwing way: 1. Using automation, I open the TIFF file with Office...
0
by: Sarah Akers | last post by:
GgF ----gL5cJ72EqiGIQ0SK65Rz Content-Type: text/html; Content-Transfer-Encoding: quoted-printable <html> <head> <style type=3D"text/css">.eyebrow { FONT-WEIGHT: bold; FONT-SIZE: 10px; TE=
2
by: Andy W | last post by:
I'm wanting to automate Adove Acrobat Reader using Com thru Python and win32com, but i can't find any documentation for the Adobe stuff? Has anyone done anything with Acrobat COM ? I've searched...
0
by: Colin | last post by:
I am setting up a new machine, XP Pro. I have a few printers setup along with the Adobe Distiller products. When I get into Access 97 or Access 2002 and try to print a report, the only 2 printers...
3
by: Hank Reed | last post by:
I have been using the ShellExecute command for about a year to print out a list of PDF files. It's a great capability. Of course, the documents are actually printed by the Adobe application. We...
6
by: jdph40 | last post by:
We recently had to upgrade the computers in our company. Now our office's website on our company intranet no longer recognizes reports saved in snapshot format. We get an error message that the...
0
by: Mike | last post by:
Hi! I am programmatically converting Excel to PDF using Adobe PDF printer installed with Adobe Acrobat 6 and above. When I initiate Print command for this printer, a window comes up which...
0
by: Hank | last post by:
We have been printing pdf files through Adobe, from Access for several years. Adobe version 5.0 is currently installed. Recently we have received PDF files that were created under the Adobe 7.0...
1
by: Joe | last post by:
anyone know how to use COM object (probably build in into Adobe Reader) to open, print and close PDF file? I can always do it through DOS command prompt, but printing 8,000 PDF files a day, we have...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.