Re: Printing local in a client-server web environment
From: Mark Travis (mtravis_at_sysdel.skmconsulting.com)
Date: 05/27/04
- Next message: Mark: "IFrame Image resizing"
- Previous message: Mikael Gustafsson: "Re: FileStream permission problem with asp.NET web application!"
- In reply to: RBisch: "Re: Printing local in a client-server web environment"
- Next in thread: RBisch: "Re: Printing local in a client-server web environment"
- Reply: RBisch: "Re: Printing local in a client-server web environment"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 27 May 2004 16:35:17 +1000
I cannot see the question in my new reader (it is showing only one item in
the thread) but I assume the question is how to print locally from a web
application without using the browsers print menu. If this is the case, I
have done something similar by including a .NET class Library on the page
via the object tag. My goal was to print a Microsoft Reporting Services
Report to a local printer. The object tag looked like
<object
id="SystemBrowser"
classid=http://{host}/{directory}/ReportPrinter.DLL#Report.Printer
width="0"
height="0">
</object>
The name of the dll that contains the object is
ReportPrinter.DLL
and it resides at
http://{host}/{directory}
The object I am using (including namespace) is
Report.Printer
Javascript is used to pass the required information (report name, Reporting
Services URI, etc) to the object, and the object then calls the service,
displays a print dialog box, renders the report, streams it to the printer,
etc.. It works well in an intranet environment where you can control the
.NET component security on the client.
Note: If you use a class library instead of a control, the PARAM tags do not
work so all information must be passed to the object via client side script.
I hope this helps
Regards
Mark Travis
"RBisch" <RBisch@community.nospam> wrote in message
news:01CDB11D-63E8-417A-9DAD-61E88A791AFA@microsoft.com...
> Thanks for that, however I would prefer a C# solution if one is possible.
(Their API was C/C++)
- Next message: Mark: "IFrame Image resizing"
- Previous message: Mikael Gustafsson: "Re: FileStream permission problem with asp.NET web application!"
- In reply to: RBisch: "Re: Printing local in a client-server web environment"
- Next in thread: RBisch: "Re: Printing local in a client-server web environment"
- Reply: RBisch: "Re: Printing local in a client-server web environment"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|