473,394 Members | 1,867 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,394 software developers and data experts.

specify printer

Hi group,

I know I can use one of the following to print a pdf file using acrobat

Process.Start("C:\Program Files\Adobe\Acrobat 5.0\Reader\AcroRd32.exe", "/p
/h """ _
& Environment.GetFolderPath(Environment.SpecialFolde r.Personal) &
"\temp.pdf""")

'OR

Dim p As New System.Diagnostics.ProcessStartInfo()

p.Verb = "print"
p.WindowStyle = ProcessWindowStyle.Hidden
p.FileName = Environment.GetFolderPath(Environment.SpecialFolde r.Personal) &
"\temp.pdf"
p.UseShellExecute = True
System.Diagnostics.Process.Start(p)

But I want to know if there's a way I can specify the printer, what I need
to do is watch a directory (on a server) then if a pdf file is placed in the
directory the file needs to be printed to the correct networkprinter.

I was also wondering how can I close acrobat after printing because I print
using 1 of the 2 methods I posted the acrobat icon stays open.

Thanx in advance
Peter
Nov 21 '05 #1
0 878

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Patrick Herb | last post by:
Hello, I'm trying to print the content of a RichTextBox from my VB 6 app. What I want is that the CommonDialog shows up, the user selects a printer and the content of the RichTextBox prints to...
2
by: Jody Burgess | last post by:
Hi; I am writing my first python program and would like to know how to change stdout to refer to my default printer or any other printer on my network. The other question is, Is there an API set...
0
by: James Griffiths | last post by:
Here is a report I've written about a printing problem that is being experienced by a particular company for whom I had developed a A97 system. After upgrading to Win XP and AXP, some printing...
2
by: RC | last post by:
In my vba code I use do.cmd printout to send a report to a printer. The report is set to use a specific printer not the default printer. Sometimes the report seems to not go to the specified...
0
by: bwolfe | last post by:
I need to use a printer other that what's set as the default and without displaying the print dialog. Any ideas?
1
by: MrMike | last post by:
Hi. I have an aspx page which displays data on about the top 1/3 of the page, and the remaining 2/3 of the page is blank. The page is formatted so that my users can print the page to...
1
by: Gilz | last post by:
Hi I have an on click event in my acces 2000 database which open word and prints a mail merge document. This action is hidden and prints several copies of the document without the user ever...
3
Urbo1972
by: Urbo1972 | last post by:
I have designed an HTA application for within my company to pull data out of a database and then print it to a specific form. Is there a way in HTML or some script within HTML to specifiy the...
9
by: id10t error | last post by:
Hello, I am going to be using a Symbol WT4090 to scan items. I need to printer a tag from the Zebra ql320 plus. I am trying to do this is Visual basic 2005. Does anyone know and good site to...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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...

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.