Re: Printing local in a client-server web environment

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Mark Travis (mtravis_at_sysdel.skmconsulting.com)
Date: 05/27/04


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++)



Relevant Pages

  • Re: Help with page break
    ... report for that, since it will be printed not too often, the client prefer ... Design a report base on the form that meets your ... >>I start seing the the bottom of that control on the second ...
    (microsoft.public.access.forms)
  • RE: Pulling back sub-report
    ... Sorry Duane and Allen. ... master/child" property of the subreport control. ... I have created a report that has a sub-report in the middle. ... for just that client. ...
    (microsoft.public.access.reports)
  • RE: Use of Variables in queries
    ... What is the name of the control on the form where the Client is carried? ... Where argument of the Open Report method. ... you have a combo box that lists your clients. ...
    (microsoft.public.access.queries)
  • Re: Printing local in a client-server web environment
    ... there is one b/c of the .pdf format. ... > Report to a local printer. ... The object tag looked like ... > .NET component security on the client. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: OK, Ive been doing this for 2 months.. need advice
    ... This shows that the employer maintains a degree of control. ... But what if it's the client that wants the report? ...
    (sci.med.transcription)