摘要:
文档层次结构 [段落之后] 是一段连续文本,它定义具有一组常见属性的文本区域。一段连续文本由 r 元素表示,这样创建器便可组合换行、样式或格式设置属性,从而将相同信息应用于一段连续文本的所有部分。 正如段落可具有属性一样,一段连续文本也可具有属性。r 元素中的所有元素的属性由相应的可选 rPr 连续
阅读全文
posted @ 2018-08-30 18:01
天之梅子
阅读(942)
推荐(0)
摘要:
Word文档中的块级内容的最基本单位是段落,段落用<p>元素进行存储。段落定义在新行中开始,段落可以包含三方面的信息:可选的段落属性、内嵌的内容(通常为文本)和用于比较两个文档的内容的一组可选修订ID。 段落的属性通过<pPr>元素指定,段落属性的一些救命包括对齐方式、边框、断字覆盖、缩进、行距、底
阅读全文
posted @ 2018-08-30 17:56
天之梅子
阅读(781)
推荐(0)
摘要:
用这个会把模板的样式,文字内容都创建到新word文档里
阅读全文
posted @ 2018-08-01 09:18
天之梅子
阅读(1384)
推荐(0)
摘要:
/// /// 删除sheet /// /// /// /// public static bool XLDeleteSheet(string fileName, string sheetToDelete) { bool returnV...
阅读全文
posted @ 2018-07-23 18:33
天之梅子
阅读(248)
推荐(0)
摘要:
/// /// 其于OpenXml SDK写的帮助类 /// public static class OpenXmlHelper { /// /// 单元格样式 /// public static uint CellStyleIndex { get; set; } /...
阅读全文
posted @ 2018-07-23 18:31
天之梅子
阅读(757)
推荐(0)
摘要:
public class ExcelUntity { #region property /// /// excel文档(相当于excel程序) /// public SpreadsheetDocument spreadsheetDocument { get; set; } = null; ...
阅读全文
posted @ 2018-07-23 18:29
天之梅子
阅读(736)
推荐(0)
摘要:
Word.Document doc = this._wordApplication.Documents.Add(@"C:\Users\linmeicheng\Desktop\新建文件夹 (3)\Doc1.docx"); foreach (Word.ContentControl item in doc.ContentControls) ...
阅读全文
posted @ 2018-07-23 18:27
天之梅子
阅读(882)
推荐(0)
摘要:
1 using Word = NetOffice.WordApi; 2 3 Word.Document doc = this._wordApplication.Documents.Add(@"C:\Users\li\Desktop\新建文件夹 (3)\Doc1.docx"); 4 5 Word.ContentControl contentControl = doc.ContentC...
阅读全文
posted @ 2018-07-23 12:19
天之梅子
阅读(644)
推荐(0)