Hi, using ReportViewer on a WinForm I'm getting this exception:
The calling thread must be STA, because many UI components require this.
on the call to:
this.ultraReportViewer1 = new Infragistics.Win.UltraWinReportViewer.UltraReportViewer();
Hi, note the same error and posting with no reply on Oct 25, 2012: http://es.infragistics.com/community/forums/p/74769/378811.aspx#378811
I dropped an UltraWinReportViewer onto a WinForm. Set the DefinitionUrl to my existing .igr report. I even commented out the call to the WCF service so nothing outside the UI thread is being invoked. The form's initializecomponents() is executed and the exception is thrown on: new Infragistics.Win.UltraWinReportViewer.UltraReportViewer(); as you see the report spinner. This is 2012.2.x.2040
I added a .igr report, then dropped the viewer control onto a form and set the URI to the .igr. I added an object data source pointing to an IEnumerable<> return method which calls a WCF async service reference to load the data from the server side.
Hello ,
Are you using background worker in your application or some other threads or your data or report is generated in a background thread ? How exactly ReportViewer is added to your form ? Is it possible to provide us a simple sample that demonstrate this issue.
I am waiting for your feedback.