Print Page | Close Window

Print to Client Local Printer

Printed From: Crystal Reports Book
Category: Crystal Reports for Visual Studio 2005 and Newer
Forum Name: Writing Code
Forum Discription: .NET programming API, report integration
URL: http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=633
Printed Date: 07 May 2024 at 6:11pm


Topic: Print to Client Local Printer
Posted By: pkchan60
Subject: Print to Client Local Printer
Date Posted: 08 May 2007 at 2:00am
Hi all,
 
I have a problem has been faced during development. My plafform as following:
1. Win 2003 Server
2. Dot Net 2.0
3. Crystal Report Developer XI Release 2
4. Web Intergration with ASP.net / Vb.net
 
When I press the print button, it only export to the Adobe Format. How can I print the document to the local printer of the client? Thank you very much.
Wink



Replies:
Posted By: hilfy
Date Posted: 08 May 2007 at 1:16pm

This is how the ASP.NET viewer control works - clicking on the print button does a PDF export and then the user prints from the PDF.  There is no way to send it directly to the printer.

-Dell


-------------
Proviti, Data & Analytics Practice
http://www.protiviti.com/US-en/data-management-advanced-analytics - www.protiviti.com/US-en/data-management-advanced-analytics


Posted By: pkchan60
Date Posted: 08 May 2007 at 7:56pm
CR Server XI also can't?


Posted By: hilfy
Date Posted: 09 May 2007 at 7:02am

That is correct.  This is a function of how the viewer works.

The only way that you might get it to go directly to the printer is through a program that bypasses the viewer entirely.  But that wouldn't allow your users to see the report before printing it, so it's probably not a viable solution for you.
 
-Dell


-------------
Proviti, Data & Analytics Practice
http://www.protiviti.com/US-en/data-management-advanced-analytics - www.protiviti.com/US-en/data-management-advanced-analytics


Posted By: hilfy
Date Posted: 11 May 2007 at 10:14am

I'm going to correct myself here.  Apparently, there is a way to set the printer type in the viewer object to use the ActiveX print control.  The user must have the access rights to download and install the ActiveX control.  I'm not sure what that property name is, but if you check back on http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=633 - this thread I've asked the original poster to update us with that information.

-Dell


-------------
Proviti, Data & Analytics Practice
http://www.protiviti.com/US-en/data-management-advanced-analytics - www.protiviti.com/US-en/data-management-advanced-analytics


Posted By: pkchan60
Date Posted: 14 May 2007 at 3:56am
Hello, I have found the solution. We can add the property "PrintMode" = ActiveX. Then it can be printed by local printer. Thank you


Posted By: kundurs
Date Posted: 24 Feb 2009 at 11:05am
Can you please let us know where to add this property?
 
Thanks


Posted By: kundurs
Date Posted: 24 Feb 2009 at 12:20pm
Sorry I was too fast.
 
BTW, when I set PrintMode = True, the dialog popped up and didn't show anything in it. My guess is I need to install the XI ActiveX Viewer.
 
Can anyone please let me know?
 
Thanks


Posted By: suryadono
Date Posted: 04 Jan 2010 at 8:31pm
The dialog popped up and show blank mean waiting for downloading ActiveX.
Wait for 1 - 2 minutes and window will ask your permission to install the crystal report activex.
After that, printer dialog will show when you click print button from viewer



Print Page | Close Window