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();
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.
Hi, note the same error and posting with no reply on Oct 25, 2012: http://ko.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
Seeing as there are two posts of the same exception message and no replies from anyone this must mean either no one is using the product or supporting it?
Hello,
I am just checking about the progress of this issue. Let me know If you need my further assistance on this issue?
Thank you for using Infragistics Components
Thank you for the provided sample. Your issue is cause by the fact that class used for data source is Form1, so I have pulled out your code into a ObjectSource class and everything works fine, please see modified sample.
Please let me know if you have any further questions.
here's a simple VS 2012 sln and exe. if you run it you'll get the STA thread exception.
Hi,
We can’t reproduce the problem following the steps you mentioned. Can you please attach a simple solution where the problem occurs?
Best,
Leo