Run session methods from a thread?

Basically what I’m trying to do is give the user a progress bar or something showing that a printing process is running. The process needs to run many session methods, then build a pdf, and then show the pdf in an html viewer.

Everything works except giving the user some indication that his data is printing.

any ideas?

This thread should be in “web”, presumably.

WebSessionContext would let you manipulate the UI from that thread. But you’ll find that if you use a WebTimer, repeating, period = 1000, and have its action update a progress bar, it should be responsive enough. Your thread just needs to periodically make its progress available to your page.