需要expression。 代表Document物件的變數。 註解 如果Word 無法將頁面數減少一頁,就會發生錯誤。 範例 這則範例會嘗試將使用中文件的頁面數減少一頁。 VB OnErrorGoToerrhandler ActiveDocument.FitToPages errhandler:IfErr =5538ThenMsgBox"Fit to pages failed" ...
expression.FitToPages 表达式是必需的。 一个代表Document对象的变量。 备注 如果Word 无法将文档的页数减少一页,将出现错误。 示例 本示例试图将活动文档的页数减少一页。 VB OnErrorGoToerrhandler ActiveDocument.FitToPages errhandler:IfErr =5538ThenMsgBox"Fit to pages failed" ...
命名空间: Microsoft.Office.Tools.Word 程序集: Microsoft.Office.Tools.Word.v4.0.Utilities(在 Microsoft.Office.Tools.Word.v4.0.Utilities.dll 中) Microsoft.Office.Tools.Word(在 Microsoft.Office.Tools.Word.dll 中)语法C# 复制 void FitToPages() ...
Microsoft.Office.Tools.Word.dll, Microsoft.Office.Tools.Word.v4.0.Utilities.dll Decreases the font size of text just enough so that the document will fit on one fewer pages. C# publicvoidFitToPages(); Remarks An exception is thrown if Microsoft Office Word is unable to reduce the page count...
Open a new Microsoft Word file. Go to Home of the Word file > select Paste. Use the keyboard shortcut CTRL + V to paste. See that the table is pasted to the Word file like this. Method 3 – Fitting Table to Page After pasting the Excel table into the Word file, our main task ...
1. Copy and paste the large range of data into Word document, and then select the pasted table, then clickLayout >AutoFit>AutoFit Contents/AutoFit Window, see screenshot: 2. And then the large data table will be adjusted to fit to the page, see screenshot: ...
1. Open the Microsoft Word document that you want to count the number of words per page for. 2. Look for the status bar at the bottom of the document. It should display the number of words in the document. 3. Right-click on the status bar, and a pop-up menu should appear. 4. ...
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 attempt to shrink the docu...
Method 3 – Fit the Excel Sheet as Image on One Page in a Word Document Steps: Copy the entire table by pressing Ctrl + C. Open Word. Right-click and select the Paste as Picture option (see image below). Word will paste the table as an image. Since the table is now in an image...
publicMicrosoft.Office.Interop.Word.WdPageFit PageFit {get;set; } Property Value WdPageFit Remarks WdPageFitcan be one of theseWdPageFitconstants: wdPageFitBestFit wdPageFitFullPage wdPageFitNone wdPageFitTextFit ThewdPageFitFullPageconstant has no effect if the document isn't in print view...