Report Design
 Crystal Reports Forum : Crystal Reports for Visual Studio 2005 and Newer : Report Design
Message Icon Topic: Binding report to collection of custom object Post Reply Post New Topic
Author Message
joblot
Newbie
Newbie
Avatar

Joined: 30 Jan 2007
Location: Australia
Online Status: Offline
Posts: 2
Quote joblot Replybullet Topic: Binding report to collection of custom object
    Posted: 30 Jan 2009 at 10:41pm

I designed a report using the wizard and selecting my business entity from the Data dialog window. I add a viewer control to the form and bound my report to the viewer as follows:

AL7159_NA report = new AL7159_NA();

ClientService cs = new ClientService();

IList<client> clients = cs.GetAllClients();

 

report.SetDataSource(clients);

crystalReportViewer1.ReportSource = report;

My problem is, when I run this report I get Database login window. I am stumped here. Why the report is prompting for login, when I am calling a method on the service layer to return me list on my entities!

JL
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.016 seconds.