none
Report Viewer internal state / multithreading RRS feed

  • Question

  • Hi,
    I have a Windows.Forms application doing various operations on Report Viewer control. The thing is that, it is multithreaded, as one thread queries database for data and then initializes LocalReport property with all required values and starts refresh process. The user can click my own print button at any time while form is visible. I use RenderingCompleted event, and my own flags to check if print operation is allowed. All threads are well synchronized and it should work fine, but it seems that event, i mentioned, does not signal control's stand-by for printing state. When i trigger printing quickly anough, after the event, i get an error like "Operation could not be done due to current control state". There is private property in RV control called CanPrint, which could be usefull in my case, but i can't access it. Is there any other way to prompt control for it's internal state?
    Thanks for any help in advance.


    Wednesday, July 11, 2007 7:26 AM