I am using the following code to create a crystal reports that shows up in a web browser as a pdf. file. Works great. Except for the fact that its a web program and when I try and have mulitple people get a report, It must be creating the same temp pdf or something, cause It says the file is being used by another process. Can someone look at the code below and figure out how to fix this problem. Thanks
crDiskfilelocation = New DiskFileDestinationOptions
Fname = ConfigurationSettings.AppSettings("ReportPath") & Session.SessionID.ToString & ".pdf"
crDiskfilelocation.DiskFileName = Fname
crExportOptions = crReport.ExportOptions
.DestinationOptions = crDiskfilelocation
.ExportDestinationType = ExportDestinationType.DiskFile
.ExportFormatType = ExportFormatType.PortableDocFormat
'crViewer.ReportSource = crReport
'crViewer.PrintMode = CrystalDecisions.Web.PrintMode.Pdf
Response.ContentType = "application/pdf"