ASP.net printing

T

Tony WONG

so far i have designed some pages for data input, such leave application,
acquistion request.

now i wish to have print copies for signature.

is it possible that when a user enter a record, then
1. there will be print copies from the network printer
2. a copy from tray 1, another copy from tray 2 of printer.
3. prefer not to print by word, not require Server logon
4. light-weighted design & stable

grateful for any ideas & samples

thanks a lot.

tony
 
G

Gregory A. Beamer

so far i have designed some pages for data input, such leave
application, acquistion request.

now i wish to have print copies for signature.

is it possible that when a user enter a record, then
1. there will be print copies from the network printer
2. a copy from tray 1, another copy from tray 2 of printer.
3. prefer not to print by word, not require Server logon
4. light-weighted design & stable

I will likely reiterate a lot of what Mark has stated.

Printing can be initiated from ASP.NET. After user input, you can create
a printable page and then prompt the user to print it. This is done by
emiting some JavaScript. Note, however, that the user can cancel. This
is the best option, in most cases, for Internet apps or very large
networks.

Since you mention a network printer, you do have the option of backend
printing to a network printer. But, this can be tricky, as you have to
have all of the printer drivers on the network on the server that prints
and you have to know which printer the user is going to print to (map
users to printers in a data store?). If you have a very small network,
then this is not a huge deal to maintain, but on large networks, this
can be a bear.

You should always allow the user to save the document, just in case, the
print fails. Unfortunately, many of the print options out there do not
give much feedback when the print fails (fire and forget), so this
option is nice to have. And having a repository with documents so the
user can retrieve one is a nice alternative.

Make sure you handle any print errors so you can inform the user that
he/she needs to save the document and print it.

I saw this one recently:
http://snurl.com/tw085

It uses Dynamic Data Exchange (DDE). It is just one example. Automating
printing is also possible through many third party components, many of
which are far cheaper than your time to purchase.

PDF is nice for documents, as there are plenty of open source PDF
libraries out there and it is quite easy to send to printers (at least
these days it is, go back to the 90s when there were far more PCL
printers and it was a pain).

Peace and Grace,

--
Gregory A. Beamer (MVP)

Twitter: @gbworld
Blog: http://gregorybeamer.spaces.live.com

*******************************************
| Think outside the box! |
*******************************************
 
G

Gregory A. Beamer

Indeed, though I've never seen one which can be used to specify
individual paper trays, etc...

I am not sure about the individual trays. There has to be some way to
profile it or something, but you can at least print.
I guess I've never needed to use anything other than Aspose...

I am not as fond of web apps that auto print, or auto initiate any
peripheral for that matter. I understand the motivation, but it is a train
wreck waiting to happen in many instances.

Peace and Grace,

--
Gregory A. Beamer (MVP)

Twitter: @gbworld
Blog: http://gregorybeamer.spaces.live.com

*******************************************
| Think outside the box! |
*******************************************
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,816
Latest member
SapanaCarpetStudio

Latest Threads

Top