PageOffice中如何隐藏excel的行号列标?


若是但愿用户点击按钮隐藏excel的行号列标javascript

编写后台代码以下:html

PageOfficeCtrl1.AddCustomToolButton("隐藏excel的行号列标", "HideHeadings()", 0);java

在前台html中添加javascript函数ide

function HideHeadings(){函数

document.getElementByIdx_x("PageOfficeCtrl1").Document.Application.ActiveWindow.DisplayHeadings = false; //隐藏行号列标spa

}excel

若是但愿文档打开后就当即隐藏excel的行号列标htm

编写后台代码以下:ip

PageOfficeCtrl1.JsFunction_AfterDocumentOpened = "HideHeadings()";文档

在前台html中添加javascript函数

function HideHeadings(){

document.getElementByIdx_x("PageOfficeCtrl1").Document.Application.ActiveWindow.DisplayHeadings  = false; //隐藏行号列标}

相关文章
相关标签/搜索