When I started with .Net, I used SQL Server tables with Crystal Reports. Now I want to use a dataset with a Crystal Report. I am doing this~
__________________________
1) Create the dataset xsd file.
2) Create the crystal report using the wizard. Choose my dataset as the datasource. It appears in the wizard's interface.
3) Create a crystalreportviewer on my webform.
4) Put this code in the page load event, after filling the dataset:
Dim crpt As New CrystalReport1
crpt.SetDataSource("CrossTabDS1")
CrystalReportViewer1.ReportSource = crpt
CrystalReportViewer1.DataBind()
_______________________
This is not working. I get the error "logon failed". That is confusing because I am using a dataset within my project. The crystalreport should not need to "logon" anywhere. Sure that dataset itself comes from an external source, but as I said I am filling it.
__________________________
1) Create the dataset xsd file.
2) Create the crystal report using the wizard. Choose my dataset as the datasource. It appears in the wizard's interface.
3) Create a crystalreportviewer on my webform.
4) Put this code in the page load event, after filling the dataset:
Dim crpt As New CrystalReport1
crpt.SetDataSource("CrossTabDS1")
CrystalReportViewer1.ReportSource = crpt
CrystalReportViewer1.DataBind()
_______________________
This is not working. I get the error "logon failed". That is confusing because I am using a dataset within my project. The crystalreport should not need to "logon" anywhere. Sure that dataset itself comes from an external source, but as I said I am filling it.