'Long running task in DLL report progress

I've written a little C# DLL project that reads data from Excel files and writes it to a Sqlite database. How can i report the progress to the main program that uses the DLL? (It could be a Windows form executable)

Thank you



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source