.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
Steve Jackman
Imran Ghani
Santhakumar Munuswamy

Home >> Forum >> ASP.Net >> Post New QuestionBookmark and Share Subscribe to Forum

Crystal Report

Posted By: Aamrapali Tamgadge     Posted Date: February 24, 2011    Points:2   Category :ASP.Net
Hi!

i am using asp.net 2005,sqlserver 2005 and crystal reports for .net 2005.

I have to create the Crystal report

But i need to connect it using connection string from web.config file.

I've used the following connection string in web.config file

<connectionStrings>
<add name="constr" connectionString="Data Source=DESKTOP2\SQLEXPRESS;Initial Catalog=LotteryDatabase;Integrated Security=True;Pooling=False"/>
</connectionStrings>

Please help me how can i use these constr in .rpt file to connect database
and can we disply the perticular query string values in .rpt file to print this perticular record
Thanks in Advance...

Responses
Author: Dhiraj Ranka             
Posted Date: February 28, 2011     Points: 20   

You have to bind the data source property of crystal report control in .cs file of the report with your connection string.

You can follow this link
http://www.beansoftware.com/ASP.NET-Tutorials/Using-Crystal-Reports.aspx

Hope this helps.

Thanks & Regards,
Dhiraj Ranka
http://www.twitter.com/dhirajranka | http://www.dhirajranka.com


Post Reply

You must Sign In To post reply
 
 
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend