Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

"Failed to export the report."

Status
Not open for further replies.

crisd

Programmer
Jan 8, 2003
4
IN
Using Crystal Reports 8.5 I have a created a report with Sql Server 7.0 as the data source and ASP as the application.
After I completed the report development, I wanted to export the same to PDF.
When I initiated the export from Crystal Reports through ASP, I received error "Failed to export the report."

The export to RTF and other formats is working fine. Only in PDF we are facing the problem. We have even tried reinstalling Acrobat writer and Crystal reports software.
Both Database and application are hosted in the same server.
OS is Win2k with IIS5 and SP3.
Tried unregistering and registring exportmodeller.dll and crfx_pdf.dll too but with no success.

Mention below is the part of the code which is used for generating and exporting pdf.
strDiskFileName = strPDFDirectory & familyCode & vntArrreports(intRepCount, 2) & ".pdf"

ExportFileName = strDiskFileName

Path = Request.ServerVariables("PATH_TRANSLATED")
While (Right(Path, 1) <> &quot;\&quot; And Len(Path) <> 0)
iLen = Len(Path) - 1
Path = Left(Path, iLen)
Wend

ExportDirectory = Path & &quot;pdf\&quot; & cstr(session(&quot;user_cd&quot;)) & &quot;\&quot;
ExportType = &quot;31&quot;

CrystalExportOptions.DiskFileName = ExportDirectory & ExportFileName

CrystalExportOptions.FormatType = CInt(ExportType)

CrystalExportOptions.DestinationType = CInt(1)

Session(&quot;oRpt&quot;).Export False

Note: Same application is running properly in a test server.
want to know what could be the problem. Is it a DLL issue or some other problem.
 
Check the version of Crxf_pdf.dll, if it is version 9 something. You need go to CD suppport site to download a product upgrade to fix this one.

The reason is some of the CE8.5 monthly patch files replaced the original Crxf_pdf.dll with version 8.5.

Try it, cheers.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top