Macro (SVB) Programs Example - Printing Statistica Documents
Printing of graphs, spreadsheets, and other Statistica documents is accomplished by applying the .Printout method to the respective object.
' This program will print the Spreadsheet with ' descriptive statistics. Sub Main ' Create the Basic Statistics analysis object Set newanalysis = Analysis (scBasicStatistics, _ Path & "\Examples\DataSets\Exp.sta") ' Here we are "running" the Basic Statistics; ' the next four lines were recorded as a macro program, ' and then modified for this example. newanalysis.Dialog.Statistics = scBasDescriptives newanalysis.Run newanalysis.Dialog.Variables = "5 6 7 8" Set ResSpreadsheet=newanalysis.Dialog.Summary ' Print the results Spreadsheet (remember that the ' Summary method returned a collection of the ' Spreadsheets, with a single element in this case). ResSpreadsheet.Item(1).PrintOut End Sub
Copyright © 2021. Cloud Software Group, Inc. All Rights Reserved.