The Refresh event is fired whenever the contents of the document change and the status bar needs to be updated.
|
|
Example in VB:private void button1_Click(object sender, EventArgs e) { pdf.OptimizeDocument(1); pdf.Save("NewFile.pdf", FileSaveOptionConstants.acFileSaveView); } private void pdf_ProcessingProgress(object sender, AxACPDFCREACTIVEX._IPDFCreactiveXEvents_ProcessingProgressEvent e) { // In some cases, setting this value to 0 (false) can cause // the processing to stop. Not all loops can be stopped however. e.@continue = 1; if (e.totalSteps == -1 /* -1 means that processing has finished */) { progressBar.Maximum = 0; progressBar.Value = 0; } else { progressBar.Maximum = e.totalSteps; progressBar.Value = e.currentStep; } } |