Writing Code
 Crystal Reports Forum : Crystal Reports for Visual Studio 2005 and Newer : Writing Code
Message Icon Topic: Print to Client Local Printer Post Reply Post New Topic
Author Message
pkchan60
Newbie
Newbie


Joined: 08 May 2007
Online Status: Offline
Posts: 4
Quote pkchan60 Replybullet Topic: Print to Client Local Printer
    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
IP IP Logged
hilfy
Admin Group
Admin Group
Avatar

Joined: 20 Nov 2006
Online Status: Offline
Posts: 3701
Quote hilfy Replybullet 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
IP IP Logged
pkchan60
Newbie
Newbie


Joined: 08 May 2007
Online Status: Offline
Posts: 4
Quote pkchan60 Replybullet Posted: 08 May 2007 at 7:56pm
CR Server XI also can't?
IP IP Logged
hilfy
Admin Group
Admin Group
Avatar

Joined: 20 Nov 2006
Online Status: Offline
Posts: 3701
Quote hilfy Replybullet 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


Edited by hilfy - 09 May 2007 at 7:17am
IP IP Logged
hilfy
Admin Group
Admin Group
Avatar

Joined: 20 Nov 2006
Online Status: Offline
Posts: 3701
Quote hilfy Replybullet 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 this thread I've asked the original poster to update us with that information.

-Dell
IP IP Logged
pkchan60
Newbie
Newbie


Joined: 08 May 2007
Online Status: Offline
Posts: 4
Quote pkchan60 Replybullet 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
IP IP Logged
kundurs
Newbie
Newbie
Avatar

Joined: 24 Feb 2009
Location: United States
Online Status: Offline
Posts: 3
Quote kundurs Replybullet Posted: 24 Feb 2009 at 11:05am
Can you please let us know where to add this property?
 
Thanks
IP IP Logged
kundurs
Newbie
Newbie
Avatar

Joined: 24 Feb 2009
Location: United States
Online Status: Offline
Posts: 3
Quote kundurs Replybullet 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
IP IP Logged
suryadono
Newbie
Newbie


Joined: 04 Jan 2010
Location: Indonesia
Online Status: Offline
Posts: 2
Quote suryadono Replybullet 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
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.016 seconds.