RakeshBhandari
asked on
providing sql username & password to crystal report in asp.net c#
i have a crystal report in asp.net & c#
the rpt file has the sql query with groupings as i require
what i want to do is to provide ONLY the sql username & password using C# code
please note i want to supply just the username & password... NOT wanting to fill the report with a dataset or whatever
the rpt file has the sql query with groupings as i require
what i want to do is to provide ONLY the sql username & password using C# code
please note i want to supply just the username & password... NOT wanting to fill the report with a dataset or whatever
CrystalReportViewer1.ReportSource = "BrokerageConsolidatedMonthHO.rpt";
CrystalReportViewer1.SelectionFormula = "Month ({table1.cmonth})=5" + ;
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
thank you!
and you can get there information from web.config
System.Data.SqlClient.SqlC
SetCRLogOnInfo(rptDoc, SConn.DataSource, SConn.UserID, SConn.Password, SConn.InitialCatalog);
Open in new window