Avoiding OnBeforePrint
Hi,
I'm changing the "PrintTable" demo from FastReports to don't use the OnBeforePrint event, instead fill in the CrossView on the button click. This is not working.
I need this because I have other thread to fill in the CrossView data, so my program doesn't freezes while a long loop is executing.
Anyone knows how to do this or if there is other way?
I'm changing the "PrintTable" demo from FastReports to don't use the OnBeforePrint event, instead fill in the CrossView on the button click. This is not working.
I need this because I have other thread to fill in the CrossView data, so my program doesn't freezes while a long loop is executing.
Anyone knows how to do this or if there is other way?
Comments
FastReport team foresse that filling a crossview manually in the OnBeforePrint event will freeze the program and this is not a good pratice.
Why I must use the OnBeforePrint event? If I could fill before call the ShowReport method I can show a progress to the user while the crossview is being filled.
Try to prepare report and then show prepared report