C# Class Smrf.NodeXL.ExcelTemplate.TaskAutomator

Runs multiple tasks on one workbook or a folder full of workbooks.
Call AutomateOneWorkbook or to run a specified set of tasks on one NodeXL workbook, or AutomateFolder to run them on every unopened NodeXL workbook in a folder.

All methods are static.

Inheritance: Object
ファイルを表示 Open project: 2014-sed-team3/term-project Class Usage Examples

Public Methods

Method Description
AutomateFolder ( String folderToAutomate, String workbookSettings ) : void
AutomateOneWorkbook ( ThisWorkbook thisWorkbook, NodeXLControl nodeXLControl, AutomationTasks tasksToRun, String folderToSaveWorkbookTo ) : void
AutomateOneWorkbookIndirect ( String nodeXLWorkbookFilePath, String workbookSettings ) : void
OpenWorkbookToAutomate ( String workbookPath, Int32 timeoutSeconds ) : System.Boolean

Private Methods

Method Description
CheckTasksToRunArgument ( AutomationTasks &eTasksToRun ) : void
EnableLayoutTypeIsNullNotifications ( System.Boolean bNewValue ) : System.Boolean
ExportToEmailUserSettingsAreComplete ( ExportToEmailUserSettings oExportToEmailUserSettings, String sSmtpPassword ) : System.Boolean
GetGraphGalleryAuthorAndPassword ( ExportToNodeXLGraphGalleryUserSettings oExportToNodeXLGraphGalleryUserSettings, String &sAuthor, String &sPassword ) : void
RunEditableCommand ( RunEditableCommandEventArgs oRunEditableCommandEventArgs, ThisWorkbook oThisWorkbook ) : System.Boolean
RunReadWorkbookTasks ( ThisWorkbook oThisWorkbook, NodeXLControl oNodeXLControl, AutomationTasks eTasksToRun, String sFolderToSaveWorkbookTo ) : void
SaveGraphImageFile ( NodeXLControl oNodeXLControl, IEnumerable oLegendControls, String sWorkbookFilePath ) : void
ShouldRunTask ( AutomationTasks eTasksToRun, AutomationTasks eTaskToTest ) : System.Boolean
TryAutoFillWorkbook ( ThisWorkbook oThisWorkbook ) : System.Boolean
TryCalculateClusters ( ThisWorkbook oThisWorkbook ) : System.Boolean
TryCalculateGraphMetrics ( Microsoft oWorkbook ) : System.Boolean
TryCreateSubgraphImages ( ThisWorkbook oThisWorkbook ) : System.Boolean
TryExportToEmail ( Microsoft oWorkbook, NodeXLControl oNodeXLControl ) : System.Boolean
TryExportToNodeXLGraphGallery ( Microsoft oWorkbook, NodeXLControl oNodeXLControl ) : System.Boolean
TryMergeDuplicateEdges ( ThisWorkbook oThisWorkbook ) : System.Boolean
TrySaveWorkbookIfNeverSaved ( Microsoft oWorkbook, String sFolderToSaveWorkbookTo ) : System.Boolean

Method Details

AutomateFolder() public static method

public static AutomateFolder ( String folderToAutomate, String workbookSettings ) : void
folderToAutomate String
workbookSettings String
return void

AutomateOneWorkbook() public static method

public static AutomateOneWorkbook ( ThisWorkbook thisWorkbook, NodeXLControl nodeXLControl, AutomationTasks tasksToRun, String folderToSaveWorkbookTo ) : void
thisWorkbook ThisWorkbook
nodeXLControl Smrf.NodeXL.Visualization.Wpf.NodeXLControl
tasksToRun AutomationTasks
folderToSaveWorkbookTo String
return void

AutomateOneWorkbookIndirect() public static method

public static AutomateOneWorkbookIndirect ( String nodeXLWorkbookFilePath, String workbookSettings ) : void
nodeXLWorkbookFilePath String
workbookSettings String
return void

OpenWorkbookToAutomate() public static method

public static OpenWorkbookToAutomate ( String workbookPath, Int32 timeoutSeconds ) : System.Boolean
workbookPath String
timeoutSeconds System.Int32
return System.Boolean