private byte[] RenderReport(string reportName, string format)
        {
            string extension;
            string mimeType;
            string encoding;
            string[] streamIDs;
            Warning[] warnings;

            var service = new ReportExecutionService();
            service.Credentials = CredentialCache.DefaultCredentials;
            service.LoadReport(reportName, null);

            var parameter = new ParameterValue();
            parameter.Name = "DeliveryId";
            parameter.Value = this.deliveryIDParam;
            var parameters = new ParameterValue[1] { parameter };
            service.SetExecutionParameters(parameters, "ru-RU");

            return service.Render(format, null, out extension, out mimeType, out encoding, out warnings, out streamIDs);
        }
Пример #2
0
 /// <remarks/>
 public void SetExecutionParameters2Async(ParameterValue[] Parameters, string ParameterLanguage) {
     this.SetExecutionParameters2Async(Parameters, ParameterLanguage, null);
 }
Пример #3
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);
 }
Пример #4
0
 public ExecutionInfo2 SetExecutionParameters2(ParameterValue[] Parameters, string ParameterLanguage) {
     object[] results = this.Invoke("SetExecutionParameters2", new object[] {
                 Parameters,
                 ParameterLanguage});
     return ((ExecutionInfo2)(results[0]));
 }