expression.FitToPages 需要expression。 代表Document物件的變數。 註解 如果Word 無法將頁面數減少一頁,就會發生錯誤。 範例 這則範例會嘗試將使用中文件的頁面數減少一頁。 VB OnErrorGoToerrhandler ActiveDocument.FitToPages errhandler:IfErr =5538ThenMsgBox"Fit to pages failed" ...
确定Microsoft Word是否仅打印在相应联机表单中输入的数据打印到预打印的表单上。 PrintFractionalWidths 此对象、成员或枚举已被弃用并且不适合在您的代码中使用。 PrintPostScriptOverText 确定使用 PostScript 打印机时,是否在文本和图形顶部打印 PRINT 字段指令 ((如文档中的 PostScript 命令) )。 PrintRevisions...
命名空間: Microsoft.Office.Tools.Word 組件: Microsoft.Office.Tools.Word.v4.0.Utilities (在 Microsoft.Office.Tools.Word.v4.0.Utilities.dll 中)語法C# 複製 public void FitToPages() 備註如果Microsoft Office Word 無法減少一頁,就會擲回例外狀況。
Shrink text to fit Applies To Word for Microsoft 365Word for the webWord 2024Word 2021Word 2019Word 2016Word 2013 If you have a short document that only has a small amount of text on the last page, you might be able to shrink it just enough to print on one page, and avoid printing...
In a Microsoft Office Excel workbook, you select theFit tooption in thePage Setupdialog box. However, when you print this workbook or when you use the print preview feature to view the workbook, you receive the following error message: ...
const docBody = context.document.body; docBody.insertParagraph("Office has several versions, including Office 2016, Microsoft 365 subscription, and Office on the web.", Word.InsertLocation.start); Save all your changes to the project.Test...
When Word comes out of the box, it is set up to cater for users who do not understand word processing." John McGhie, How to Create a Template, Part 2 When you save a document as a template Word will attach the extension of ".dot" to the end of the name instead of ".doc" but...
确定Microsoft Word是否仅打印在相应联机表单中输入的数据打印到预打印的表单上。 (继承自 _Document) PrintFractionalWidths 此对象、成员或枚举已被弃用并且不适合在您的代码中使用。 (继承自 _Document) PrintPostScriptOverText 确定使用 PostScript 打印机时,是否在文本和图形顶部打印 PRINT 字段指令 ((如文...
程序集: Microsoft.Office.Interop.Word.dll Returns or sets the view magnification of a window so that either the entire page is visible or the entire width of the page is visible. C# 复制 public Microsoft.Office.Interop.Word.WdPageFit PageFit { get; set; } 属性值 WdPageFit 注解 Wd...
Shrink text to fit If you have a short document that only has a small amount of text on the last page, you might be able to shrink it just enough to print on one page, and avoid printing the extra page. Newer versionsWeb To do this, use theShrink One Pagecommand. Word will ...