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
I am getting a run time error while attempting to export crystal report to PDF by two methods:

1>A parameterized report was run from an ASP (Active Server Pages) application and successfully displayed in one of the Crystal web viewers using the ASP Report Server. However, while attempting to export the report to PDF, by clicking on the export button on the toolbar, the following error message was displayed:
"CRAXDRT Error occurred on Server -2147190908: Failed to export the report."

2>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, 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.
 
Thanks for the Valuable Information.
But the problem is that the existing setup was working properly till last week. This week all of a sudden while the PDF's were getting generated(around 50 PDF's were already generated), it concdoff.
And now whenever I try to generate PDF, it's giving me the error&quot;Failed to export the report&quot;

Infact the same setup is still working in our development server.And we are generating PDF's from that server.

Now when I try to register the appropriate version of Atl.dll (NT 2000) with Exportmodeller.dll and crtslv.dll manually with the Regsvr32.exe utility, it's giving me error &quot;The file is being used&quot;

Could you please guide me on how to go about it.

Thanks & Regards

 
crisd,

I am now having the same exact problem as you. Can you tell me what you did to finally fix it?

Thanks,

Nick

nikko024@hotmail.com
 
I have a report where in I have to display the subreport based on some info in the main report. The page formatting and painting is done in the main report. The sub report has only data, which I have pasted in the Report Footer section of main report. Though am able to use conditional suppress. Its creating an blank Page. I some how need to get rid of this Blank page.

someone can help me eithe to get rid of this page in and from Crystal

or

From Export Options of InteractiveViewer.asp. Am able to say ExportOptions(5) i.e Which is PDF, but am not able to specify page range. How do I do that?

Thanks
Ramani
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top