SpssOutputDoc Class (Python)
The SpssOutputDoc
class represents
an open output document.
Example: Obtaining the Designated Output Document
import SpssClient
SpssClient.StartClient()
DesignatedOutputDoc = SpssClient.GetDesignatedOutputDoc()
- The variable DesignatedOutputDoc is an
SpssOutputDoc
object for the designated output document.
Example: Obtaining the First Opened Output Document
import SpssClient
SpssClient.StartClient()
OutputDocsList = SpssClient.GetOutputDocuments()
FirstOutputDoc = OutputDocsList.GetItemAt(0)
-
SpssClient.GetOutputDocuments()
returns anOutputDocsList
object, which provides access to all open output documents. - The
GetItemAt
method from theOutputDocsList
class is used to get the output document with index 0 (the first opened output document) from the list of open output documents. The variable FirstOutputDoc is anSpssOutputDoc
object for this output document.
Example: Create a New Output Document and Set it as the Designated One
import SpssClient
SpssClient.StartClient()
NewOutputDoc = SpssClient.NewOutputDoc()
NewOutputDoc.SetAsDesignatedOutputDoc()
- The variable NewOutputDoc is an
SpssOutputDoc
object for the new output document.
Accessing Output Items in an Output Document
You access individual output items, within an output document,
from an OutputItemList
object.
You obtain an OutputItemList
object
from the GetOutputItems method of the SpssOutputDoc
class. See the topic SpssOutputItem Class (Python) for more information.