DocumentBase.HasRoutingSlip Property

Gets or sets a value that indicates whether the document has a routing slip attached to it.

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

Syntax

'Declaration
Public Property HasRoutingSlip As Boolean
public bool HasRoutingSlip { get; set; }

Property Value

Type: System.Boolean
true if the document has a routing slip attached to it; otherwise, false.

Remarks

Setting this property to true creates a routing slip; setting it to false deletes the routing slip.

Examples

The following code example creates a routing slip for the document and fills in the subject and recipient. The code then routes the document to the recipient. To use this example, run it from the ThisDocument class in a document-level project.

Private Sub DocumentRoute()
    Me.HasRoutingSlip = True 
    Me.RoutingSlip.Subject = "Your feedback is needed." 
    Me.RoutingSlip.AddRecipient("someone@example.com")
    Me.Route()
End Sub
private void DocumentRoute()
{
    this.HasRoutingSlip = true;
    this.RoutingSlip.Subject = "Your feedback is needed.";
    this.RoutingSlip.AddRecipient("someone@example.com");
    this.Route();
}

.NET Framework Security

See Also

Reference

DocumentBase Class

Microsoft.Office.Tools.Word Namespace