[英]How to get the size (width and height) of the area with excel vsto c# excluding the ribbon area?
如何使用excel vsto c#獲取區域的大小(寬度和高度),不包括功能區? 這是下面用紅色標記顯示的區域:
該代碼應該有效,
Dim ws As Excel.Worksheet = Globals.ThisAddIn.Application.ActiveSheet
Dim _with1 = ws.PageSetup
sngWidth = _with1.Application.Width
sngHeight = _with1.Application.Height
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.