on 12-13-2013 9:59 PM
One more problem to solve. I have no data in my report. I have searched all over the web and found no solution. I am working in Visual Studio 2012, and am building a Windows application, not a web app. I have created a very simple report, from one table, with two fields. The only thing that shows up when I do a preview is data from some bogus database with colors and other fake data. When I try to browse the data in the fields, I get nothing. When I run the program, from the IDE, I get no data at all shown in my report. When I preview and hit refresh, I get no data. I am using an ADO.NET connection from my project data connections. I have the following code in the Load method of the form that has the report on it:
Dim rpt As New status
CrystalReportViewer1.ReportSource = rpt
CrystalReportViewer1.Refresh()
CrystalReportViewer1.Update()
status is the name of my report (status.rpt). I am mightily frustrated with this and appreciate any help you can give me.
I assume ADO .NET connection means a dataset(?). Where are you telling the report to consume the dataset?
E.g.; ReportDocument.SetDataSource (myDS)
See the sample app vbnet_win_adodotnet.zip here:
Crystal Reports for .NET SDK Samples - Business Intelligence (BusinessObjects) - SCN Wiki
- Ludek
Senior Support Engineer AGS Product Support, Global Support Center Canada
Follow us on Twitter
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.