Print Page | Close Window

Print To PDF not working

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=1169
Printed Date: 02 May 2024 at 5:15am


Topic: Print To PDF not working
Posted By: bdean
Subject: Print To PDF not working
Date 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.



Replies:
Posted By: bdean
Date 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:
 
http://technicalsupport.businessobjects.com/KanisaSupportSite/dynamickc.do?externalId=8807322&sliceId=&command=show&forward=nonthreadedKC&kcId=8807322 - http://technicalsupport.businessobjects.com/KanisaSupportSite/dynamickc.do?externalId=8807322&sliceId=&command=show&forward=nonthreadedKC&kcId=8807322


Posted By: ChrisWaddle
Date Posted: 10 Apr 2008 at 10:43am
My copy of export.js does not have that line in it.


Posted By: komakula
Date Posted: 07 Jul 2008 at 11:35am
Hi Iam getting same problem. Can you help on this.


-------------
sun


Posted By: ChrisWaddle
Date Posted: 07 Jul 2008 at 1:54pm
Just make sure you have the Crystal Files in the correct directory.


Posted By: ChrisWaddle
Date Posted: 07 Jul 2008 at 1:57pm
I have them in: C:\Inetpub\wwwroot\aspnet_client\system_web\2_0_50727\crystalreportviewers115\js


Posted By: komakula
Date 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
 
 


-------------
sun


Posted By: komakula
Date 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


Posted By: komakula
Date 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:
 
http://technicalsupport.businessobjects.com/KanisaSupportSite/dynamickc.do?externalId=8807322&sliceId=&command=show&forward=nonthreadedKC&kcId=8807322 - http://technicalsupport.businessobjects.com/KanisaSupportSite/dynamickc.do?externalId=8807322&sliceId=&command=show&forward=nonthreadedKC&kcId=8807322
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


Posted By: DavidSmith
Date 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


Posted By: recthor
Date Posted: 09 Sep 2013 at 9:17pm
 I do this almost daily. I use a http://www.rasteredge.com/how-to/vb-net-imaging/pdf-processing/ - PDF processing programme . Install it and it becomes a selectable http://www.rasteredge.com/how-to/vb-net-imaging/pdf-print/ - printer option . Now you can create PDFs in any program at all, including Adobe Acrobat reader! Just open a PDF, select print, and specify the page range you want to print and select the Raster edge  printer driver.



Print Page | Close Window