ExportAllViews Method (Python)

Exports all views of this Model Viewer item in the specified image format.

Syntax

SpssModelItem.ExportAllViews(filePrefix,format)

Parameters

The argument filePrefix is the full path and file name prefix for the files containing the exported views. Each view is exported to a separate file.

On Windows, it is recommended to use raw strings for file paths, or replace backslashes with forward slashes (IBM® SPSS® Statistics accepts a forward slash for any backslash in a file specification). Raw strings are specified by prefacing the string with r, as in r'c:\examples\mydata.sav'. In raw mode, Python treats all backslashes in the string as the backslash character and not as the start of an escape sequence.

Table 1. Image formats
Format Description
SpssClient.ChartExportFormat.bmp Windows bitmap
SpssClient.ChartExportFormat.emf Enhanced metafile
SpssClient.ChartExportFormat.eps Enhanced postscript
SpssClient.ChartExportFormat.jpg JPG file
SpssClient.ChartExportFormat.png PNG file
SpssClient.ChartExportFormat.tiff Tagged image file

You can export the view displayed in the Viewer using the ExportToImage Method (Python).