Since the Export Options dialog isn't displayed when the program is driven from an automation script, an options string can be specified in the script. The string consists of comma-separated parameters, which specify the behavior of the various export options. A typical example when exporting an image would be:
Plot.Export2(FileName:= SurferApp.Path+"\Samples\demogrid.tif", Options:="Width=717, Height=949, KeepAspect=0”)
This would set all export the image width to 717 pixels, the image height to 949 pixels and to not keep the aspect ratio.
All the available options for exporting images are listed in the Help on the Image (Bitmap) Export Automation Options page.
Updated November 2, 2018