GdPicture.NET.14.API
GdPicture14 Namespace / AnnotationManager Class / SavingProgress Event
Example





In This Topic
SavingProgress Event (AnnotationManager)
In This Topic
This event is raised right after the currently processed page has been successfully created and saved. It is only applied when the initial document is image-based.

Please check the corresponded AnnotationManager.SavingProgressEventHandler for given parameters.

The event is only raised when processing documents based on images using the AnnotationManager.SaveDocumentToPDF or the AnnotationManager.SaveDocumentToTIFF methods and its overloads. The event is not raised, if your initial document is in PDF or TXT format and you are saving it using the AnnotationManager.SaveDocumentToPDF method and its overloads. The event is not raised using the AnnotationManager.SaveDocumentToJPEG method and its overloads as well.

Syntax
'Declaration
 
Public Event SavingProgress As AnnotationManager.SavingProgressEventHandler
public event AnnotationManager.SavingProgressEventHandler SavingProgress
public event SavingProgress: AnnotationManager.SavingProgressEventHandler; 
In JScript, you can handle the events defined by another class, but you cannot define your own.
public: __event AnnotationManager.SavingProgressEventHandler* SavingProgress
public:
event AnnotationManager.SavingProgressEventHandler^ SavingProgress
Remarks
Be aware that the event is only raised using the SaveDocumentToPDF methods or the SaveDocumentToTIFF methods, if your initial document is image-based (neither PDF nor TXT). The event is not raised when using the SaveDocumentToJPEG methods.
Example
How to add this event to your AnnotationManager object.
'We assume that the annotationManager object has been integrated into your application.
Friend WithEvents annotationManager As GdPicture14.AnnotationManager
            
'Add the event.
AddHandler annotationManager.SavingProgress, AddressOf annotationManager_SavingProgress
            
'Define the event.
Sub annotationManager_SavingProgress(ByVal PageNo As Integer, ByVal PageCount As Integer) Handles annotationManager.SavingProgress
    'Do your stuff here.
End Sub
//We assume that the annotationManager object has been integrated into your application.
            
//Add the event.
annotationManager.SavingProgress += annotationManager_SavingProgress;
            
//Define the event.
void annotationManager_SavingProgress(int PageNo, int PageCount)
{
    //Do your stuff here.
}
See Also