473,654 Members | 3,098 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Printing a document from the WEB server

I have an application that allows users to download multiple documents
stored on the web server. I have now been asked if it is possible to send
the documents directly from the web server and to the printer instead of the
users having to download the documents first and then manually send them to
the printer one by one. Is this possible and if so could anyone point me in
the right direction?

Thanks,
Shawn
Nov 19 '05 #1
6 1252
Assuming your users have javascript enabled, simply adding:

onload="javascr ipt: window.print(); "

to the <body> tag of your html page should do the trick.

Nov 19 '05 #2
Thanks, but that is not what I'm looking for. In order to do that the user
will have to open a window containing the document first. I want the
document to be printed directly from where it is located without going
through the user.

Shawn
"Phillip Ian" <ph****@comcast .net> wrote in message
news:11******** *************@g 49g2000cwa.goog legroups.com...
Assuming your users have javascript enabled, simply adding:

onload="javascr ipt: window.print(); "

to the <body> tag of your html page should do the trick.

Nov 19 '05 #3
I must have misunderstood. Are they downloading these documents from a
win form application?

If that's the case, you could embed a hidden web browser in it, load
the page up in that, then print it.

Nov 19 '05 #4
No, its through a web application.
"Phillip Ian" <ph****@comcast .net> wrote in message
news:11******** **************@ g44g2000cwa.goo glegroups.com.. .
I must have misunderstood. Are they downloading these documents from a
win form application?

If that's the case, you could embed a hidden web browser in it, load
the page up in that, then print it.

Nov 19 '05 #5
if the printer is connected to the webserver yes. if the printer is known
only to the users machine, you will have to write an active/x control, and
get the users to trust and intall it.

-- bruce (sqlwork.com)
"Shawn" <bo********@hot mail.com> wrote in message
news:u5******** ******@tk2msftn gp13.phx.gbl...
I have an application that allows users to download multiple documents
stored on the web server. I have now been asked if it is possible to send
the documents directly from the web server and to the printer instead of
the
users having to download the documents first and then manually send them
to
the printer one by one. Is this possible and if so could anyone point me
in
the right direction?

Thanks,
Shawn

Nov 19 '05 #6
Thanks Bruce,
The printer is not connected to the WEB server, but it is on the same
network. Will that do or do I still have to write an actice X control?

Shawn

"Bruce Barker" <br************ ******@safeco.c om> wrote in message
news:eV******** ******@tk2msftn gp13.phx.gbl...
if the printer is connected to the webserver yes. if the printer is known
only to the users machine, you will have to write an active/x control, and
get the users to trust and intall it.

-- bruce (sqlwork.com)
"Shawn" <bo********@hot mail.com> wrote in message
news:u5******** ******@tk2msftn gp13.phx.gbl...
I have an application that allows users to download multiple documents
stored on the web server. I have now been asked if it is possible to send the documents directly from the web server and to the printer instead of
the
users having to download the documents first and then manually send them
to
the printer one by one. Is this possible and if so could anyone point me in
the right direction?

Thanks,
Shawn


Nov 19 '05 #7

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

Similar topics

0
2051
by: Lee Harris | last post by:
Hello, I have a client that has about 150 users on a intranet that I've created. The server is Windows 2000 with IIS 5.0 and has Office 2000 installed. The client came to me and asked if it was possible to print MS Word and Excel docuements right from the ASP page. First I said sure I'll just link the document to the page then you can print it. That's not what they wanted, they wanted to be able to click on a link and have the server...
7
8424
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??
2
3600
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...
1
5704
by: hamil | last post by:
I am trying to print a graphic file (tif) and also use the PrintPreview control, the PageSetup control, and the Print dialog control. The code attached is a concatination of two examples taken out of a Microsoft book, "Visual Basic,Net Step by Step" in Chapter 18. All but the bottom two subroutines will open a text file, and then allow me to use the above controls, example 1. The bottom two subroutines will print a graphic file, example...
12
6357
by: Alex Clark | last post by:
Greetings, (.NET 2.0, WinXP Pro/Server 2003, IE6 with latest service packs). I've decided to take advantage of the layout characteristics of HTML documents to simplify my printing tasks, but of course it's thrown up a whole host of new issues... I'm generating a multi page printable document in HTML from my app, and displaying it in a WebBrowser control. I've looked into using some CSS
8
5885
by: Neo Geshel | last post by:
Greetings. BACKGROUND: My sites are pure XHTML 1.1 with CSS 2.1 for markup. My pages are delivered as application/xhtml+xml for all non-MS web clients, and as text/xml for all MS web clients (Internet Explorer). My flash content was originally brought in via the “flash satay” method, but I have since used some server-side magic do deliver one <objecttag
2
9962
by: Brad Pears | last post by:
I have a vb.net 2005 application and am using the print preview screen. This screen has a printer icon on it that the user can use to print the document currently being viewed. It uses the default printer settings to print. I wanted the print preview to appear the same for all users (i.e. a default page size of 8.5x14 (legal) and portrait mode). Many users have different printers as their default (plotters etc..) and I found that various...
0
1236
by: Iain Wilson | last post by:
I am pulling my hair out trying to print various objects from a .net web page My apologies for cross posting but I need an answer and my previous post has attracted no interest. ASP.Net 2.0 using C# This is a simple web page on our intranet (written as a test) and all I am trying to do is print a document to a named printer. If I use a StreamReader then I get an output to the printer. This
7
2560
by: Iain Wilson | last post by:
I am pulling my hair out trying to print various objects from a .net web page My apologies for cross posting but I need an answer and my previous post has attracted no interest. ASP.Net 2.0 using C# This is a simple web page on our intranet (written as a test) and all I am trying to do is print a document to a named printer. If I use a StreamReader then I get an output to the printer. This
18
11290
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
8815
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
8707
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
8482
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
8593
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
7306
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 projectplanning, coding, testing, and deploymentwithout 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...
0
5622
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
4149
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
2714
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
1593
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.