若是但願用戶點擊按鈕隱藏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; //隱藏行號列標}