GdPicture.NET Reference Guide
SavingProgress Event (AnnotationManager)
Example 





GdPicture14 Namespace > AnnotationManager Class : SavingProgress Event
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 SaveDocumentToPDF(String) or the SaveDocumentToTIFF(String,TiffCompression) 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 SaveDocumentToPDF(String) method and its overloads. The event is not raised using the %SaveDocumentToJPEG(String, Integer)% 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 oAnnotManager object has been integrated into your application.
Friend WithEvents oAnnotManager As GdPicture14.AnnotationManager
            
'Add the event.
AddHandler oAnnotManager.SavingProgress, AddressOf oAnnotManager_SavingProgress
            
'Define the event.
Sub oAnnotManager_SavingProgress(ByVal PageNo As Integer, ByVal PageCount As Integer) Handles oAnnotManager.SavingProgress
    'Do your stuff here.
End Sub
//We assume that the oAnnotManager object has been integrated into your application.
            
//Add the event.
oAnnotManager.SavingProgress += oAnnotManager_SavingProgress;
            
//Define the event.
void oAnnotManager_SavingProgress(int PageNo, int PageCount)
{
    //Do your stuff here.
}
See Also

Reference

AnnotationManager Class
AnnotationManager Members
AnnotationManager.SavingProgressEventHandler Delegate
SaveDocumentToJPEG(String, Integer)
SaveDocumentToPDF(String) Method
SaveDocumentToTIFF(String,TiffCompression) Method