Platform SDK: Fax Services

IFaxDoc::put_DiscountSend

The IFaxDoc::put_DiscountSend method changes the DiscountSend property for a FaxDoc object. The DiscountSend property is a Boolean value that indicates whether the fax server transmits faxes during the discount period.

Visual Basic Reference

HRESULT put_DiscountSend(
  BOOL newVal  // new value for send at discount rate flag
);

Parameters

newVal
[in] Specifies the new value to assign to the flag. To indicate that the fax server should transmit faxes during the discount rate period, a fax client application must pass a value of TRUE to the IFaxDoc::put_DiscountSend method. A value of FALSE indicates that the fax service sends faxes immediately. 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 determine the period during which the discount rate applies, you can call the following IFaxServer methods: IFaxServer::get_DiscountRateStartMinute, IFaxServer::get_DiscountRateEndMinute, IFaxServer::get_DiscountRateStartHour, and IFaxServer::get_DiscountRateEndHour.

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_DiscountSend, IFaxServer::get_DiscountRateStartHour, IFaxServer::get_DiscountRateStartMinute, IFaxServer::get_DiscountRateEndHour, IFaxServer::get_DiscountRateEndMinute