i have a web application in asp.net (vb code) which uses crystal reports XI. I can show reports with the CrystalReportsViewer, but i have to let the clients on internet to print that reports. I see the bar's "print" button, but it doesn't print. I have another
problem, images in the bar's buttons do not appear!. I don't know if it is relevant. Pleas help me, i need it urgently.
Eric, i think you don't understand me. I want to print reports from my web application, but i want clients to choose their own printers. I still cannot find the solution. When i click the print button, a pop-up window appears, but that window doesn't show
printers, shows an error page.
I am receiving the same error message. Clicking on the print button gives me a pop-up window with an error message on it.
"You have attempted to execute a CGI, ISAPI, or other executable program from a directory that does not allow programs to be executed"
The problem here is that I do not know what directory it is talking about, and the crystalviewer10 directory that I have in IIS already has those permissions....
There is the physical directory that lives under the website root path (aspnet_client/) that contains the head/menu info, but that too has execute permissions... not sure where to go from here fo rme
I know this thread is a bit old, but i'll answer it anyways so others can fix this problem.
1. You're getting the error because you have to add the address to your Trusted Sites, or enable ActiveX components in Internet Options Advanced Pane (in every client computer). With this, you will be able to print the report. I belive you have already set
PrintMode or your Crystal Report Viewer to ActiveX, otherwise will print it to a PDF file. If you haven't you can do it by code like this:
Me.crViewer.PrintMode = PrintMode.ActiveX
2. You will need to specify the ToolbarImagesUrl property of the Crystal Report Viewer. Search for the images (usually in C:\Inetpub\wwwroot\aspnet_client\system_web\2_0_50727\CrystalReportWebFormViewer4\images\toolbar). This should do the trick. If you
like, copy the folder to your project.
Hope it helps to all the people with this problem.
I think print mode can be set this way too... so this should work... although I maybe wrong. I'm binding via push method because im arranging the datarows in a certain way before I bind it to the report. And lastly, Ive disabled drill down on the markup
but the drilldown button on the viewer is enabled... how can it be?
stebes
Member
2 Points
3 Posts
problem with crystal reports client side printing
Aug 07, 2007 07:10 PM|LINK
i have a web application in asp.net (vb code) which uses crystal reports XI. I can show reports with the CrystalReportsViewer, but i have to let the clients on internet to print that reports. I see the bar's "print" button, but it doesn't print. I have another problem, images in the bar's buttons do not appear!. I don't know if it is relevant. Pleas help me, i need it urgently.
Thanks.
Santiago.
eseidel
Participant
1607 Points
505 Posts
Re: problem with crystal reports client side printing
Aug 07, 2007 07:40 PM|LINK
Check the properties of the CrystalReportViewer. I think defautl print is to document instead of printer.
Eric
stebes
Member
2 Points
3 Posts
Re: problem with crystal reports client side printing
Aug 07, 2007 08:35 PM|LINK
Eric, i think you don't understand me. I want to print reports from my web application, but i want clients to choose their own printers. I still cannot find the solution. When i click the print button, a pop-up window appears, but that window doesn't show printers, shows an error page.
Help me please....
Thanks again.
prajapatiami...
Member
548 Points
395 Posts
Re: problem with crystal reports client side printing
Aug 09, 2007 02:11 AM|LINK
Amitsp(MCTS,MCP)
sqlreporting.blogspot.com
ca_nimrod
Member
4 Points
4 Posts
Re: problem with crystal reports client side printing
Aug 04, 2008 06:34 PM|LINK
I am receiving the same error message. Clicking on the print button gives me a pop-up window with an error message on it.
"You have attempted to execute a CGI, ISAPI, or other executable program from a directory that does not allow programs to be executed"
The problem here is that I do not know what directory it is talking about, and the crystalviewer10 directory that I have in IIS already has those permissions....
There is the physical directory that lives under the website root path (aspnet_client/) that contains the head/menu info, but that too has execute permissions... not sure where to go from here fo rme
Any suggestions?
-Colman
no_one_else
Member
4 Points
2 Posts
Re: problem with crystal reports client side printing
May 11, 2009 04:11 PM|LINK
Hi!! you can use the activex control that work fine.
but only on IE
mruiz
Member
62 Points
34 Posts
Re: problem with crystal reports client side printing
May 26, 2009 04:10 AM|LINK
I know this thread is a bit old, but i'll answer it anyways so others can fix this problem.
1. You're getting the error because you have to add the address to your Trusted Sites, or enable ActiveX components in Internet Options Advanced Pane (in every client computer). With this, you will be able to print the report. I belive you have already set PrintMode or your Crystal Report Viewer to ActiveX, otherwise will print it to a PDF file. If you haven't you can do it by code like this:
2. You will need to specify the ToolbarImagesUrl property of the Crystal Report Viewer. Search for the images (usually in C:\Inetpub\wwwroot\aspnet_client\system_web\2_0_50727\CrystalReportWebFormViewer4\images\toolbar). This should do the trick. If you like, copy the folder to your project.
Hope it helps to all the people with this problem.
spolarium7
Member
6 Points
2 Posts
Re: problem with crystal reports client side printing
Dec 08, 2009 02:00 AM|LINK
Hi,
Im kinda having the same problem as above. My crystal report shows in the viewer, I can see the buttons, I can click them but nothing happens.
I can't find the ActiveX entry on my Advanced Tab on Internet Options of my Internet Explorer... I'm using IE8 (render mode IE7).
Also, this is the markup I use for my crystal report viewer:
<CR:CrystalReportViewer ID="crvBillStatements" runat="server" DisplayGroupTree="False" EnableDatabaseLogonPrompt="False" EnableDrillDown="False" EnableParameterPrompt="False" EnableTheming="True" HasCrystalLogo="False" PrintMode="ActiveX"/>
I think print mode can be set this way too... so this should work... although I maybe wrong. I'm binding via push method because im arranging the datarows in a certain way before I bind it to the report. And lastly, Ive disabled drill down on the markup but the drilldown button on the viewer is enabled... how can it be?