Discuss this help topic in SecureBlackbox Forum

TElOfficeDocument.Open

TElOfficeDocument     See also     


Filter: C#  VB.NET  Pascal  C++  PHP  Java  


Opens document.

Declaration

[C#]
    void Open(string FileName);
    void Open(string FileName, bool ReadOnly);
    void Open(System.IO.Stream Stream);
    void Open(System.IO.Stream Stream, bool OwnStream);
    void Open(System.IO.Stream Stream, bool OwnStream, bool ReadOnly);

[VB.NET]
    Sub Open(ByVal FileName As String)
    Sub Open(ByVal FileName As String, ByVal ReadOnly As Boolean)
    Sub Open(ByVal Stream As System.IO.Stream)
    Sub Open(ByVal Stream As System.IO.Stream, ByVal OwnStream As Boolean)
    Sub Open(ByVal Stream As System.IO.Stream, ByVal OwnStream As Boolean, ByVal ReadOnly As Boolean)

[Pascal]
    procedure Open(const FileName : string); overload;
    procedure Open(const FileName : string; ReadOnly : Boolean); overload;
    procedure Open(Stream : TStream); overload;
    procedure Open(Stream : TStream; OwnStream : Boolean); overload;
    procedure Open(Stream : TStream; OwnStream : Boolean; ReadOnly : Boolean); overload;

[C++]
    void Open(const std::string &FileName);
    void Open(const std::string &FileName, bool ReadOnly);
    void Open(TStream &Stream);
    void Open(TStream *Stream);
    void Open(TStream &Stream, bool OwnStream);
    void Open(TStream *Stream, bool OwnStream);
    void Open(TStream &Stream, bool OwnStream, bool ReadOnly);
    void Open(TStream *Stream, bool OwnStream, bool ReadOnly);

[PHP]
    void Open(string $FileName)
    void Open(string $FileName, bool $ReadOnly)
    void Open(TStream $Stream)
    void Open(TStream $Stream, bool $OwnStream)
    void Open(TStream $Stream, bool $OwnStream, bool $ReadOnly)

[Java]
    void open(String FileName, boolean ReadOnly);
    void open(TElStream Stream);
    void open(String FileName);
    void open(InputStream InStream, OutputStream OutStream);
    void open(InputStream Stream);
    void open(TElStream Stream, boolean OwnStream, boolean ReadOnly);
    void open(TElStream Stream, boolean OwnStream);

Parameters

  • FileName - name of the file with document
  • Stream - stream with document
  • OwnStream - specifies if the stream is owned by the document. If this parameter is False or omitted, user should take care of stream disposal.
  • ReadOnly - specifies if document should be opened read-only
  • InStream -
  • OutStream -

Description

    Use this method to open office document stored in file or stream.

See also:     Close     Flush    

Discuss this help topic in SecureBlackbox Forum