Class DesignerSettings
  
  
  
  
    Inheritance
    System.Object
    DesignerSettings
   
  
  Assembly: FastReport.OpenSource.Web.dll
  Syntax
  
    public class DesignerSettings
   
  Properties
  
  
  Config
  Gets or sets the json of configuration of Online Designer
 
  
  Declaration
  
    public string Config { get; set; }
   
  Property Value
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.String | 
         | 
      
    
  
  
  Default
  
  
  Declaration
  
    public static DesignerSettings Default { get; }
   
  Property Value
  
  
  Locale
  Gets or sets the locale of Designer
 
  
  Declaration
  
    public string Locale { get; set; }
   
  Property Value
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.String | 
         | 
      
    
  
  
  Path
  Gets or sets path to the Report Designer
 
  
  Declaration
  
    public string Path { get; set; }
   
  Property Value
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.String | 
         | 
      
    
  
  
  SaveCallBack
  Gets or sets path to callback page after Save from Designer
 
  
  Declaration
  
    [Obsolete("Designer.SaveCallBack is obsolete, please use Designer.SaveMethod instead.")]
public string SaveCallBack { get; set; }
   
  Property Value
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.String | 
         | 
      
    
  
  
  SaveMethod
  Callback method for saving an edited report by Online Designer
Params: reportID, report file name, report, out - message
 
  
  Declaration
  
    public Func<string, string, string, string> SaveMethod { get; set; }
   
  Property Value
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Func<System.String, System.String, System.String, System.String> | 
         | 
      
    
  
  Examples
  webReport.Designer.SaveMethod = (string reportID, string filename, string report) =>
{
    string webRootPath = _hostingEnvironment.WebRootPath;
    string pathToSave = Path.Combine(webRootPath, filename);
    System.IO.File.WriteAllText(pathToSave, report);
    return "OK";
};
  
  SaveMethodAsync
  Async callback method for saving an edited report by Online Designer
webReport.Designer.SaveMethodAsync = async (reportID, filename, report, token) =>
{
   string webRootPath = _hostingEnvironment.WebRootPath;
   string pathToSave = Path.Combine(webRootPath, "DesignedReports", "AsyncReports", filename);
   if (!Directory.Exists(pathToSave))
       Directory.CreateDirectory(Path.GetDirectoryName(pathToSave));
   await System.IO.File.WriteAllTextAsync(pathToSave, report, token);
   return "OK";
};
 
  
  Declaration
  
    public Func<string, string, string, CancellationToken, Task<string>> SaveMethodAsync { get; set; }
   
  Property Value
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Func<System.String, System.String, System.String, System.Threading.CancellationToken, System.Threading.Tasks.Task<System.String>> | 
         | 
      
    
  
  
  SavePath
  Gets or sets path to a folder for save designed reports
If value is empty then designer posts saved report in variable ReportFile on call the DesignerSaveCallBack // TODO
 
  
  Declaration
  
    public string SavePath { get; set; }
   
  Property Value
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.String | 
         | 
      
    
  
  
  ScriptCode
  Enable code editor in the Report Designer
 
  
  Declaration
  
    public bool ScriptCode { get; set; }
   
  Property Value
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Boolean | 
         |