Is it possible to change the image (the green spinning thing) of the ReportViewer control?
At the moment I am hiding it and overlapping a progress bar (this is WinForms not the ASP Control)... Seems a bit long winded?
Thanks :)
Is it possible to change the image (the green spinning thing) of the ReportViewer control?
At the moment I am hiding it and overlapping a progress bar (this is WinForms not the ASP Control)... Seems a bit long winded?
Thanks :)
Thanks again to Jon for the original VB.NET code... Here is his answer in C#...
For those bummed that this is for WinForms and not ASP.NET, this is the same solution for web:
Thanks for the code sample to replace the image control in the AsyncWait. This was working absolutely fine till I upgrade my report viewer control to the latest version i.e. version 15.0.0.0.
After the upgrade the control at the position "c.Controls[0].Controls[0]" as in the code sample from @Pratik is no more an image control. Hence, it throws an error saying cannot convert LiteralControl to image.
I tried using above code with some minor edits as below:
However, it didn't work as expected.
Is there any other way we can replace the new literal control with the gif image?
Thanks a ton for sharing this question.Just converted the above vb.net code to c#.net and changed the image backaground color.
Well, you gave me a challenge with this one my friend. But I figured out how to do this. Here is the code that I used to pull this off:
Call this function during your form load event, and it will reconfigure the loading image to whatever you specify (pass the function the ReportViewer control). The function is called recursively until the picturebox is found. There is only one picturebox in the ReportViewer control, so you don't have to worry about finding that specific one.