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) <> "\" And Len(Path) <> 0)
iLen = Len(Path) - 1
Path = Left(Path, iLen)
Wend
ExportDirectory = Path & "pdf\" & cstr(session("user_cd") & "\"
ExportType = "31"
CrystalExportOptions.DiskFileName = ExportDirectory & ExportFileName
CrystalExportOptions.FormatType = CInt(ExportType)
CrystalExportOptions.DestinationType = CInt(1)
Session("oRpt".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.
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) <> "\" And Len(Path) <> 0)
iLen = Len(Path) - 1
Path = Left(Path, iLen)
Wend
ExportDirectory = Path & "pdf\" & cstr(session("user_cd") & "\"
ExportType = "31"
CrystalExportOptions.DiskFileName = ExportDirectory & ExportFileName
CrystalExportOptions.FormatType = CInt(ExportType)
CrystalExportOptions.DestinationType = CInt(1)
Session("oRpt".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.