hi everybody!
the following error occurs when i try to save a pdf-file generated by crystal reports to my webserver:
-----
CrystalDecisions.CrystalReports.Engine.LoadSaveReportException: Error in File C:\WINNT\TEMP\temp_6fff5352-f1d6-4664-9b6d-6b7f09c0e563.rpt: Access to report file denied. Another program may be using it
-----
this is the part of my asp.net procedure which should export the report:
-----
exportFileName = "c:\inetpub\rptJournal.ExportOptions.ExportDestinationType = CrystalDecisions.Shared.ExportDestinationType.DiskFile
rptJournal.ExportOptions.ExportFormatType = CrystalDecisions.Shared.ExportFormatType.PortableDocFormat
DiskOpts.DiskFileName = exportFileName
rptJournal.ExportOptions.DestinationOptions = DiskOpts
rptJournal.Export()
-----
when i use the exportfilename "c:\report.pdf" or "c:\dir\report.pdf" there is no problem. only if i want to save the report within my webserver directory the exception is thrown.
HEEEEELP!
the following error occurs when i try to save a pdf-file generated by crystal reports to my webserver:
-----
CrystalDecisions.CrystalReports.Engine.LoadSaveReportException: Error in File C:\WINNT\TEMP\temp_6fff5352-f1d6-4664-9b6d-6b7f09c0e563.rpt: Access to report file denied. Another program may be using it
-----
this is the part of my asp.net procedure which should export the report:
-----
exportFileName = "c:\inetpub\rptJournal.ExportOptions.ExportDestinationType = CrystalDecisions.Shared.ExportDestinationType.DiskFile
rptJournal.ExportOptions.ExportFormatType = CrystalDecisions.Shared.ExportFormatType.PortableDocFormat
DiskOpts.DiskFileName = exportFileName
rptJournal.ExportOptions.DestinationOptions = DiskOpts
rptJournal.Export()
-----
when i use the exportfilename "c:\report.pdf" or "c:\dir\report.pdf" there is no problem. only if i want to save the report within my webserver directory the exception is thrown.
HEEEEELP!