ChartFormat: String;
ChartFormat: String;
The ChartFormat property sets a format of web application chart.
Possible formats are GIF, JPG, PNG, SWF, IMAGE, FLASH, SILVERLIGHT, where PNG and IMAGE, SWF and FLASH are synonyms.
The property value overwrites value of the chartFormat attribute, set in Web.config.
NOTE. The Web assembly is outdated and is supported in previous versions only.
Executing the example requires that a repository contains a web application with the MyWeb identifier. Before executing the example it is necessary to add links to the Metabase and Web system assemblies.
Sub UserProc;
Var
MB: IMetabase;
MObj: IMetabaseObject;
WebApp: IWebApplication;
Settings: IWebApplicationReportSettings;
Begin
MB := MetabaseClass.Active;
MObj := MB.ItemById("MyWeb").Edit;
WebApp := MObj As IWebApplication;
Settings := WebApp.ReportSettings;
Settings.ChartFormat := "FLASH";
Settings.DataSourceData_ReadOnly := TriState.OnOption;
Settings.EnableFixedHeaders := TriState.OnOption;
Settings.FlashAsImages := TriState.OnOption;
Settings.MapFormat := "FLASH";
Settings.ObjectImageFormat := "PNG";
Settings.SheetFormat := "SILVERLIGHT";
MObj.Save;
End Sub UserProc;
After executing this example settings for the web application are defined. Restart Internet Information Services to display settings in the web application.
Executing the example requires that a repository contains a web application with the MyWeb identifier.
Public Shared Sub Main(Params: StartParams);
Var
MB: IMetabase;
MObj: IMetabaseObject;
WebApp: IWebApplication;
Settings: IWebApplicationReportSettings;
Begin
MB := Params.Metabase;
MObj := MB.ItemById["MyWeb"].Edit();
WebApp := MObj As IWebApplication;
Settings := WebApp.ReportSettings;
Settings.ChartFormat := "SILVERLIGHT";
Settings.DataSourceData_ReadOnly := TriState.tsOnOption;
Settings.EnableFixedHeaders := TriState.tsOnOption;
Settings.FlashAsImages := TriState.tsOnOption;
Settings.MapFormat := "SILVERLIGHT";
Settings.ObjectImageFormat := "PNG";
Settings.SheetFormat := "HTML";
MObj.Save();
End Sub;
After executing this example settings for the web application are defined. Restart Internet Information Services to display settings in the web application.
See also: