Share via


Workbook.SmartDocument Property (2007 System)

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.v9.0 (in Microsoft.Office.Tools.Excel.v9.0.dll)

Syntax

'Declaration
<BrowsableAttribute(False)> _
Public ReadOnly Property SmartDocument As SmartDocument
'Usage
Dim instance As Workbook 
Dim value As SmartDocument 

value = instance.SmartDocument
[BrowsableAttribute(false)]
public SmartDocument SmartDocument { get; }
[BrowsableAttribute(false)]
public:
property SmartDocument^ SmartDocument {
    SmartDocument^ get ();
}
public function get SmartDocument () : SmartDocument

Property Value

Type: 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

Workbook Class

Workbook Members

Microsoft.Office.Tools.Excel Namespace