<< Click to Display Table of Contents >> Navigation: »No topics above this level« TOC : Script API > JavaScript > JavaScript API > ChartObject > ChartGaugePiece > Method >SetBrowserOption |
Sets the options to control web browser screen that will display the report when linking the report.
Prototype :
void SetBrowserOption
(
string OptionTag,
string TagValue
)
Arguments :
OptionTag |
Option Tag |
TagValue |
Tag Value |
Reference :
This is only supported on the ActiveX Viewer.
SetLinkPostURL() or SetLinkURL() should be called before calling SetBrowserOption().
Available options are as follows:
option_tag |
value |
description |
ShowToolbar |
"true" / "false" |
show web browser toolbar (default : "true") |
ShowStatusBar |
"true" / "false" |
show web browser status bar (default : "true") |
ShowMenuBar |
"true" / "false" |
show web browser menu bar (default : "true") |
ShowAddressBar |
"true" / "false" |
show web browser location bar(default : "true") |
Left |
"<INT>" |
left position of the web browser |
Top |
"<INT>" |
top position of the web browser |
Width |
"<INT>" |
width of the web browser |
Height |
"<INT>" |
height of the web browser |
Example :
//launch the web browser hiding status bar
var ChartRootUnit = This.GetChartRootUnit();
var ChartShapeCnt = ChartRootUnit.GetShapeCount();
for(i = 0; i < ChartShapeCnt; i++) {
var ChartShape = ChartRootUnit.GetShape(i);
var ChartPieceCnt = ChartShape.GetPieceCount();
for(j = 0; j < ChartPieceCnt; j++) {
var ChartPiece = ChartShape.GetPiece(j);
ChartPiece.SetLinkURL("http://www.forcs.com", "_blank");
ChartPiece.SetBrowserOption("ShowStatusBar", "false");
}
}
Available Events :
OnPostChartBuild