Click here to Skip to main content
15,891,136 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
VB
Dim exportOpts As ExportOptions = RptObj.ExportOptions

   If strRepFormate = "PDF" Then
  exportOpts.ExportFormatType = ExportFormatType.PortableDocFormat
                                Else
  exportOpts.ExportFormatType = ExportFormatType.Excel

Dim objExcelOptions As ExcelFormatOptions = New ExcelFormatOptions
                                    objExcelOptions.ExcelUseConstantColumnWidth = False
RptObj.ExportOptions.FormatOptions = objExcelOptions

End If

exportOpts.ExportDestinationType = ExportDestinationType.DiskFile
exportOpts.DestinationOptions = New DiskFileDestinationOptions
Dim diskOpts As DiskFileDestinationOptions = New DiskFileDestinationOptions

In the above I am exporting an report to an mail scheduler, here I need to find whether the file write to PDF or excel format is being completed. How to find that. The code is not accurate. I need this because I am getting the error that the file is being used by another process cannot access it like that.
Posted
Updated 18-Dec-11 23:31pm
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900