cancel
Showing results for 
Search instead for 
Did you mean: 

No data in report

Former Member
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

former_member183750
Active Contributor
0 Kudos

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

http://wiki.sdn.sap.com/wiki/x/JQBmBQ

Former Member
0 Kudos

That was it!  I had missed that line.  Actually, I had tried it, and it didn't work, but I had obviously done something else wrong.  Putting that line in fixed my problem.  I now have a program producing a report.  Thanks so much for all of your help.  You are a real blessing.

Answers (0)