Reference Guide
GdPicture14.WPF Namespace / GdViewer Class / SavingProgress Event

In This Topic
    SavingProgress Event (GdViewer)
    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.

    The event makes use of bubble routing strategy. Please check the corresponded GdViewer.SavingProgressEventArgs 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,Int32) method and its overloads as well.

    Public Event SavingProgress As GdViewer.SavingProgressHandler
    public event GdViewer.SavingProgressHandler SavingProgress
    public event SavingProgress: GdViewer.SavingProgressHandler; 
    In JScript, you can handle the events defined by another class, but you cannot define your own.
    public: __event GdViewer.SavingProgressHandler* SavingProgress
    event GdViewer.SavingProgressHandler^ SavingProgress
    Event Data

    The event handler receives an argument of type GdViewer.SavingProgressEventArgs containing data related to this event. The following GdViewer.SavingProgressEventArgs properties provide information specific to this event.

    (Inherited from System.Windows.RoutedEventArgs)
    (Inherited from System.Windows.RoutedEventArgs)
    The total number of pages to be saved.  
    The page number of the currently processed page. It is a value from 1 to PageCount.  
    (Inherited from System.Windows.RoutedEventArgs)
    (Inherited from System.Windows.RoutedEventArgs)
    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.
    How to utilize this event in your GdViewer control.
    'We assume that the GdViewer1 control has been properly integrated
    'and the SavingProgress event has been properly added.
    'Define the event.
    Sub GdViewer1_SavingProgress(ByVal sender As Object, ByVal e As GdPicture14.WPF.GdViewer.SavingProgressEventArgs)
        'Do your stuff here.
    End Sub
    //We assume that the GdViewer1 control has been properly integrated
    //and the SavingProgress event has been properly added.
    //Define the event.
    void GdViewer1_SavingProgress(object sender, GdPicture14.WPF.GdViewer.SavingProgressEventArgs e)
        //Do your stuff here.
    See Also