Platform SDK: Fax Services

IFaxDoc::put_SendCoverpage

The IFaxDoc::put_SendCoverpage method changes the SendCoverpage property for a FaxDoc object. The SendCoverpage property is a Boolean value that indicates whether the fax service transmits a cover page with the fax document.

Visual Basic Reference

HRESULT put_SendCoverpage(
  BOOL newVal  // new value for include cover page flag
);

Parameters

newVal
[in] Specifies the new value to assign to the flag. To include a cover page with a fax transmission, a fax client application must pass a value of TRUE to the IFaxDoc::put_SendCoverpage method. For more information, see the following Remarks section.

Return Values

Returns an HRESULT value indicating success or failure. If the method succeeds, it returns S_OK. Otherwise, it returns a COM-defined error code.

You should not check directly for success or failure. Use the COM SUCCEEDED and FAILED macros instead.

Remarks

To send a cover page with a fax document, the following are required:

In addition, the ServerCoverpage property must be equal to TRUE if the cover page file is a common cover page file. For more information, see IFaxDoc::put_CoverpageName.

You can call the IFaxServer::get_ServerCoverpage method to determine if the fax server is configured to permit personal cover pages.

For more information, see Cover Pages and Sending a Cover Page.

Requirements

  Windows NT/2000: Requires Windows 2000.
  Windows 95/98: Unsupported.
  Header: Declared in faxcom.h.
  Import Library: Included as a resource in faxcom.dll.

See Also

Fax Service Client Application Programming Interface Overview, Fax Service Client API Interfaces, IFaxDoc, IFaxDoc::get_CoverpageName, IFaxDoc::get_FileName, IFaxDoc::get_SendCoverpage, IFaxServer::get_ServerCoverpage