Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

using a crystal report with a dataset

Status
Not open for further replies.

OhioSteve

MIS
Joined
Mar 12, 2002
Messages
1,352
Location
US
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.
 
yaaa...check that out....4 days of pulling out my hair...the login error should be really easy to fix..you have to setup a connection string in addation to setting in up in the dataset...

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top