<pre>protected void btnOk_Click(object sender, EventArgs e) { string dataSourceName = Request.QueryString["ItemPath"]; string parent = "/"; ReportService.DataSourceDefinition dsd = new RxBILegal.ReportService.DataSourceDefinition(); ReportService.ReportingService2005 rs = new RxBILegal.ReportService.ReportingService2005(); RxBILegal.ReportService.Property[] properties = null; rs.Credentials = new System.Net.NetworkCredential(TrippleDES.Decrypt(ConfigurationManager.AppSettings["crisscross.FixedSsrsUsername"]), TrippleDES.Decrypt(ConfigurationManager.AppSettings["crisscross.FixedSsrsPassword"]), TrippleDES.Decrypt(ConfigurationManager.AppSettings["crisscross.FixedSsrsDomain"])); dsd.Enabled = true; dsd.EnabledSpecified = true; dsd.Extension = "SQL"; dsd.ImpersonateUserSpecified = false; dsd.Prompt = null; dsd.WindowsCredentials = false; //rs.GenerateModel('/'+dataSourceName, txtName.Text.Trim(), parent, properties,out error); //rs.GenerateModel('/' + dataSourceName, txtName.Text.Trim(), parent, properties); rs.GenerateModel("/"+dataSourceName, txtName.Text.Trim(), parent, properties); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)