Previous Document Next Document

Object Model Reference : Classes : D : Document : Methods : Document.Save


Document.Save

Sub Save()

Description

Member of Document

The Save method saves the document to file.

VBA example

The following VBA example saves the document to the original file if the document has been modified. It then creates a copy of the document, saving it in the CorelDRAW file format.

Sub Test()
 Dim opt As New StructSaveAsOptions
 If ActiveDocument.Dirty Then ActiveDocument.Save
 opt.EmbedICCProfile = False
 opt.EmbedVBAProject = True
 opt.Filter = cdrCDR
 opt.IncludeCMXData = False
 opt.Overwrite = True
 opt.Range = cdrAllPages
 opt.ThumbnailSize = cdr10KColorThumbnail
 opt.Version = cdrCurrentVersion
 ActiveDocument.SaveAs "C:\Image9.cdr", opt
End Sub

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.