ArgumentException when calling InvokeToolEditorEnable
Posted: Wed Jan 04, 2017 2:52 pm
I'm running version 2016.1.10.0 of the viewer.
I'm trying to open a report directly in edit mode. I'm doing this by calling viewer.InvokeToolEditEnable() method inside the load event of my viewer window. When I do this, I'm getting the following exception.
If put a Thread.Sleep for 500ms prior to making that call, it often works but that seem wrong and dirty. Is there some kind of event I can handle that will be the correct time on when I can call it? Or is there a better way to open the report preview in edit mode?
Thanks,
Scott
I'm trying to open a report directly in edit mode. I'm doing this by calling viewer.InvokeToolEditEnable() method inside the load event of my viewer window. When I do this, I'm getting the following exception.
If put a Thread.Sleep for 500ms prior to making that call, it often works but that seem wrong and dirty. Is there some kind of event I can handle that will be the correct time on when I can call it? Or is there a better way to open the report preview in edit mode?
Thanks,
Scott