Add Method
The Add method adds a new document to the collection. Returns an Object.
Syntax
object.Add( type, templateFile, wksFile )
Parameter | Type | Description |
type | Variant | optional, grfDocumentTypes, default = grfPlotDoc |
templateFile | Variant | optional, if grfPlotDoc, use template file specified here, default = "" |
wksFile | Variant | optional, pass in worksheet if needed for templateFile, default = "" |
Example
This example demonstrates how to add a new document using a template and data file.
Docs.Add(grfPlotDoc,GrapherApp.Path + "\template\lineplot.grt", _
GrapherApp.Path + "\samples\bar chart orientations.dat")
Used by: Documents collection