kkmick

I want to know if vs studio 2005 sp1 actually fixed Microsoft report viewer control. I was having an error before.I don't get that anymore. I need to figure out what do I need to distribute to the user.

This is the error that I got before. I don't get it anymore

System.InvalidOperationException: Invoke or BeginInvoke cannot be called on a control until the window handle has been created. at System.Windows.Forms.Control.MarshaledInvoke(Control caller, Delegate method, Object[] args, Boolean synchronous) at System.Windows.Forms.Control.BeginInvoke(Delegate method, Object[] args) at Microsoft.Reporting.WinForms.ReportViewer.OnRenderingComplete(ProcessThreadResult result, PostRenderArgs data) at Microsoft.Reporting.WinForms.ProcessThreadArg.OnComplete(ProcessThreadResult result) at Microsoft.Reporting.WinForms.ProcessingThread.ProcessThreadMain(Object arg) at System.Threading.ThreadHelper.ThreadStart_Context(Object state) at System.Threading.ExecutionContext.runTryCode(Object userData) at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData) at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart(Object obj)

Thanks



Re: Visual Studio Report Controls Microsoft Report Viewer Control Question?

Albert Yen - MS

Yes, this bug was fixed in SP1. To distribute the SP1 fixes to a user, you would need to copy the following files

Microsoft.ReportViewer.Common.dll
Microsoft.ReportViewer.WebForms.dll
Microsoft.ReportViewer.WinForms.dll

These files can be found in %ProgramFiles%\Microsoft Visual Studio 8\ReportViewer. Here is a thread on deploying the controls without using ReportViewer.exe. http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=53315&SiteID=1

-Albert





Re: Visual Studio Report Controls Microsoft Report Viewer Control Question?

gcox18

I don't think this problem is fixed at all actually. I still get this ridiculous error. It seems to be more likely to occur if you try to call RefreshReport just after you show the form or userControl that the ReportViewer is on when you're using a slow computer. Clearly that can be avoided, but the error does not seem to be fixed after applying SP1.

And yes, I have applied SP1 and confirmed that the new reportviewer dll's are being used.




Re: Visual Studio Report Controls Microsoft Report Viewer Control Question?

Albert Yen - MS

This sounds like another instance of the problem. Could you please open an issue in the Visual Studio product feedback: http://connect.microsoft.com/VisualStudio/Feedback

-Albert