Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
30
RenderPdfFriendlyGraphics method freezes the UI thread
posted

I need to generate a report with a chart. I use UltraChart and the RenderPdfFriendlyGraphics method to get the image. RenderPdfFriendlyGraphics takes more than 6 minutes to execute because I have a lot of data. In order to make my application responsive I decided to generate the report in a separate thread, different from the UI thread. However, this didn't solve the problem. When RenderPdfFriendlyGraphics is executed, the UI freezes.
1. Does RenderPdfFriendlyGraphics access the UI thread (make it active)?
2. Could you suggest how to avoid the UI thread freezing (for example, so that the time elapsed since the start of the report generation could be updated in a form label)?

Parents Reply Children
No Data