DocumentBase.SendFax Method

Sends the document as a fax, without any user interaction.

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 Sub SendFax ( _
    address As String, _
    ByRef subject As Object _
)
public void SendFax(
    string address,
    ref Object subject
)

Parameters

  • subject
    Type: System.Object%
    The text for the subject line. The character limit is 255.

Remarks

Optional Parameters

For information on optional parameters, see Optional Parameters in Office Solutions.

Examples

The following code example uses the SendFax method to fax the document to a fax number and with a subject line. To use this example, run it from the ThisDocument class in a document-level project.

Private Sub DocumentSendFax()
    Me.SendFax("14255550101", "Important Fax.")
End Sub
private void DocumentSendFax()
{
    string address = "12065551234";
    object subject = "Important Fax.";

    this.SendFax(address, ref subject);
}

.NET Framework Security

See Also

Reference

DocumentBase Class

Microsoft.Office.Tools.Word Namespace