C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




How to show Crystal Reports from table


Posted Date: 16 Jun 2008    Resource Type: Code Snippets    Category: C# Syntax
Author: Rumpa MMember Level: Gold    
Rating: Points: 10



The following code sample shows how to show Crystal Reports from table.
//import using CrystalDecisions.Shared;


protected void Page_Load(object sender, EventArgs e)
{
ConnectionInfo cn = new ConnectionInfo();

cn.ServerName = "Net1/SQLExpress"; // Machine name
cn.UserID = "sa"; // Sql Server UserID
cn.Password = "ats"; // Sql Server Password
cn.DatabaseName = "employee"; //DataBase Name
CrystalReportViewer1.ReportSource = CrystalReportSource1;

foreach (TableLogOnInfo T in CrystalReportViewer1.LogOnInfo)
{
T.ConnectionInfo =cn;
}


}

//...............we take a crystalreport viewer and a crystalreport source in the webform and inthe property of crstalreportsource there is report option we click thet and then in filename we have to write the crystalreport name such as "crystalreport1" etc//




Responses

Author: Kapil Dhawan    16 Jun 2008Member Level: Gold   Points : 2
Hello,
Can you please explain this more
as i am new in Crystle Report so dint get properly.
Anyway thanks lot for sharing your knowledge.
Regards,
Kapil


Feedbacks      
Popular Tags   What are tags ?   Search Tags  
(No tags found.)

Post Feedback


This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must Sign In to post a response.
Next Resource: How to select Different Items of ListBox & Insert Them into Different Fields of Table.
Previous Resource: How to Export To Excel Sheet & DOC format
Return to Discussion Resource Index
Post New Resource
Category: C# Syntax


Post resources and earn money!
 
Related Resources



dotNet Slackers   BizTalk Adaptors    Web Design


Contact Us    Privacy Policy    Terms Of Use