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 Remarksfor 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 |
||
.BLN |
||
.BNA |
||
.DXF |
||
.EMF |
||
.EPS |
||
.GIF |
||
.GSB |
||
.GSI |
||
.JPG, .JPEG |
||
.KML |
||
.KMZ |
||
.MIF |
||
.PNG |
||
.PNM, .PPM, .PGM |
||
.RGB, .RGBA, .BW |
||
.SHP |
||
.RAS, .SUN |
||
.TGA |
||
.TIF, .TIFF |
||
.WMF |
||
.X, .XIMG |
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