473,439 Members | 5,047 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,439 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 11540
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.