DiagramLauncher.CreateDiagram Method

Applies to: SharePoint Foundation 2010

Creates a diagram based on the specified document template.

expression.CreateDiagram(bstrTemplateName, bstrURI, bstrViewGUID, bstrListGUID, bstrListName, bstrViewName, iListID)

Parameters

expression

An expression that returns a DiagramLauncher Control object.

bstrTemplateName

A string containing the URL or file name of the document template from which the diagram is created.

bstrURI

A string containing the URI specifying the list location.

bstrViewGUID

A string containing the GUID that identifies the SPView object representing the view of the data containing in the list. If no view is specified, the diagram uses all items in the list.

bstrListGUID

A string containing the GUID that identifies the SPList object representing the list.

bstrListName

A string containing the name of the list.

bstrViewName

A string containing the name of the view.

iListID

An optional integer identifier representing the type of list used (for example, a task list or an issues list). The default value for this parameter is the task list ID.

Return Value

true if the document is created successfully; otherwise, false.

Remarks

The CreateDiagram method creates a diagram from the specified template, and presents the user the option of opening it.