Win Surprise Gifts!!!
Top 5 Contributors of the Month
Post New Question
Subscribe to Forum
February 24, 2011
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
<add name="constr" connectionString="Data Source=DESKTOP2\SQLEXPRESS;Initial Catalog=LotteryDatabase;Integrated Security=True;Pooling=False"/>
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...
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
Hope this helps.
Thanks & Regards,
To post reply
Related Questions Related Questions
How to change CrstalReport Database in Crystal Report
Crystal Report Problem
crystal report in windows application..
Crystal Report Display Problem
crystal report function
how to add Crystal report in c#.net 2008
how to make crystal report customize in visual studio 2008
how to hide Section programmatically in crystal Report using C#
how to export crystal report in pdf file by default using C#
how to create user defined crystal report using C#
Latest Forum Questions From The Same Category
Slash(/) in Combobox
attaching the report in the web page
How do i get payment status in redirect page using bitpay?
Login with Facebook and Save details in database
Login with facebook account in my website
How to make a nested datalist control?
What class does Icon derive from?
What are the validation controls?
What''s the difference between an interface and abstract class?
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more
Quick Links For Forum Categories:
Hall of Fame
Terms of Service
Tell A Friend