Writing Code
 Crystal Reports Forum : Crystal Reports for Visual Studio 2005 and Newer : Writing Code
Message Icon Topic: Print To PDF not working Post Reply Post New Topic
Page  of 2 Next >>
Author Message
bdean
Newbie
Newbie
Avatar

Joined: 31 Jul 2007
Location: United States
Online Status: Offline
Posts: 6
Quote bdean Replybullet Topic: Print To PDF not working
    Posted: 13 Aug 2007 at 2:02pm
Everything is working fine on my laptop in development mode.  I am using the crystalreportviewer and have the PrintMode set to Pdf.  When I click the printer icon on the toolbar a window pops up giving me the option to print all pages or select a range of pages to print.  When I click okay in this window, a pdf version of the report is generated and I am then able to print from that.
 
However, I have now deployed the application on our development webserver and everything appears to be working the same, EXCEPT that when I click the OK button on the popup window, nothing happens...no click...no pdf version of the report...no nothing. Cry
 
Did I miss something?  Is there a setting on the server that needs to be changed?  Is something locally preventing the server from sending the PDF version to my local browser?  Does Adobe Acrobat Reader need to be installed on the webserver?
 
Anyone's help would be greatly appreciated.  I am ready for final testing and this is critical functionality needed to move forward with the application.  I know I could set the print mode to ActiveX, but I really don't want to do that if I don't have to.
IP IP Logged
bdean
Newbie
Newbie
Avatar

Joined: 31 Jul 2007
Location: United States
Online Status: Offline
Posts: 6
Quote bdean Replybullet Posted: 13 Aug 2007 at 6:42pm
ClapFound the answer to the problem.  The export.js file needs to be manually editted.  Here is the link to the document that provides the answer:
 
IP IP Logged
ChrisWaddle
Newbie
Newbie


Joined: 02 Apr 2008
Online Status: Offline
Posts: 12
Quote ChrisWaddle Replybullet Posted: 10 Apr 2008 at 10:43am
My copy of export.js does not have that line in it.
IP IP Logged
komakula
Newbie
Newbie


Joined: 07 Jul 2008
Location: United States
Online Status: Offline
Posts: 4
Quote komakula Replybullet Posted: 07 Jul 2008 at 11:35am
Hi Iam getting same problem. Can you help on this.
sun
IP IP Logged
ChrisWaddle
Newbie
Newbie


Joined: 02 Apr 2008
Online Status: Offline
Posts: 12
Quote ChrisWaddle Replybullet Posted: 07 Jul 2008 at 1:54pm
Just make sure you have the Crystal Files in the correct directory.
IP IP Logged
ChrisWaddle
Newbie
Newbie


Joined: 02 Apr 2008
Online Status: Offline
Posts: 12
Quote ChrisWaddle Replybullet Posted: 07 Jul 2008 at 1:57pm
I have them in: C:\Inetpub\wwwroot\aspnet_client\system_web\2_0_50727\crystalreportviewers115\js
IP IP Logged
komakula
Newbie
Newbie


Joined: 07 Jul 2008
Location: United States
Online Status: Offline
Posts: 4
Quote komakula Replybullet Posted: 08 Jul 2008 at 8:27am

I deployed my application in webserver using crystal reports runtime merge module. Everything works fine except "crystal reports print to pdf is not working"


This is below code, I think it can understand clearly whats the error.
 
CrystalReportViewer1.Visible =
True
CrystalReportViewer1.DisplayGroupTree =
False
CrystalReportViewer1.DisplayToolbar =
True
CrystalReportViewer1.HasExportButton =
False
CrystalReportViewer1.HasGotoPageButton =
False
CrystalReportViewer1.HasPageNavigationButtons =
False
CrystalReportViewer1.HasRefreshButton =
False
CrystalReportViewer1.HasSearchButton =
False
CrystalReportViewer1.HasDrillUpButton =
False
CrystalReportViewer1.HasViewList =
False
CrystalReportViewer1.HasZoomFactorList =
False
CrystalReportViewer1.HasToggleGroupTreeButton =
False
CrystalReportViewer1.HasCrystalLogo =
False


I was showing only print option from CrystalReportViewer1 "DisplayToolbar" , I mean...
crystal repport is displaying report properly on server. and also displaying print button.
When i press print button it will display print popup dailog box  and it contains display options to print "All" or pages and "OK" button. Until here its workinh fine.
when i press "OK" button crystal reports automatically disply report in PDF format for printing a report.
BUT
I am getting error message when i click on "OK" button.
its working fine from local system but it was not working from webserver.
 
 
"ERROR MESSAGE"
 
Windows Internet Explorer  dailog box  with the below message
 
Internet Explorer cannot download showreport.aspx from your.test.site(i.e our http website name)

Internet Explorer was not able to open this internet site. the requested site is either unavailable or cannot be found. Please try again later
 
 


Edited by komakula - 08 Jul 2008 at 8:33am
sun
IP IP Logged
komakula
Newbie
Newbie


Joined: 07 Jul 2008
Location: United States
Online Status: Offline
Posts: 4
Quote komakula Replybullet Posted: 09 Jul 2008 at 8:18am
aspnet_client/system_web/2_0_50727/CrystalReportWebFormViewer3/html/crystalprinthost.html
 became empty when i use crystal report viewer printmote=activex
sun
IP IP Logged
komakula
Newbie
Newbie


Joined: 07 Jul 2008
Location: United States
Online Status: Offline
Posts: 4
Quote komakula Replybullet Posted: 09 Jul 2008 at 9:37am
ClapFound the answer to the problem.  The export.js file needs to be manually editted.  Here is the link to the document that provides the answer:
 
Hi ,
 
 i checked the above link, but iam not sure how can i proceed from there.
 
iam working with crystal reports in .net 2005.
 
 
 
thanks.
sun
IP IP Logged
DavidSmith
Newbie
Newbie


Joined: 06 Jun 2008
Location: United Kingdom
Online Status: Offline
Posts: 5
Quote DavidSmith Replybullet Posted: 31 Oct 2008 at 4:37am

Hi there, did you ever get your export working. I have written an application using Delphi that produces a Win32 app and this works well with CR. When I run the export to pdf option from my development system it works, however when run from our Terminal Server the export doesn;'t - in fact by adding the appropriate message lines to the exe you can see that it's the call to export that doesn't do anything. Do you think I'm missing a relevant dll or have you found another cure?

Many thanks

David

David Smith
IP IP Logged
Page  of 2 Next >>
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.047 seconds.