combit List & Label 30 - .NET Help
combit.Reporting.Web.WebReportDesigner.Server Namespace / WebReportDesignerController Class / OnProvideFileUploadExtensions Method
Contains context information (see ProvideFileUploadExtensions).
Example


In This Topic
    OnProvideFileUploadExtensions Method
    In This Topic
    This virtual method is called when the Web Report Designer creates a new instance and the option for custom file extensions is loaded. If you override this method, you must make sure that the default information is transferred to the File Upload Extensions object.
    Syntax
    'Declaration
     
    
    Public Overridable Sub OnProvideFileUploadExtensions( _
       ByVal provideFileUploadExtensions As ProvideFileUploadExtensions _
    ) 
    public virtual void OnProvideFileUploadExtensions( 
       ProvideFileUploadExtensions provideFileUploadExtensions
    )
    public:
    virtual void OnProvideFileUploadExtensions( 
       ProvideFileUploadExtensions^ provideFileUploadExtensions
    ) 

    Parameters

    provideFileUploadExtensions
    Contains context information (see ProvideFileUploadExtensions).
    Remarks

    When using this method, ALL file formats that can be uploaded to the Web Report Designer must be defined. This includes project files, image formats, PDF documents etc. and should be defined here if they are also to be uploaded.

    Example
    //LLWebReportDesignerController.cs
    public class LLWebReportDesignerController : WebReportDesignerController
     {
         /* ... */
    	 
         public override void OnProvideFileUploadExtensions(ProvideFileUploadExtensions provideFileUploadExtensions)
         {
             // allows PDF files, some types of images, multiple list formats (.lst and .srt), labels and cards
             provideFileUploadExtensions.FileExtensions = ".pdf,.png,.jpg,.gif,.lst,.srt,.lbl,.crd";
         }
     }
    Requirements

    Platforms: Windows 10 (Version 21H2 - 23H2), Windows 11 (21H2 - 22H2), Windows Server 2016 - 2022
    .NET: .NET Framework 4.8, .NET 6, .NET 8, .NET 9

    See Also