作者在 2018-09-17 18:50:38 发布以下内容
oExcel=CreateObject("Excel.Application")
WITH oExcel
.WorkBooks.Add
.DisplayFullScreen = .T.
.CommandBars(1).Enabled = .F.
.CommandBars("Full Screen").Controls(1).Onaction = "RestoreWindow"
WITH .ActiveWindow
.DisplayHeadings = .F.
.DisplayHorizontalScrollBar = .F.
.DisplayVerticalScrollBar = .F.
.DisplayWorkbookTabs = .F.
ENDWITH
* 取消全屏显示 *
.DisplayFullScreen = .F.
.CommandBars(1).Enabled = .T.
.CommandBars("Full Screen").Reset
WITH .ActiveWindow
.DisplayHeadings = .T.
.DisplayHorizontalScrollBar = .T.
.DisplayVerticalScrollBar = .T.
.DisplayWorkbookTabs = .T.
ENDWITH
.Visible = .T.
ENDWITH