1 Answer
1

EntriesExtracted Number of entries extracted so far. This is set only if the EventType is Extracting_BeforeExtractEntry or Extracting_AfterExtractEntry, and the Extract() is occurring witin the scope of a call to ExtractAll().

The reason for this is simple: If you call Extract() in a loop that you yourself control, there's no way for the library to know how many times you plan to call it, how many times you've called it in a row, whether to count the first 5 times with the next 5 times, and so on. So DotNetZip can't give you reliable informaiton about how many you've done.

You have two easy workarounds available:

use an int counter that you increment for each call to Extract() in your loop.

call ExtractAll(), In that case it will issue ExtractProgressEvents with the EntriesExtracted value set to a meaningful number.