473,698 Members | 2,672 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Printing on the client side


Hi,

I am writing a ASP.NET application using VB.NET and
everything is hunky dorey except for one thing. I am
having real problems printing to a printer on the client
side. I need to be able to send escape characters to a
printer and I was able to do this no problem on the server
side with a VB.NET application. however, I have no clue
how to do this on the client side. The closest thing I
have found is to associate the javascript window.print()
with the clicking of a button, that doesn't really help
with my problem. Does anyone have any ideas how I can do
this?

Thanks,
Ryan
Nov 17 '05 #1
2 6165
Reinvent the browser?

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
http://www.takempis.com
Big things are made up of
lots of little things.

"Ryan Moran" <rm****@autotow n.com> wrote in message
news:08******** *************** *****@phx.gbl.. .

Hi,

I am writing a ASP.NET application using VB.NET and
everything is hunky dorey except for one thing. I am
having real problems printing to a printer on the client
side. I need to be able to send escape characters to a
printer and I was able to do this no problem on the server
side with a VB.NET application. however, I have no clue
how to do this on the client side. The closest thing I
have found is to associate the javascript window.print()
with the clicking of a button, that doesn't really help
with my problem. Does anyone have any ideas how I can do
this?

Thanks,
Ryan

Nov 17 '05 #2
You cant really interact with the clients printer in that way without
extending IE, with trusted activex controls or using trusted applets. If
your working in an intranet and have access to the clients printer then you
send the contents you wish to print back to the server, and have some code
that picks up the job request on the server and prints the control chars to
the shared printer.

--
Regards

John Timney (Microsoft ASP.NET MVP)
----------------------------------------------
<shameless_auth or_plug>
Professional .NET for Java Developers with C#
ISBN:1-861007-91-4
Professional Windows Forms
ISBN: 1861005547
Professional JSP 2nd Edition
ISBN: 1861004958
Professional JSP
ISBN: 1861003625
Beginning JSP Web Development
ISBN: 1861002092
</shameless_autho r_plug>
----------------------------------------------

"Ryan Moran" <rm****@autotow n.com> wrote in message
news:08******** *************** *****@phx.gbl.. .

Hi,

I am writing a ASP.NET application using VB.NET and
everything is hunky dorey except for one thing. I am
having real problems printing to a printer on the client
side. I need to be able to send escape characters to a
printer and I was able to do this no problem on the server
side with a VB.NET application. however, I have no clue
how to do this on the client side. The closest thing I
have found is to associate the javascript window.print()
with the clicking of a button, that doesn't really help
with my problem. Does anyone have any ideas how I can do
this?

Thanks,
Ryan

Nov 17 '05 #3

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

Similar topics

3
3221
by: aniljain50 | last post by:
Hi All, I have a web form. let's say it has 3 fields. Employee No, Name ansd salary. Now my problem is I want to print the contents of this screen to a local printer. Note that this is client side printing and not server side!! I do not want to print the screen but the contents of the screen (Employee No, Name and salary). Also is there a way that the printer dialog will not appear while printing.
7
8426
by: ap | last post by:
Hi, It is a quick question... Is that impossible to print the page(Web Form .aspx file) in client side using GDI+ like PrintDocument pd = new PrintDocument(); pd.print(); As I know it is a server side printing... and is that possible to make it to client side printing or it must be printed using javascript??
6
2289
by: Darren | last post by:
Guys, Based on selection in a datagrid,I need to retrieve info to construct a letter from a table in my database and send it off for printing.Now the thing is there may be a few hundred letters to be printed.How do I accomplish this in ASP.NET Any examples/links would be appreciated
1
1790
by: Jurjen de Groot | last post by:
I will be developing a new web-app (ASP.NET), this web-app needs to be able to print invoices, letters, forms, etc. to specific printer(s) on the client's pc. I know that one could create a printable page in the browser and call window.print() using javascript but this way the end-user still has to select a printer and click Ok to start printing (each invoice/letter). I would like to automate this, if I print an invoice it should be...
4
2187
by: Russ | last post by:
To ASP.NET printing experts: My Asp.net web form needs to print some reports at the client side. I've been trying to research this and find some confusing and conflicting information in previous news group answers. Some say "Crystal Reports", others say "PDF" or "Word", and others say that you cannot do this at all on client side??? My reports are text documents that are already formatted, contain form feeds, and positioning controls...
2
3610
by: cFleury | last post by:
Hello, I am new to ASP.NET and I have to print an invoice from an application written in ASP.NET, I have followed most of the threads in this newsgroup about the dificulties posed by the server side nature of ASP.NET, but nobody really addressed a solution to the problem, can I use "Crystal Reports" which comes with Visual Studio to do it ? What is the down side if any ?. I'm asking instead of just doing it because since I don't know...
2
1375
by: Jacek | last post by:
I'm developing ASP.NET C# application. I need to implement server-side printing for asp.net form on specified in DB printer. I know how to print it on Client-side (window.print()). How can I print the same page (form) on server side? If I can use PrintDocument class, then how to pass dynamically generated web form. If I have to use client-side, then can I specify printername when printing on client-side to avoid unnecessary dialog for...
2
2887
by: Jurjen de Groot | last post by:
I'm about to start a new ASP.NET application, this application will generate several types of documents (PDF HTML XML-DOC) wich have to be printed at the client-side... (probably on different printers A3 and A4 type) At this time I'm trying to figure out what would be the best way to accomplish this : 1. printing through HTML in a IE windows will result in page title & nr as header and URL + Date as footer, wich is far from acceptable....
18
11295
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 classes, for each of the checked rows in the GridView. This works fine in the Visual Studio 2005 development environment on localhost. But, when I move the page to the web server, I get the error "Settings to access printer...
0
8603
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
8893
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8861
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7721
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6518
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5860
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4366
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3045
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2327
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.