NotateXpress 13 for .NET - User Guide > How To > Save Annotations > Save annotations to NX XML |
Annotations are stored to a NotateXpress™ XML file or memory using the same methods as those used for saving annotation data to a .nxp file or memory. First specify SaveOptions to provide specific instructions for saving the annotations. Ensure that SaveOptions.AnnType is set to NotateXpressXml. Also, specify whether unknown (user specified) attributes should be stored in the NX XML.
Call the LayerCollection.SaveToFile method to save annotations to a NotateXpress XML file. If saving to a multipage NX XML annotation file, set the property to specify which page to save the annotations to. If the file exists, NotateXpress will replace the specified page's annotations with the annotations being saved. NotateXpress will add the annotations, if the page does not exist.
Use the LayerCollection.SaveToByteArray to save annotations to a byte array.
Use the LayerCollection.SaveToMemoryStream to save annotations to a memory stream.