Nevron Open Vision Documentation
Nevron.Nov.UI Namespace / INDocumentView Interface / OpenFileAsync Method


In This Topic
    OpenFileAsync Method (INDocumentView)
    In This Topic
    Loads the document from a file, that the user selected from an OpenFile dialog.
    Syntax
    'Declaration
     
    
    Function OpenFileAsync( _
       Optional ByVal selectedFormat As NDocumentFormatBase, _
       Optional ByVal availableFormats() As NDocumentFormatBase, _
       Optional ByVal reportErrors As System.Boolean, _
       Optional ByVal askToSaveChanges As System.Boolean _
    ) As NPromise(Of Boolean)
    'Usage
     
    
    Dim instance As INDocumentView
    Dim selectedFormat As NDocumentFormatBase
    Dim availableFormats() As NDocumentFormatBase
    Dim reportErrors As System.Boolean
    Dim askToSaveChanges As System.Boolean
    Dim value As NPromise(Of Boolean)
     
    value = instance.OpenFileAsync(selectedFormat, availableFormats, reportErrors, askToSaveChanges)

    Parameters

    selectedFormat
    availableFormats
    reportErrors
    askToSaveChanges
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later)

    See Also