LoadFromMemory Method

This method restores the layout from the global memory. The method takes as an input parameter an HGLOBAL handle, which should be obtained from the HandleAsInt64 property of the Handle object. The Handle object is returned by the SaveToMemory method of a Layout object.

The method loads only the layout blocks that fit into the page borders. The blocks that don't fit are removed with a warning. Listen to IFRPageEvents to get the warning.



HRESULT LoadFromMemory( __int64 HGlobal );


void LoadFromMemory(Int64 HGlobal );

Visual Basic .NET

Sub LoadFromMemory(HGlobal As Int64)


[in] This parameter specifies the HGLOBAL handle of the memory from where the object contents should be loaded. The handle is passed as __int64. This handle should be obtained using the SaveToMemory method of a Layout object, and should be valid (not freed).

Return values

This method has no specific return values. It returns the standard return values of ABBYY FineReader Engine functions.


Note that in the case when an object data is read by a functionally limited ABBYY FineReader Engine version, while it was saved by a version with a wider functional set, object properties that cannot be changed in the limited version, are restored to default values.

This method does not work if the Engine object is created using the OutprocLoader object.

The following objects provide this method:

See also




3/24/2023 8:51:52 AM

Usage of Cookies. In order to optimize the website functionality and improve your online experience ABBYY uses cookies. You agree to the usage of cookies when you continue using this site. Further details can be found in our Privacy Notice.