3 steps cleared this up for me.
1) You need to set in InetMgr the folder you are exporting to to be Write
enabled.
2) Also in InetMgr, under the porperties for your export folder, you need to
set the Application Pool setting to: MSSharePointAppPool.
3) And finally, you need to set, under Windows Explorer, the security level
for the export folder to Everyone=Full Control.
This should clear you up....did for me when I had this *exact* same problem.
But don't take just my word for it:
http://dotnetjunkies.com/WebLog/rich.../24/14362.aspx
-- Andrew
"Mandar" <> wrote in message
news:CA253755-D79A-4667-952C-...
> I am trying to export crystal report to pdf. but i am getting folloing
error: "Error in File
C:\DOCUME~1\MKM-BA~1\ASPNET\LOCALS~1\Temp\temp_0c6b2c59-df8a-4b26-a570-a2189
ee212ac.rpt: Access to report file denied. Another program may be using it."
>
> It works with other reports but not this one.
>
> Code using for export:
> Dim myExportOptions As CrystalDecisions.Shared.ExportOptions
> Dim myDiskFileDestinationOptions As
CrystalDecisions.Shared.DiskFileDestinationOptions
> Dim myExportFile As String
>
> myExportFile = "c:\inetpub\wwwroot\" & Session.SessionID.ToString
& ".pdf"
> myDiskFileDestinationOptions = New
CrystalDecisions.Shared.DiskFileDestinationOptions
> myDiskFileDestinationOptions.DiskFileName = myExportFile
> myExportOptions = crystalReport31.ExportOptions
> With myExportOptions
> .DestinationOptions = myDiskFileDestinationOptions
> .ExportDestinationType = .ExportDestinationType.DiskFile
> .ExportFormatType = .ExportFormatType.PortableDocFormat
> End With
> crystalReport31.Export()
>
> Thanks in advance
> Mandar