Embedding Flash in a Report Viewer .NET app using C#

362 views Asked by At

I was told to Embed a flash control inside a report viewer so that when user clicks on the generate report button instead of displaying that green circle a small animation clip will be played. I know how to how to customized the green circle and put my own image but is it possible to Shockwave flash control inside report viewer. Sine we are manipulating the report viewer control so we have to create the Shockwave flash object at runtime and add the control to the report viewer.

Code:-

AxShockwaveFlash flash = new AxShockwaveFlash();

            flash.Location = new System.Drawing.Point(0, 0);
            flash.Size = new System.Drawing.Size(200, 200);
            flash.Enabled = true;
            flash.Movie = "http://www.abd.com/file.swf";

            reportviewer.Controls.Add(flash);

But this is not woking.

0

There are 0 answers