Discuss this help topic in SecureBlackbox Forum

TElOpenOfficePackage.OnGetDataStream

TElOpenOfficePackage     See also     


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


This event is fired when a data stream is needed.

Declaration

[C#/Java]
    event TSBOfficeGetDataStreamEvent OnGetDataStream;
    delegate void TSBOfficeGetDataStreamEvent(Object Sender, string Path, ref System.IO.Stream Stream);

[VB.NET]
    Event OnGetDataStream As TSBOfficeGetDataStreamEvent
    Delegate Sub TSBOfficeGetDataStreamEvent(ByVal Sender As Object, ByVal Path As String, ByRef Stream As System.IO.Stream)

[Pascal]
    property OnGetDataStream: TSBOfficeGetDataStreamEvent;
    TSBOfficeGetDataStreamEvent = procedure(Sender : TObject; Path : string; var Stream : TStream) of object;

[C++]
    void get_OnGetDataStream(TSBOfficeGetDataStreamEvent &pMethodOutResult, void * &pDataOutResult);
    void set_OnGetDataStream(TSBOfficeGetDataStreamEvent pMethodValue, void * pDataValue);
    typedef void (SB_CALLBACK *TSBOfficeGetDataStreamEvent)(void * _ObjectData, TObjectHandle Sender, const char * pcPath, int32_t szPath, TStreamHandle &Stream);

[PHP]
    TSBOfficeGetDataStreamEvent|callable|NULL get_OnGetDataStream()
    void set_OnGetDataStream(TSBOfficeGetDataStreamEvent|callable|NULL $Value)
    callable TSBOfficeGetDataStreamEvent(TObject $Sender, string $Path, TStream &$Stream)

Parameters

  • Path - path to the file with data in the package
  • Stream - user should create a stream object and pass it via this parameter
  • pcPath - path to the file with data in the package
  • szPath - the length of pcPath.

Description

    This event is fired by TElOpenOfficePackage when a data stream is needed. The handler should create a stream object and pass it via the Stream parameter. When the data stream is not needed anymore, the OnCloseDataStream event is fired.

See also:     OnCloseDataStream    

Discuss this help topic in SecureBlackbox Forum