TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
IFrame
NA
1
0
reg dynamic datasources
Jun 14 2006 3:23 AM
How do we pass the Initial catalog(DB Name) and the datasource name (Server name) to the rdl file which i call using my report viewer object From a Webpage (C#)....i need to do it so that the same .rdl solution can be used for multiple datasources.
I tried setting Data Source=Parameters!ServerName.Value;Initial Catalog=Parameters!DBName.Value
in the connection string in the dataset of my .rdl solution and Passing the datasource and initial catalog as parameters to reportviewer
reportParam[1] =
new
ReportParameter
(
"DatsSource"
,
Convert
.ToString(Datasource));
reportParam[2] =
new
ReportParameter
(
"InitialCatalog"
,
Convert
.ToString(InitialCatalog));
// The datasource and initial catalog strings were defined already
..This doesnt work.. it fails to connect to the server..
Can some one suggest a better way f doing it ?
Thanks
Reply
Answers (
0
)
Problem with upgraded to Visual Studio 2005
Converting visual studio 2005 to an earlier version of visual studio