Click here to Skip to main content
15,892,674 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I'm developing a website in which i m using crystal report to view reports.
I want to print the same on client side for which i have written this:
ReportDocument doc = new ReportDocument();
doc.Load(Server.MapPath("crystalreport.rpt"))
string PrinterName = null;
PrinterSettings printerSetting = new PrinterSettings();
PrinterName = printerSetting.PrinterName.ToString();
doc.PrintOptions.PrinterName = PrinterName;
  
doc.PrintToPrinter(1,true,1,1);

It works fine on server side but when I run the same on client machine it prints document on the printer which is installed on server.
but I want to print the document on the printer which is installed on the client machien.
Posted
Updated 23-Mar-11 1:57am
v2

Read this entire thread.

Crystal Report Direct Print - Client side[^]
 
Share this answer
 
<a href=""></a>[<a href="" target="_blank"></a>]<a href=""></a><b><i><u><strike><small><big><pre><code>&
C#
<pre lang="HTML"><pre lang="Javascript"><pre lang="objc"><pre lang="SQL"><pre lang="Python"><pre lang="vb">
amp
;lt;&amp;</code></pre></big></small></strike></u></i></b>
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900