Thanks so much snr.
Yes I have my code under Page Load.
I just got it fixed. The problem is I used one form and reportviewer for displaying my reports. In the form I created custom enum and procedure to determine user selection at runtime and display the approapriate report accordingly.
When I created separate forms for each report I was able to export them without any problems. Below is a section of the code that did not work showing
If selectedReport=ReportType.Branches then
ds = New db_asfDataSet
datPmt = New db_asfDataSetTableAdapters.get_all_branchesTableAdapter
datPmt.Fill(ds.get_all_branches)
Dim rpt As New branch_rpt
rpt.SetDataSource(ds)
CrystalReportViewer1.ReportSource = rpt
ElseIf selectedReport=ReportType.Customers Then
datPmt = New db_asfDataSetTableAdapters.get_all_customersTableAdapter
datPmt.Fill(ds.get_all_customers)
Dim rpt As New custs
rpt.SetDataSource(ds)
CrystalReportViewer1.ReportSource = rpt
...
End If
Thanks so much for your assistance