RE: Printing from ASP.NET application



Hi stullhe,

From your description, you're wondering how to set the client-side printer
when performing printing on ASP.NET web page ,correct?

As for this question, based on my understanding, ASP.NET web application's
code logic is purely focus on server-side processing, therefore, any
server-side .NET code that deal with printer will only affect the server
machine's printer setting(of the ASP.NET service account). For
client-side,

the common client-side script(such as javascript) only support very simple
print operation(such as print the current page):

<script language="javascript">
window.print();
</script>

if you need rich and advanced control over printing setting at client-side,
I think you may consider host some rich client component on your page(such
as ActiveX control or IE hosted .net winform control):

#Printing in ASP.NET
http://www.beansoftware.com/ASP.NET-Tutorials/Printing-Reporting.aspx

http://vb-printer.vista-files.org/

btw, for SQL Reporting Service it provide a ReportViewer control, however,
as far as I know, that control also need the client user to interactively
select the printer , but can not predefined a printer from ASP.NET
server-side code.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
msdnmg@xxxxxxxxxxxxxx

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------

From: =?Utf-8?B?SGVyYg==?= <stullhe104@xxxxxxxxxxxxxxxx>
Subject: Printing from ASP.NET application
Date: Tue, 1 Jul 2008 14:50:01 -0700


I've been looking at the printing options in an ASP.NET application for a
way
to print a report to a specific printer.

I see an option in Crystal Reports to use a PrintToPrinter command but I
don't really want to use Crystal Reports, I'd rather use the RDCL or SQL
Server Reporting Services.

In essence, each of my workstations will have multiple printers attached.
One will be a regular printer (desktop), a second is a 1 inch label
printer
and the third is a 4 inch label printer.

I don't want the end user to have to view the report and then select the
printer it is to go to, I want to be able to specify in code that a report
is
to be printed to the 4 inch label printer. The next report may go to the
desktop printer and the next to the 1 inch label printer.

I know which report goes where, I just need to be able to specify in code
where I want it printed.

Is there a way to accomplish this using ASP.NET in a web based application?

Thank you,

--
stullhe104


.



Relevant Pages

  • Re: Printing from an ASP.NET page
    ... users will not like having to confirm closing the window for each report. ... The original server-side printing, using .NET printing methods works so ... do you want it to print at the client-side ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Conversion from MF Cobol to.....
    ... Our printing product is called COBOL FormPrint and it does support ... report, form and document printing in COBOL. ... I've already contacted Liant and found out that RM/Cobol doesnot support ...
    (comp.lang.cobol)
  • Re: Local Printing with IE
    ... The problem may be that the CE5 does not support such type of printer. ... but installing serial port sniffer between printer and your ... printing support component to your platform in PB? ... I hope that the debug messages will indicate anything ...
    (microsoft.public.windowsce.platbuilder)
  • instructions on how to print equations in word 2007
    ... Under Supplemental language support, click to select the Install files for complex script and right-to-left languages check box. ... If you are printing using an HP laser printer or one that uses an HP laser PCL ...
    (microsoft.public.word.application.errors)
  • Re: Printouts NOT coming out in order they are sent???
    ... You using two COMPLETE different approaches to printing the repots. ... tell access to print the report, BUT DO NOT display it.. ... The display and graphics and rendering systems of windows is a highly ...
    (comp.databases.ms-access)

Loading