Exemplo n.º 1
0
        public void initParameterValues(string message)
        {
            // Set up for processing the report
            // Configure for parameters
            parameters = new List<ReportServer.ParameterValue>();
            // Parse the incoming message into parameters for use on the report
            Dictionary<string, string> keyValuePairs = message.Split(',')
                .Select(value => value.Split('='))
                .ToDictionary(pair => pair[0], pair => pair[1]);
            foreach (KeyValuePair<string,string> param in keyValuePairs)
            {
                // Prep for finding report parameters
                parameter = new ReportServer.ParameterValue();
                // Process the special parameters used to override the report name and report path
                // values are name value pairs name=value
                // filePath = the folder on disk where the report should be stored
                // reportName = the full path to the report on the report server ie /DSI/CompanyList
                // remaining values passed through are parameter values
                switch (param.Key)
                {
                    case "filePath":
                        filePath = param.Value;
                        break;
                    case "reportName":
                        reportPath = param.Value;
                        break;
                    default:
                        parameter.Name = param.Key;
                        parameter.Value = param.Value;
                        parameters.Add(parameter);
                        break;
                }
                
            }

        }
Exemplo n.º 2
0
 /// <remarks/>
 public void SetExecutionParameters2Async(ParameterValue[] Parameters, string ParameterLanguage, object userState) {
     if ((this.SetExecutionParameters2OperationCompleted == null)) {
         this.SetExecutionParameters2OperationCompleted = new System.Threading.SendOrPostCallback(this.OnSetExecutionParameters2OperationCompleted);
     }
     this.InvokeAsync("SetExecutionParameters2", new object[] {
                 Parameters,
                 ParameterLanguage}, this.SetExecutionParameters2OperationCompleted, userState);
 }
Exemplo n.º 3
0
 /// <remarks/>
 public void SetExecutionParameters2Async(ParameterValue[] Parameters, string ParameterLanguage) {
     this.SetExecutionParameters2Async(Parameters, ParameterLanguage, null);
 }
Exemplo n.º 4
0
 public ExecutionInfo2 SetExecutionParameters2(ParameterValue[] Parameters, string ParameterLanguage) {
     object[] results = this.Invoke("SetExecutionParameters2", new object[] {
                 Parameters,
                 ParameterLanguage});
     return ((ExecutionInfo2)(results[0]));
 }