Click to See Complete Forum and Search --> : Unable to print to PDF


StretchedTech
December 6th, 2004, 03:58 PM
Hello all,

I am using Crystal 8.5 and when I am trying to export a report to PDF I am not seeing the option. I tried reinstalling Adobe 6 Pro and also Crystal but I am unable to print to pdf. Any help would greatly appreciated.

P.S.
I have succesfully installed both on different machines and are able to print to pdf.

springsoft
December 6th, 2004, 04:13 PM
using CR Active X Designer RunTime (CRAXDRT):
here's a code snippet:

Set objPrintApp = New CRAXDRT.Application
Set objReport = objPrintApp.OpenReport(strReportSourcePath & strSource)

' for PDF, set gintExportType, below, to 31.
.
.
.
.
Set objExportOptions = objReport.ExportOptions


With objExportOptions
.DestinationType = crEDTDiskFile
.FormatType = gintExportType
.DiskFileName = strReportDestPath & strDestSubDir & "\" & strDest
End With
OpenReport strReportSourcePath & strSource


If it's still not working, you are probably missing the export dll's on the PC you're deploying to. Crystal is also very sensitive to where the dll's are installed to.


Dave

springsoft
December 8th, 2004, 05:17 PM
oops, I went off on a tangent there....

If you are using code (VB, C++, etc), above model works fine.
If you do not see option for PDF files from CR environment when using File | Print | Export.., then you must not have installed the PDF export option when installing CR.
Installing Adobe 6 should make no difference, because the CR program relies on DLLs installed by it, not by Adobe.

Try reinstalling CR.

Dave

bpolunin
June 6th, 2005, 04:15 PM
Hi guys,
I am having trouble coding this function too.
The error I get is:
On rep.Export False I get the parameter window first. Why is that?
Then I get an error saying: "Server has not yet been opened"

What is this? Please help ASAP. I have to get this working by Wed.

My code is:
Private Sub ExportToPDF(udtReport As TReport)
Dim appl As New CRAXDRT.Application
Dim rep As CRAXDRT.Report

Set rep = appl.OpenReport(udtReport.sReportFilename, 1)
rep.ExportOptions.DiskFileName = "c:\pdf_report.pdf"
rep.ExportOptions.DestinationType = crEDTDiskFile
rep.ExportOptions.FormatType = crEFTPortableDocFormat
rep.Export False


End Sub

The report is created prior to calling this Sub


Thanks in advance

bpolunin
June 7th, 2005, 10:01 AM
Hey guys,
Does no one know what is wrong with this? Did I forget to set something?
Please help.

Thanks.

garbanzor
October 7th, 2005, 12:31 PM
Do you know which are the export dlls?

RobDog888
October 7th, 2005, 08:38 PM
Look in the Runtime.hlp file for a complete listing of all dlls and ocxs required for your project package. There are certain dlls for each type of export option you want to support.

Cateye
November 4th, 2005, 05:03 AM
I have the same problem with CR. I want to export a report to a PDF File and it doesn't work ... and I dont want to use "CRAXDRT".

Do you know "PEOutputToFile"?