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

Printing to various network printers...

Hi,

I'm writing an app to run on a server, hopefully autmated, and every 5
minutes it needs to hit a database and if any new records have been
entered, print the record to a printer depending on certain criteria.
I'm not sure if I'll handle timing through the app or through Windows
Scheduler... but that's outside my question here.

All our printers are Jetdirect compliant printers and on our network
as \\printserver\printername or I can print directly to IP if that's
an option. My goal is to have a table containing all the printers
(whether by UNC or IP) and give each printer a unique ID, then a
second table will contain the data to print plus a PrinterID field for
VB so it knows which printer to send the output to.

My question is within VB, how do I send the print job directly to a
specific printer, bypassing the default printer? I did this years ago
in VB6, but I've never done it in VB.Net. I'm usign VB 2005 also, and
hopefully this'll be setup via Winforms.

Thanks --

Alex

Jan 18 '08 #1
1 1808
On Jan 18, 5:28 pm, Alex <sama...@gmail.comwrote:
Hi,

I'm writing an app to run on a server, hopefully autmated, and every 5
minutes it needs to hit a database and if any new records have been
entered, print the record to a printer depending on certain criteria.
I'm not sure if I'll handle timing through the app or through Windows
Scheduler... but that's outside my question here.

All our printers are Jetdirect compliant printers and on our network
as \\printserver\printername or I can print directly to IP if that's
an option. My goal is to have a table containing all the printers
(whether by UNC or IP) and give each printer a unique ID, then a
second table will contain the data to print plus a PrinterID field for
VB so it knows which printer to send the output to.

My question is within VB, how do I send the print job directly to a
specific printer, bypassing the default printer? I did this years ago
in VB6, but I've never done it in VB.Net. I'm usign VB 2005 also, and
hopefully this'll be setup via Winforms.

Thanks --

Alex
Some links you may want to see:
http://www.startvbdotnet.com/controls/printdialog.aspx
http://www.vbdotnetheaven.com/Upload...nginVBNET.aspx
http://visualbasic.about.com/od/usin...rintvb2005.htm

has good info on printing.

That controls must let you to select a specific printer rather than
default printer.
Jan 18 '08 #2

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

Similar topics

1
by: Maileen | last post by:
Hi, I have 2 questions : 1. - I want to print from my ASP page directly to my network printer. For this i use the following code, but everytime, my document to print is sent to local and...
2
by: Ryan Gregg | last post by:
I've got a dot matrix printer that I need to print a line at a time to. This is being used for an audit log on an application and every event that occurs needs to print out right as it occurs. ...
1
by: Maileen | last post by:
Hi, I want to print from my ASP page directly to my network printer. For this i use the following code, but everytime, my document to print is sent to local and physical port LPT1 :( could you...
1
by: MrMike | last post by:
Hi. I have a webform which I need to print automatically to a specific printer once it is opened. I've searched all around but I can't find the code to achieve ths. Basically I assume I just...
3
by: Mika M | last post by:
Hi all! I have made an application for printing simple barcode labels using PrintDocument object, and it's working fine. Barcode printer that I use is attached to the computer, and this...
1
by: CM | last post by:
Hi, I'm thinking about writing .net codes (asp.net, vb.net) for printing management, such as keep tracking of who prints what on when...etc. The app will need to find all available network...
0
by: Bhaskar | last post by:
Hi all, Problem: OS : Win XP Platform: VB.NET(Web Application) My application enumerates all the printers in the network. Currently there are only 2 network printers here. 1.EPSON TM...
6
by: =?Utf-8?B?QnJhc3NpY2FOaWdyYQ==?= | last post by:
Greetings, I have a web application that prints a form using PrintDocument on the server. Currently it is set up to print to the default printer (on the server). My users would like to be...
18
by: Brett | last post by:
I have an ASP.NET page that displays work orders in a GridView. In that GridView is a checkbox column. When the user clicks a "Print" button, I create a report, using the .NET Framework printing...
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...
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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: 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...
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...

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.