Partilhar via


WorkbookBase.SmartDocument Property

Gets a Microsoft.Office.Core.SmartDocument that represents the settings for a smart document solution.

Namespace:  Microsoft.Office.Tools.Excel
Assembly:  Microsoft.Office.Tools.Excel.v4.0.Utilities (in Microsoft.Office.Tools.Excel.v4.0.Utilities.dll)

Syntax

'Declaration
Public ReadOnly Property SmartDocument As SmartDocument
public SmartDocument SmartDocument { get; }

Property Value

Type: Microsoft.Office.Core.SmartDocument
A Microsoft.Office.Core.SmartDocument that represents the settings for a smart document solution.

Examples

The following code example uses the SmartDocument property to display a dialog box that allows the user to pick an XML expansion pack to attach to the document.

This example is for a document-level customization.

Private Sub WorkbookSmartDocument()
    Me.SmartDocument.PickSolution(True)
End Sub
private void WorkbookSmartDocument()
{
    this.SmartDocument.PickSolution(true);
}

.NET Framework Security

See Also

Reference

WorkbookBase Class

Microsoft.Office.Tools.Excel Namespace