Click or drag to resize

IOperationServiceRegisterBeforePrintDocumentHandler Method

Allows to add custom markup to the document header and footer or abort the operation by throwing OperationCanceledException. Refer to Document for description of document extension.

Namespace:  Resto.Front.Api
Assembly:  Resto.Front.Api.V8 (in Resto.Front.Api.V8.dll)
Syntax
C#
IDisposable RegisterBeforePrintDocumentHandler(
	Func<(Guid printingDeviceId, Document documentMarkup), TextDocumentExtensions> callback
)

Parameters

callback
Type: SystemFuncValueTupleGuid, Document, TextDocumentExtensions
Callback to return document extensions or abort the operation by throwing OperationCanceledException.

Return Value

Type: IDisposable
Remarks
Error message in the left top corner of the screen will not be shown if printing is aborted.
See Also