1 1.1 设置纯色背景using Spire.Doc;using Spire.Doc.Documents;using Spire.Doc.Fields;using System.Drawing; namespace DifferentBackground1{ class Program { static void Main(string[] args) { ...
表达 一个代表 Document 对象的变量。备注背景仅在 Web 布局视图中可见。示例本示例将活动窗口的 Web 版式视图的背景色设置为浅灰色。VB 复制 ActiveDocument.ActiveWindow.View.Type = wdWebView With ActiveDocument.Background.Fill .Visible = True .ForeColor.RGB = RGB(192, 192, 192) End With ...
First, we will insert the full-page image on a single page. Then, we will insert the full-page image on every page in the document or section. Table of Contents: How to Insert a Full-Page Background Image on a Single Page How to Insert a Full-Page Background Image on Every Page W...
Note: while you can use this and the options below in Word on Windows, a color background is currently the only available option in Word on Mac. As of this writing, you cannot add a document background in Word on the Web. In the “Design” tab, select the “Page Color” drop-down...
public class DifferentPageBackground1 { public static void main(String[] args) { //加载Word测试文档 Document doc = new Document(); doc.loadFromFile("测试.docx"); //获取第一节 Section section = doc.getSections().get(0); //设置首页页眉页脚不同 ...
CoverPageProps DocumentFormat.OpenXml.Office.CustomDocumentInformationPanel DocumentFormat.OpenXml.Office.CustomUI DocumentFormat.OpenXml.Office.CustomXsn DocumentFormat.OpenXml.Office.Drawing DocumentFormat.OpenXml.Office.Drawing.Y2021.OEmbed DocumentFormat.OpenXml.Office.Drawing.Y2021.ScriptLink DocumentForma...
When you launch Microsoft Word, the first thing you notice is a blank white space with a blinking cursor. The blank white space serves as the background for any action you perform on Word. Like a physicalwhiteboard, the text appears on the screen as you type on the document. However, un...
importcom.spire.doc.*;importcom.spire.doc.documents.Paragraph;importcom.spire.doc.documents.TextWrappingStyle;importcom.spire.doc.documents.VerticalOrigin;importcom.spire.doc.fields.DocPicture;publicclassDifferentPageBackground1 {publicstaticvoidmain(String[] args) {//加载Word测试文档Document doc =newDoc...
To add some extra visual interest to your document, add a background color using thePage Colorbutton. You can alsoadd a watermark. Add or change the background color Go toDesign>Page Color. Choose the color you want underTheme ColorsorStandard Colors. ...
表达式。PrintOut(Background、Append、Range、OutputFileName、From、To、Item、Copies、Pages、PageType、PrintToFile、Collate、FileName、ActivePrinterMacGX、ManualDuplexPrint、PrintZoomColumn、PrintZoomRow、PrintZoomPaperWidth、PrintZoomPaperHeight) expression是必需的。 一个代表Document对象的变量。