Export - Automation

The Export method is superseded by Export2. Please consider using the more recent version. Export has been retained for backward compatibility.

The Export method exports the document to a specified graphics file. Returns a Boolean. It returns 'True', if the file is exported successfully, otherwise it returns 'False'.

Syntax

object.Export( FileName, SelectionOnly, Options )

Parameter

Type

Required/

Option

Default

Description

FileName

String

Required

 

This provides the path and file name of the file to be exported.

SelectionOnly

Boolean

Optional

False

This specifies whether to export selected objects, or the entire plot.

Options

String

Optional

""

See

Remarks

for links to the export options available for specific formats.

Remarks

1. The .PDF format can only be exported with Export2.

2. FileName must include a file extension.

3. The following table shows two common Export Options. These options apply to all filters.

Option

Action

Default

Description

Defaults

0 = No, use previously saved options

1 = Yes, set all options to defaults

0

Set all options to their default values. Any additional options specified in the option string are applied after the previously saved or default values are set.

ForgetOptions

0 = No, save the options for later use

1 = Yes, don't save options for later use

0

Don't remember options for later use. If set to 0, any previously saved options are overwritten with any new values specified in the option string.

4. See the following links for more details on Options.

Extension

File Descriptions

Export Option Links

.BMP

Windows Bitmap Image

Image (Bitmap) Export Automation Options

.BLN

Golden Software Blanking

Golden Software Blanking Export Automation Options

.BNA

Atlas Boundary

Atlas Boundary .BNA Export Automation Options

.DXF

AutoCAD Drawing

AutoCAD DXF Export Automation Options

.EMF

Windows Enhanced Metafile

Windows Enhanced Metafile (EMF) Export Automation Options

.EPS

Encapsulated Post Script

Encapsulated PostScript .EPS Export Automation Options

.GIF

Graphics Interchange Format Image

Image (Bitmap) Export Automation Options

.GSB

Golden Software Boundary

Golden Software Boundary Export Automation Options

.GSI

Golden Software Interchange

Golden Software Interchange .GSI Export Automation Options

.JPG, .JPEG

JPEG Compressed Bitmap

Image (Bitmap) Export Automation Options

.KML

KML Google Earth

Google Earth KML Export Automation Options

.KMZ

KMZ Google Earth

Google Earth KMZ Export Automation Options

.MIF

MapInfo Interchange Format

MapInfo Interchange Format (MIF) Export Automation Options

.PNG

Portable Network Graphics Image

Image (Bitmap) Export Automation Options

.PNM, .PPM, .PGM

Portable Any Map Image

Image (Bitmap) Export Automation Options

.RGB, .RGBA, .BW

Silicon Graphics Image

Image (Bitmap) Export Automation Options

.SHP

Esri Shapefile

Esri Shapefile Export Automation Options

.RAS, .SUN

Sun Raster Image

Image (Bitmap) Export Automation Options

.TGA

TrueVision Targa Image

Image (Bitmap) Export Automation Options

.TIF, .TIFF

Tagged Image Format

Image (Bitmap) Export Automation Options

.WMF

Windows Metafile

Windows Metafile .WMF Export Automation Options

.X, .XIMG

AVS X-Image .X .XIMG

Image (Bitmap) Export Automation Options

Example 1

This example demonstrates how to export a plot document as a .TIF. using bitmap export options.

Plot.Export(FileName:= SurferApp.Path+"\Samples\demogrid.tif", SelectionOnly:=False , Options:="Width=717, Height=949")

Example 2

This script displays all the methods and properties in the PlotDocument object.

Used by: PlotDocument object