Know when Report.PrintPrepared() is finished - in background printing
I'm particularly looking at
fastReport.OnFinishReport(doneDidIt)
or
fastReport.FinishReportEvent
In reference to our call to print (silently, in a background process/console app):
await Task.Run(() => fastReport.PrintPrepared(settings)); // Work-around for FastReport not being async-await-able
Any thoughts on how I may know the report has finished in this type of context?
This discussion has been closed.
Comments
Hello!
If you run it using `await Task.Run(() => fastReport.PrintPrepared(settings));`, the line immediately following the `await` statement will execute as soon as `PrintPrepared` has finished running.
If you also need an event at the report lifecycle level, use the report.FinishReport event (EventHandler, triggered when report preparation/output is complete). Please note that the OnFinishReport and FinishReportEvent properties are both named FinishReport.