Exporting crystal reports from visual studio.net is not working in the final release 
Author Message
 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



Tue, 07 Sep 2004 19:29:23 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. i am using vb.net and crystal reports for visual studio.net

2. Exporting Doc in Crystal Report for Visual Studio .NET as landscape

3. Linking Crystal Report with a stored Procedure -- crystal report for visual studio.net

4. Exporting Crystal Report 85 to PDF from Visual Studio 6.0

5. Visual Studio .Net 2003 Final Beta, simple socket code breaks between 2002 and 2003

6. Visual Studio .NET 2003 and Crystal Report Deploy

7. problem with crystal reports in visual studio.NET

8. Visual Studio.NET with Crystal Reports and Joined Tables

9. problem with crystal reports in visual studio.NET

10. Opening or Creating a Crystal Report in Visual Studio.NET

11. problem with crystal reports in visual studio.NET

12. SetDataSource not working with Crystal Reports .NET in VB.NET

 

 
Powered by phpBB® Forum Software