Report.Print, disable event handling

Hello,
I found that during a report.Print, my application is responding to windows events. e.g. the user is able to click on a db grid to change row, or worse, the new record event from database comes and the application is calling report.print again, before the previous one is finished.

seems report.Print is calling Application.ProcessMessages somewhere. how can I stop it?

Comments

  • edited 1:42PM
    kccheng wrote: »
    Hello,
    I found that during a report.Print, my application is responding to windows events. e.g. the user is able to click on a db grid to change row, or worse, the new record event from database comes and the application is calling report.print again, before the previous one is finished.

    seems report.Print is calling Application.ProcessMessages somewhere. how can I stop it?

    looks like it is it. I will again with EnableThreadSafe enabled.

    if not Report.EngineOptions.EnableThreadSafe then
    Application.ProcessMessages;

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.