AnnSave method (Main Control)

Visual Basic example
Visual C++ 4.0 example

Visual J++ example

Syntax short AnnSave (BSTR pszFile, short iFormat, BOOL fSelected, short iModify, short iSavePage);

Overview:  Refer to Implementing Annotations.

Remarks

(Document/Medical only) Saves the specified annotations in a file.

Annotation Files can store multiple pages. This method saves annotations to an annotation file. It can also append, replace, or overwrite pages in an existing annotation file.

To overwrite an existing annotation file, pass SAVE_OVERWRITE for the iModify parameter (iSavePage will be ignored).

To add a page to the end of an annotation file, pass SAVE_APPEND for the iModify argument (iSavePage will be ignored).

To replace a page in an annotation file, pass SAVE_REPLACE and set iSavePage to the page number to be replaced. Note that page numbers are 1-based. Therefore, the first page is page 1, the second page is page 2, etc.

To insert a new page, pass SAVE_INSERT and set iSavePage. The new page will be inserted BEFORE the page specified in iSavePage.

You can also save annotations in a Wang-compatible TIFF tag. For more information concerning this option, refer to AnnSaveTag method.

See Also

Elements:  AnnSaveArray method, AnnSaveMemory method, AnnLoad method, AnnSaveTag method

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