Пример #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="BuildReportOnlineRequest"/> class.
 /// </summary>
 /// <param name="template">File with template.</param>
 /// <param name="data">A string providing a data to populate the specified template. The string must be of one of the following types: xml, json, csv.</param>
 /// <param name="reportEngineSettings">An object providing a settings of report engine.</param>
 /// <param name="documentFileName">The filename of the output document, that will be used when the resulting document has a dynamic field {filename}. If it is not set, the "template" will be used instead.</param>
 public BuildReportOnlineRequest(System.IO.Stream template, string data, ReportEngineSettings reportEngineSettings, string documentFileName = null)
 {
     this.Template             = template;
     this.Data                 = data;
     this.ReportEngineSettings = reportEngineSettings;
     this.DocumentFileName     = documentFileName;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="BuildReportRequest"/> class.
 /// </summary>
 /// <param name="name">The filename of the input document.</param>
 /// <param name="data">A string providing a data to populate the specified template. The string must be of one of the following types: xml, json, csv.</param>
 /// <param name="reportEngineSettings">An object providing a settings of report engine.</param>
 /// <param name="folder">Original document folder.</param>
 /// <param name="storage">Original document storage.</param>
 /// <param name="loadEncoding">Encoding that will be used to load an HTML (or TXT) document if the encoding is not specified in HTML.</param>
 /// <param name="password">Password for opening an encrypted document.</param>
 /// <param name="destFileName">The filename of the output document. If this parameter is omitted, the result will be saved with autogenerated name.</param>
 public BuildReportRequest(string name, string data, ReportEngineSettings reportEngineSettings, string folder = null, string storage = null, string loadEncoding = null, string password = null, string destFileName = null)
 {
     this.Name = name;
     this.Data = data;
     this.ReportEngineSettings = reportEngineSettings;
     this.Folder       = folder;
     this.Storage      = storage;
     this.LoadEncoding = loadEncoding;
     this.Password     = password;
     this.DestFileName = destFileName;
 }