DocumentBase.Route Method

Routes the document, using the document's current routing slip.

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

public void Route()

If the document does not have a routing slip, an exception is thrown. Use the HasRoutingSlip property to determine whether there is a routing slip attached to the document. Routing a document sets the Routed property to true.

The following code example creates a routing slip for the document, filling 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 void DocumentRoute()
    this.HasRoutingSlip = true;
    this.RoutingSlip.Subject = "Your feedback is needed.";