ActiveReports 19 .NET Edition
MESCIUS.ActiveReports.Blazor.Viewer Assembly / GrapeCity.ActiveReports.Blazor.Viewer Namespace / InitializationOptions Class / DefaultExportSettings Property
Example

In This Topic
    DefaultExportSettings Property (InitializationOptions)
    In This Topic
    Gets or sets custom default settings for exports, formatted by export type and setting name.
    Syntax
    'Declaration
     
    Public Property DefaultExportSettings As Dictionary(Of String,Dictionary(Of String,ExportSetting))
    public Dictionary<string,Dictionary<string,ExportSetting>> DefaultExportSettings {get; set;}

    Property Value

    A dictionary where keys are export types and values are dictionaries of export settings.
    Remarks
    Format keys are mht, pdf, tiff, xls, xlsx, csv, doc, docx, json, xml, xlsxData, csvData, rtf and txt. Settings keys are the export settings which are available for RenderingExtensions.
    Example
    Format keys are mht, pdf, tiff, xls, xlsx, csv, doc, docx, json, xml, xlsxData, csvData, rtf and txt. Settings keys are the export settings which are available for RenderingExtensions.
    new Dictionary<string, Dictionary<string, ExportSetting>>()
    {
       {
           "xls",
           new Dictionary<string, ExportSetting>()
           {
               {
                   "FileName", new ExportSetting()
                   {
                       Value = "test",
                       Visible = false
                   }
               }
           }
       }
    };
    See Also