Data Connectivity
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Data Connectivity
Message Icon Topic: EDM Data Source for Crystal Report in VS2010 Post Reply Post New Topic
Author Message
paulmcm
Newbie
Newbie


Joined: 25 Mar 2012
Online Status: Offline
Posts: 11
Quote paulmcm Replybullet Topic: EDM Data Source for Crystal Report in VS2010
    Posted: 25 Mar 2012 at 11:14pm
Hi - I've a simple report form that has a few buttons for different reports. When a button is clicked i'm doing this:

private void btnStatutoryDirectorsListing_Click(object sender, EventArgs e) {      frmStatutoryDirectorsListing frmStatutoryDirectorsListing = new frmStatutoryDirectorsListing(){ StartPosition = FormStartPosition.CenterScreen };      
frmStatutoryDirectorsListing.Show();
}
within the load event of frmStatutoryDirectorsListing i'm doing the following to display my report:

private void frmStatutoryDirectorsListing_Load(object sender, EventArgs e)
{      
StatutoryDirectorsListing rptStatutoryDirectorsListing = new StatutoryDirectorsListing();      crystalReportViewer1.ReportSource = rptStatutoryDirectorsListing;
}

The datasource for this report is 2 entities from my EDM, at the minute I just want to display a couple of fields from each entity but when I run the application and click the button to display the report, I am being asked for a Database login? Can I set my project up so that the report is automically logged onto the DB? Also are there any online examples of setting up an EDM as the data source for CR within VS2010?
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.051 seconds.