LimeReport icon indicating copy to clipboard operation
LimeReport copied to clipboard

How to cancel render immediately?

Open linkoln opened this issue 6 years ago • 3 comments

Hi.If i render the report that have lots of pages and take some time,how can i cancel it and let it return immediately?

linkoln avatar Jun 24 '19 07:06 linkoln

Hi! You can use report->cancelRender() slot for this task

fralx avatar Jun 25 '19 21:06 fralx

Hi! I know the report->cancelRender() function, but it's done through signal/slot,so it's asynchronous.For example, if ReportRender::renderBand is called now, it don't return immediate since i call cancelRender,if i close the mainwindow meanwhile which will cause the program crashed. So i think what i need is a synchronous method?

linkoln avatar Jun 26 '19 01:06 linkoln

Hi! Unfortunately, limerreport have not another way to stop render process.

fralx avatar Jun 26 '19 06:06 fralx