
Exporting crystal reports from visual studio.net is not working in the final release
Hi all
Using Version beta 2 of Visual Studio.Net thi code below works perfectly,
but with the final release it stops to work.
The report is running ok, but none of the exporting formats are working.
Can anyone give an answer ?
The code I mentioned :
................
'******First user selec one of three options ("Excel, Adobe or Word")*******
Case "adobe"
'Export to PDF
'append a filename to the export path and set this file as the filename
property for
'the DestinationOptions class
my_file_name = ExportPath + my_file_name + ".pdf"
crDiskFileDestinationOptions.DiskFileName = my_file_name
'set the required report ExportOptions properties
With crExportOptions
.DestinationOptions = crDiskFileDestinationOptions
.ExportDestinationType = ExportDestinationType.DiskFile
.ExportFormatType = ExportFormatType.PortableDocFormat
End With
'Once the export options have been set for the report, the report can be
exported. The Export command
'does not take any arguments
'*** Then after all export information , we finally export the report
Try
' Export the report
oRpt.Export()
Me.lbl_message.text = "Arquivo enviado com sucesso!"
Catch err As Exception
Response.Write("<BR>")
Response.Write(err.Message.ToString)
Me.lbl_message.text = "ERRO- o arquivo n?o foi enviado!"
End Try
This code is ok to run with VS studio net version Beta2..
Thanks
Luis