473,466 Members | 1,656 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Automate Webform Printing

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 some code in the Page_Load
event that fires to print the webform when it loads.

Could someone please assist me? Thanks.
Nov 19 '05 #1
1 1202

Hi, Mike.
Sorry to say, but you assume wrong.
Javascript has window.print() but maybe this wouldn't do for you?
Serverside printing is whole lot more complicated thing and requiers
plenty of code. For example, if the code executes on the server i
Canada and you're located in Miami, how would the server be aware o
the printers installed to your local computer? Even if the cod
executes on your pc's www-service, you still are a client to th
application because you interact with it via browser.
More to think of: if the code would execute on your pc's www-service
it should be executed under aspnet-account while you're bein
authenticated as yourself. Since this is true, you would have to gran
aspnet account rights to printers installed to computer. And i
printers happen to be network printers, how would you grant to an loca
account rights to another network server? Since your aspnet accoun
isn't a domain or workgroup account, it can't be done. One wor-aroun
might be to impersonate the account so that it has privileges t
network printers, but it requires some amount of extra coding and cod
examples of doing this exists in the net.
Cheers,
-tom
-
tomBon
-----------------------------------------------------------------------
Posted via http://www.codecomments.co
-----------------------------------------------------------------------

Nov 19 '05 #2

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

Similar topics

1
by: haacked | last post by:
I am trying to automate the printing of an RTF file that contains watermark images in the header and am finding it very challenging. I looked at several articles about printing rtf docs using the...
1
by: CrazyCoder | last post by:
Dear all, I'm trying to find the solution where to print my reports without using IE's print functions. Most of my required report needs to print out 'clean' ...... I checked around with...
8
by: Chris | last post by:
Hello all, I wish to automate printing of PDF documents in a C# application. Is there an Adobe .net object? I tried to create a reference to the COM Object Adobe Type Library, but I get error...
3
by: Bryan Z | last post by:
I was wondering how do you print just part of a webform in asp.net -- like just printing the contents of a textbox or label. I know that it will involve javascript, but I cannot get the javascript...
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...
0
by: mg | last post by:
How can I disable or hide the toolbar/printing in a C#/JavaScript WebForm without having to manually close an opening window?
3
by: Franck | last post by:
Hi, Is it possible to extract all controls from a webform and print them ? I'm currently trying to use a viewstate system but can't figure out how to retrieve control position. Thks for help.
1
by: Franck | last post by:
Hi, I need to build a server-side print system for any of my webform. I "just" need to print text, keep position (table,<tr>,<td>, etc) and replace controls with text. As it will be extended to...
0
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...
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...
1
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...
0
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...
0
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,...
0
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...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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 ...

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.