Specifies the width in pixels of the Flash movie generated from a chart object.
object.SetWidth( width )
The SetWidth method specifies the width in pixels of the final Flash movie generated from a chart object (see ExportAsResponse Method and ExportAsFile Method for generating a Flash movie).
Loading chart graphical settings from a style file via the method LoadStyle sets the width and height of the resulting Flash movie with the width and height values stored in the settings file.
The following JScript code illustrates use of the SetWidth method in an ASP page.
chart.SetSeparators(";", true); chart.SetDataFromQuery(); chart.LoadStyle("C:\\myStyle.scs"); // Retrieve movie Width and Height set by the call of LoadStyle method w= chart.GetWidth(); h= chart.GetHeight(); // Now scale the movie by 2 chart.SetWidth(2*w); chart.SetHeight(2*h); chart.ExportAsResponse();
GetWidth Method | SetTitle Method | SetSubtitle Method | SetHeight Method | SetFrameRate Method
Applies To: Chart Object