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

Home Posts Topics Members FAQ

Client-side printing ?

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. Problem
with HTML is also that (as far as I know) there's no 'page-break' command,
so how do I accomplish making a HTML-document wich prints neatly every
letter on a new page without it being a new IE of HTML editor for every
letter, then the user would have to confirm each print-out.

2. Printing by way of streaming for instance PDF or XML-DOC to the
client will impose a burden on the client since the user will have to do
extra handling, accepting the download (or accidentally pressing save), and
printing the document by the selecting the right printer (and possibly
paper-tray in case of pre-printed paper), wich is also not acceptable.

3. One other way I can think of is creating a little winforms app
hiding in the system-tray wich is polling via webservice for instance for
documents needed to be printed, and then downloading and printing these
documents to pre-defined printers (and trays). But that would mean that
every pc using the ASP.NET application would have to have to .NET framework
+ the client print-application installed which almost nullifies the
advantage of the ASP.NET application being available on 'any machine with
internet connection'.

Any thoughts ....

Jurjen.

Nov 19 '05 #1
2 2887
Jurjen de Groot wrote:
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. Problem with HTML is also that (as far as I know) there's
no 'page-break' command, so how do I accomplish making a
HTML-document wich prints neatly every letter on a new page without
it being a new IE of HTML editor for every letter, then the user
would have to confirm each print-out.


There is a css-command: page-break-after, which forces a pagebreak when printing.

see http://msdn.microsoft.com/workshop/author/ dhtml/reference/properties/pagebreakafter. asp

Hans Kesting
Nov 19 '05 #2
A possible work around could be to use a ActiveX Control/Windows Forms
control. This will autoinstall on the client, though you may have to have
extra privileges/manual intervention the first time.

Once the control is installed, it can directly interact with the printer
etc. This can be a viable compromise between using a full fledged windows app
and inadequacies of IE based printing.

--
Rgds,
Anand
VB.NET MVP
http://www.dotnetindia.com
"Jurjen de Groot" wrote:
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. Problem
with HTML is also that (as far as I know) there's no 'page-break' command,
so how do I accomplish making a HTML-document wich prints neatly every
letter on a new page without it being a new IE of HTML editor for every
letter, then the user would have to confirm each print-out.

2. Printing by way of streaming for instance PDF or XML-DOC to the
client will impose a burden on the client since the user will have to do
extra handling, accepting the download (or accidentally pressing save), and
printing the document by the selecting the right printer (and possibly
paper-tray in case of pre-printed paper), wich is also not acceptable.

3. One other way I can think of is creating a little winforms app
hiding in the system-tray wich is polling via webservice for instance for
documents needed to be printed, and then downloading and printing these
documents to pre-defined printers (and trays). But that would mean that
every pc using the ASP.NET application would have to have to .NET framework
+ the client print-application installed which almost nullifies the
advantage of the ASP.NET application being available on 'any machine with
internet connection'.

Any thoughts ....

Jurjen.

Nov 19 '05 #3

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

Similar topics

15
4479
by: Michael Rybak | last post by:
hi, everyone. I'm writing a 2-players game that should support network mode. I'm now testing it on 1 PC since I don't have 2. I directly use sockets, and both client and server do computations, the only data transfered is user mouse/kbd input. It works synchronously, but somehow, when I play in client window, both client and server have 17 fps, while when playing in server window, server has 44 fps while client ...
2
3032
by: Raquel | last post by:
How do I know whether the 'runtime client' and the 'application development client' are installed on my machine? When I issue the command "db2licm -l", it gives the following output: Product Name = "DB2 Personal Edition" Product Password = "DB2PE" Version Information = "8.1" Expiry Date = "Permanent" Annotation = "" Other information = ""
2
4664
by: Rhino | last post by:
I am trying to verify that I correctly understand something I saw in the DB2 Information Center. I am running DB2 Personal Edition V8.2.1 on Windows. I came across the following in the Info Center: To return a result set from a procedure to the originating application, use the WITH RETURN TO CLIENT clause. When WITH RETURN TO CLIENT is specified on a result set, no nested procedures can access the result set.
0
2169
by: Harley | last post by:
Hello, I am just learning the tcp/ip functions etc under vb.net so please look over me if this is obviouse. I have been all over looking into any functions that I didn't totaly understand and can't see that I am doing anything wrong (i obviousely am though) everything "works", client connects to server and when anything is sent to the server it starts the mp3 and passes all messages the way i ment for it to except that my server is...
8
2738
by: Ankit Aneja | last post by:
i am doing here some some socket-client work in C# windows service it is working fine for multiple clients now i want to limit these multiple clients to 25 for example i want that when service starts objects for all these 25 clients are created and when client connects it should be accepted and will not allow more than 25 clients to connect and when client diconnects that object can be allocated to another client who requests i am not...
2
1984
by: Delmar | last post by:
I need to build Web Application that will generate a client to execute some operations. Each client has running silent application. Maybe somebody can advice me what can I do ? Thank you.
2
7571
by: J Huntley Palmer | last post by:
I am having a horrific time integrating uw-imap's c-client for imap support in php. The problem is a whole bunch of "Text relocation remains referenced against symbol" errors during linking. Any help appreciated! The ordeal is a follows I am using Solaris 10 with php5.1.1. GCC:
0
1741
by: khu84 | last post by:
Here is client server very simple code, seems to work with telnet but with with web client code gives blank output. Following is the server code:- <?php function createSocketServer($host='192.168.1.34',$port=2222) { $max_clients = 10;
2
4098
by: nsaffary | last post by:
hi I hava a client/server program that run correctly when i run it in one computer(local) but when I run client on a one computer and run server run on another, connection does not stablish.(I set server machine IP for client and server) please guide me? server : #include <winsock2.h> #include <iostream> #include <stdio.h> #include <string.h> #include <windows.h> #pragma comment(lib, "ws2_32");
0
9157
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9023
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
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...
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
4615
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
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.
3
1999
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.