Share via


DocumentBase.SendFax(String, Object) Method

Definition

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

public void SendFax (string address, ref object subject);
member this.SendFax : string * obj -> unit
Public Sub SendFax (address As String, Optional ByRef subject As Object)

Parameters

address
String

The recipient's fax number.

subject
Object

The text for the subject line. The character limit is 255.

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 void DocumentSendFax()
{
    string address = "12065551234";
    object subject = "Important Fax.";

    this.SendFax(address, ref subject);
}
Private Sub DocumentSendFax()
    Me.SendFax("14255550101", "Important Fax.")
End Sub

Remarks

Optional Parameters

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

Applies to