Export Method
The Export method exports the document to a specified graphics file. Returns a Boolean.
Syntax
object.Export( file, selected, options, showProgress )
Parameter | Type | Description |
file | String | required, path and complete file name including extension |
selected | Variant | optional, export selected objects only, default = false |
options | Variant | optional, default = "" |
showProgress | Boolean | optional, false means do not display export progress bar |
Remarks
Include the file extension in the file parameter to indicate the file type. See the following links for more details on options.
Adobe Acrobat Portable Document Format [.PDF] Vector Export Automation Options
Atlas Boundary [.BNA] Export Options
Esri Shapefile [.SHP] Export Options
Golden Software Blanking [.BLN] Export Options
Golden Software Interchange [.GSI] Export Options
MapInfo Interchange Format [.MIF] Export Options
Note that some formats have internal data types that cannot be specified with Export. See Export2.
Example
This example demonstrates how to export a document as a TIFF using bitmap export options.
Set Plot = GrapherApp.Documents.Open(GrapherApp.Path+\Samples\sample1.grf)
Plot.Export(GrapherApp.Path+\Samples\sample1.tif, ,Width=1027, Height=558)
Used by: Document object