Board index » Web Programming » Need sample code server side printing
|
m61376
|
|
m61376
|
Need sample code server side printing
Web Programming386
Hi, Subject line says it all except VB.NET preferred, but C# would be okay too. Thanks a lot, Peter - |
| anonymous
Registered User |
Fri Mar 05 10:26:06 CST 2004
Re:Need sample code server side printing
The Server cannot print - you'll need to use the client (such as JavaScript). check the "print" function in any JS reference
This is for security reasons - you wouldn't want a user to load up a page, and then the server takes over the printer Tim Stal ----- Peter Kaufman wrote: ---- Hi Subject line says it all except VB.NET preferred, but C# would be oka too Thanks a lot Pete - |
| nfedin
Registered User |
Fri Mar 05 14:13:52 CST 2004
Re:Need sample code server side printing
By its very nature, server side code can't print. The server has no
user interface, which includes printing. Write the output to a file and then have the user/admin print it themselves when they need to. Neil Peter Kaufman <no@email.com>wrote in message news:<gb6g40pbgghpuguhtb15f0jon15mm9374a@4ax.com>... QuoteHi, |
| Eric
Registered User |
Fri Mar 05 14:14:54 CST 2004
Re:Need sample code server side printing
I don't think that's strictly the case; if you wrote code on the server to
do printing (e.g. www.c-sharpcorner.com/Printing.asp)">www.c-sharpcorner.com/Printing.asp) and you gave your ASP.NET worker process permissions (or did impersonation) to use the printer, I don't see why it wouldn't work. That said, yes, you really want to think through the security implications. -- Thanks, Eric Lawrence Program Manager Assistance and Worldwide Services This posting is provided "AS IS" with no warranties, and confers no rights. "Tim Stall" <anonymous@discussions.microsoft.com>wrote in message QuoteThe Server cannot print - you'll need to use the client (such as - |
