AnnSaveOffset method (Main Control)

Visual Basic example
Visual C++ 4.0 example

Syntax long AnnSaveOffset(long fd, long nOffset, OLE_HANDLE hObject, short iFormat, BOOL bSelected);

Overview:  Refer to Implementing Annotations.

Remarks

(Document/Medical only) Saves the specified annotations at a specified position in an existing file.

To retain scaling and positioning information, this method always saves the root container, along with the specified object or selected objects. Use the hObject and bSelected parameters as follows:

  1. To save the specified object, set hObject to that object and set bSelected to FALSE.

  2. To save only selected objects in a container, set hObject to the container and set bSelected to TRUE.

  3. To save all objects in a container, set hObject to the container and set bSelected to FALSE.

This method overwrites existing data at the specified location in the file. The offset is specified in bytes. You must open the file and get a Windows file handle before calling this method.

See Also

Elements:  AnnSave method, AnnSaveArray method

Topics:  Annotations (Document/Medical only):Input and Output