zoukankan      html  css  js  c++  java
  • 表格样式

    try
    {
    string fileStream = @"D:moban empA31.docx";

    Document document = new Document(fileStream);
    DocumentBuilder builder = new DocumentBuilder(document);
    builder.Write(" ");
    for (int i = 0; i < 200; i++)
    {


    builder.MoveToDocumentEnd();
    builder.Write(" ");
    builder.StartTable();

    builder.CellFormat.Borders.Color = Color.Black;
    builder.RowFormat.Height = 80;
    builder.CellFormat.Borders.LineWidth = 1.5;
    builder.CellFormat.Borders.LineStyle = LineStyle.Single;
    builder.CellFormat.Borders.Color = System.Drawing.Color.Black;
    //builder.CellFormat.VerticalAlignment = CellVerticalAlignment.Center;
    //builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;
    builder.InsertCell();


    //builder.CellFormat.VerticalAlignment = CellVerticalAlignment.Center;
    //builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;

    builder.EndRow();

    }


    document.Save(@"D:mobanTEST.docx");
    }
    catch (Exception)
    {

    throw;
    }

  • 相关阅读:
    C# 隐式转换 显示转换
    C# 枚举几种写法细节
    C# System.Int32 与 int 区别
    JavaScript中的闭包
    JS Arguments对象
    分页存储过程 sql
    JS Select 选项清空
    WebGL学习笔记三
    WebGL学习笔记二
    WebGL学习笔记一
  • 原文地址:https://www.cnblogs.com/lijiasnong/p/5101901.html
Copyright © 2011-2022 走看看