'Declaration Public Sub CancelExport( _ ByVal dataPresenter As DataPresenterBase _ )
public void CancelExport( DataPresenterBase dataPresenter )
An export operation may be canceled by handling the InitializeRecord event and setting the InitializeRecordEventArgs.TerminateExport to true. However, for an asynchronous export the operation may be pending while another asynchronous operation is pending or the export may still be preparing the source control. For those situations this method may be used to cancel the operation.
Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2