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

Printing over network...

Hello,

I am developing an vb.net app which needs the functionality to print a report to a specific printer on the network.
Can't seem to find much information concerning this. How do I go about:
1. Finding the printer on the network: Will simply using the Printer Name work? or, can I use a specific ip address?
2. Do I need to print to a file first, and then setup a tcp connection with the printer and send it the file?
I need this to function invisibly to the user. In other words, the user selects the Print btn, and based on the report, the app will select
the appropriate printer and print to it.

Any help will be greatly appreciated.

Thanks,

Frank
--
----------------------------------------------
Posted with NewsLeecher v3.5 Beta 1
* Binary Usenet Leeching Made Easy
* http://www.newsleecher.com/?usenet
----------------------------------------------

Jun 16 '06 #1
2 1407
fr***@sinatra.com wrote:
Hello,

I am developing an vb.net app which needs the functionality to print a report to a specific printer on the network.
Can't seem to find much information concerning this. How do I go about:
1. Finding the printer on the network: Will simply using the Printer Name work? or, can I use a specific ip address?
2. Do I need to print to a file first, and then setup a tcp connection with the printer and send it the file?
I need this to function invisibly to the user. In other words, the user selects the Print btn, and based on the report, the app will select
the appropriate printer and print to it.

Any help will be greatly appreciated.

Thanks,

Frank

Usually the printer will be setup as a printer on the PC and access it
that way. Is there a reason the printer can not be setup on the pc? If
you get it setup, then you can use the printdocuement and reference the
printer by name.
Jun 16 '06 #2
The only reason we were trying to print over the network was for setup reasons. Seems it would be easier, from a deployment standpoint, to
just point to the printer over the network and print to it. However, setting up the printer to the pc and ref'ing the name is a viable
option.
Let me ask this: if I reference that printer by name and another printer is set as default, do I have to change the default printer? I have
tried referencing by name and it always seems to point to the default printer (even if I put in a non-existent name in
prindocument.printersettings.printername).

Thanks for the help!!! Any sample code, by chance?

Frank
Usually the printer will be setup as a printer on the PC and access it
that way. Is there a reason the printer can not be setup on the pc? If
you get it setup, then you can use the printdocuement and reference the
printer by name.
--
----------------------------------------------
Posted with NewsLeecher v3.5 Beta 1
* Binary Usenet Leeching Made Easy
* http://www.newsleecher.com/?usenet
----------------------------------------------

Jun 16 '06 #3

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...
0
by: upendra | last post by:
can I get help in printing I want dos mode of printing to network printers from a c# application. For that it requires to get the sharename of the printer. How can I get the share name of a...
16
by: cyranoVR | last post by:
This is the approach I used to automate printing of Microsoft Access reports to PDF format i.e. unattended and without annoying "Save As..." dialogs, and - more importantly - without having to use...
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. ...
10
by: Jeff B. | last post by:
Has anyone come across a decent algorithm for implementing word wrap features in .net printing? I have a small component that uses basic printing techniques (i.e. e.Graphics.DrawString in a...
1
by: Pohihihi | last post by:
Hello NG. I am using System.Drawing.Printing NS to print few label style printouts. I figured out how the basics goes in that namespace but there are still few things that is holding me up from...
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: 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...
3
by: =?Utf-8?B?TWFyazYyNA==?= | last post by:
I have a web method that renders a SQL Reporting Services report and prints it to a network printer using the System.Drawing and System.Drawing.Printing namespaces in .Net 2.0. This method has...
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...
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
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
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...

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.