views:

627

answers:

2

Hi all, I'm trying to export the reportsource of a crystal report viewer in .Net 1.1 onto disk as a PDF using

CrystalDecisions.CrystalReports.Engine.ReportDocument cr = (CrystalDecisions.CrystalReports.Engine.ReportDocument)crvView.ReportSource;
cr.ExportToDisk(CrystalDecisions.[Shared].ExportFormatType.PortableDocFormat, @"C:\Temp\Temp.pdf");

I know it's the "cr.ExportToDisk..." line thats failing, but dont know why. Ive checked to make sure the Crystal Report versions are the same on the client machines and they are.

Sometime i get the message "Memory could not be read at source...." and the application completely crashes, and other times the app crashes without the message.

Any ideas on why this happens and how to fix it would be greatly appreciated.

Cheers

A: 

You may check to make sure that the security permissions are the same for the locations that you are trying to export to.

Dusty
I've tried exporting to several locations on the clients machine with the same result (including locations that i know the client has full priveladges to).
Ben
A: 

Are you able to print these "faulty" reports? If so, have you tried printing to CutePdf which might allow you to at least work around the issue temporarily.

Rowland Shaw