ImageGear v26.3 - Updated
ImageGear.Formats.Office Assembly / ImageGear.Formats.Office Namespace / ImGearOffice Class / Initialize Method / Initialize(Double) Method
The duration in seconds for how long ImageGear should wait for the LibreOffice component to start. Defaults to 30 seconds if not specified.




In This Topic
    Initialize(Double) Method
    In This Topic
    Initializes the Office component and resources.
    Syntax
    'Declaration
     
    Public Overloads Shared Sub Initialize( _
       Optional ByVal officeStartupTimeout As Double _
    ) 
    'Usage
     
    Dim officeStartupTimeout As Double
     
    ImGearOffice.Initialize(officeStartupTimeout)
    public static void Initialize( 
       double officeStartupTimeout
    )
    public: static void Initialize( 
       double officeStartupTimeout
    ) 
    public:
    static void Initialize( 
       double officeStartupTimeout
    ) 

    Parameters

    officeStartupTimeout
    The duration in seconds for how long ImageGear should wait for the LibreOffice component to start. Defaults to 30 seconds if not specified.
    Remarks

    This initializes the Office component and sets path to LibreOffice.

    The path to the LibreOffice program folder must be specified using the IMAGEGEAR_LIBREOFFICE_PATH environment variable. If this environment variable is absent, an ImageGear.Core.ImGearException will be thrown.

    See Also