Hello,
using VS 2005 - VB
and CR XI R2


OK so I have a form, on that form i have a CrystalReportViewer.

I also have set all the proper references.


When I load the application:

Code:
myCrystalReportViewer.ReportSource = "c:\Report1.rpt"
this works perfectly fine.

BUT from there how can i change the datasource of Report1.rpt ?

Supposing that intiially the datasource is c:\excel1.xls

how can i FROM vb make it switch to c:\excel2.xls ?


I know that if i have a reportDocument1 i can do:
reportDocument1.SetDatasource(c:\myexcelfile.xls)

But I don't know how to make it for an exsiting report...

thanks