Solved

Setting connection string of the report viewer

Posted on 2011-03-10
5
1,554 Views
Last Modified: 2012-06-21
I am using Visual Studio 2010 as the IDE,Microsoft SQL Server 2005 database as the backend database and the report viewer control to build reports. The report viewer currently reads the connection strings from the web.config file. I would like to encrypt the connection string in the web.config file and set the connection string of the report viewer dynamically. How can I go about doing this.

Thanks,
Aditya
0
Comment
Question by:pmac38CDS
  • 3
5 Comments
 
LVL 11

Expert Comment

by:SAMIR BHOGAYTA
ID: 35096310
Hi, you have to use the dataset.xsd for retrieving the data from database into your report file. And at the time of creating dataset you have to define the connection string.
0
 
LVL 13

Expert Comment

by:agarwalrahul
ID: 35096465
0
 
LVL 1

Author Comment

by:pmac38CDS
ID: 35097349
Can you give more specific examples? So for example I have an encrypted connection string in the web.config. How do I set the connection string of the report viewer(remember I am using the report viewer control in Visual Studio 2010) dynamically.
0
 
LVL 1

Accepted Solution

by:
pmac38CDS earned 0 total points
ID: 35273942
Nevermind I figured it out. The designer.cs file was missing in the solution. Once I added that I was able to set it.

Thanks for all your help,
Aditya
0
 
LVL 1

Author Closing Comment

by:pmac38CDS
ID: 35312691
Nevermind I figured it out. The designer.cs file was missing in the solution. Once I added that I was able to set it.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now