다음을 통해 공유


WorkbookBase.Routed 속성

통합 문서가 다음 수신자에게 회람되었는지 여부를 나타내는 값을 가져옵니다.

네임스페이스:  Microsoft.Office.Tools.Excel
어셈블리:  Microsoft.Office.Tools.Excel.v4.0.Utilities(Microsoft.Office.Tools.Excel.v4.0.Utilities.dll)

구문

‘선언
Public ReadOnly Property Routed As Boolean
    Get
public bool Routed { get; }

속성 값

형식: System.Boolean
통합 문서가 다음 수신자에게 회람되었으면 true이고, 통합 문서가 아직 회람 전이면 false입니다.

설명

통합 문서가 현재 수신자에게 회람되지 않았으면 이 속성은 항상 false입니다(예: 문서에 회람 쪽지가 없거나 회람 쪽지를 방금 만든 경우).

예제

다음 코드 예제에서는 Routed 속성의 값을 검사하여 통합 문서가 회람되었는지 여부를 확인합니다. 통합 문서가 회람되지 않았으면 예제에서는 HasRoutingSlip 속성을 true로 설정하고 Subject 속성을 회람 쪽지의 제목 줄로 설정한 다음 RoutingSlip 속성을 사용하여 배달 형식, 메시지 및 받는 사람을 조정합니다. 마지막으로 예제에서는 Route 메서드를 호출하여 통합 문서를 회람시킵니다.

이 예제는 문서 수준 사용자 지정을 위한 것입니다.

Private Sub RouteWorkbook()
    If Not Me.Routed Then
        Me.HasRoutingSlip = True
        Me.Subject = "Here is the forecast spreadsheet."

        Dim routingSlip As Excel.RoutingSlip = Me.RoutingSlip
        routingSlip.Delivery = Excel.XlRoutingSlipDelivery.xlOneAfterAnother
        routingSlip.Message = "Please review and provide your feedback."
        routingSlip.Recipients = New String() _
            {"Don Hall", "Sydney Higa", "Ron Gabel"}
        Me.Route()
    End If
End Sub
private void RouteWorkbook()
{
    if (!this.Routed)
    {
        this.HasRoutingSlip = true;
        this.Subject = "Here is the forecast spreadsheet.";

        Excel.RoutingSlip routingSlip = this.RoutingSlip;
        routingSlip.Delivery = Excel.XlRoutingSlipDelivery.xlOneAfterAnother;
        routingSlip.Message = "Please review and provide your feedback.";
        routingSlip.set_Recipients(0,
            new string[] { "Don Hall", "Sydney Higa", "Ron Gabel" });
        this.Route();
    }
}

.NET Framework 보안

  • 직접 실행 호출자의 경우 완전히 신뢰합니다. 이 멤버는 부분적으로 신뢰할 수 있는 코드에서 사용할 수 없습니다. 자세한 내용은 부분 신뢰 코드에서 라이브러리 사용을 참조하십시오.

참고 항목

참조

WorkbookBase 클래스

Microsoft.Office.Tools.Excel 네임스페이스