OnEditImages Method of the IDocumentViewerEvents Interface
This method is implemented on the client-side. It is called by ABBYY FineReader Engine before the start of image editing in Document Viewer. The process is invoked if one of the following commands is called:
The commands can be called using the corresponding items in the context menu, or using the DoCommand method of the IDocumentViewer::Commands. To find which way is available for which command, refer to the Document Viewer Commands list.
The method delivers to the client information on the command which will be used for editing. With the help of this method it is possible to cancel the operation.
HRESULT OnEditImages( MenuItemEnum MenuItem, VARIANT_BOOL* Cancel );
void OnEditImages( MenuItemEnum MenuItem, out bool Cancel );
Visual Basic .NET
Sub OnEditImages( MenuItem As MenuItemEnum, _ ByRef Cancel As Boolean )
- [in] Specifies the command which is used for image editing. See the description of the MenuItemEnum constants. The following constants can be the value of this parameter: MI_RotateClockwise, MI_RotateCounterClockwise, MI_RotateUpsideDown, MI_FlipHorizontal, MI_FlipVertical.
- [out] You may set this variable to TRUE to indicate that the process should be terminated. In this case, the image will not be edited.
[C++ only] If this method returns a value other than S_OK, it indicates that an error occurred on the client-side, and in this case the value of the Cancel parameter is not taken into account.
The client implementation of this method must assure that all exceptions thrown inside the method are caught and handled and no exceptions are propagated outside the method. Propagation of an exception outside the method may lead to unpredictable results (such as program termination).
3/24/2023 8:51:52 AM