Question Report Viewer - Get connection string from app.config

mrwilliam

New member
Joined
Aug 6, 2016
Messages
1
Location
Mississippi
Programming Experience
Beginner
Hi I'm new here. Not to mention I'm still new to C# but I'm slowly catching on.

Here is my situation. I'm working on an application to track some data. In one form the user enters data into a database and then said data (last 13 records) is displayed in a listveiw. This part is working fine, getting the connection straight from my app.config file. That part was relatively easy, just modified the class that had me connection string.

The other part of my application is where I am having trouble. I am using the report viewer control and providing reorts on said data. This works but I need to be able to change this when i deploy the application, hence getting the connection string from app.config.

Any help anyone can provide would be great. Thanks!
 
Back
Top Bottom