DocumentBase.RoutingSlip Property
Gets a RoutingSlip that represents the routing slip information for the document.
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 ReadOnly Property RoutingSlip As RoutingSlip
public RoutingSlip RoutingSlip { get; }
Property Value
Type: Microsoft.Office.Interop.Word.RoutingSlip
A RoutingSlip that represents the routing slip information for the document.
Remarks
A routing slip is used to send a document through an electronic mail system.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.