Esempio n. 1
0
        /// <summary>
        /// 考号填涂区域
        /// </summary>
        internal void ExaminationNo()
        {
            int         tableWidth = 5733; // 表格宽度
            int         columnNum  = 9;
            int         rowNum     = 10;
            UInt32Value rowHeight  = 315;
            StringValue fontSize   = "18";

            int positionX = 5070;
            int positionY = 36;

            Table table = new GenerateTable().Create(
                new GenerateTableProperties().Create(
                    new GenerateTableStyle().Create(),
                    new GenerateTablePositionProperties(positionX, positionY).Create(),
                    new GenerateTableOverlap().Create(),
                    new GenerateTableWidth(tableWidth).Create(),
                    new GenerateTableIndentation().Create(),
                    new GenerateTableBorders().Create(
                        new GenerateTopBorder().Create(),
                        new GenerateLeftBorder().Create(),
                        new GenerateBottomBorder().Create(),
                        new GenerateRightBorder().Create(),
                        new GenerateInsideHorizontalBorder().Create(),
                        new GenerateInsideVerticalBorder().Create()
                        ),
                    new GenerateTableLayout().Create(),
                    new GenerateTableCellMarginDefault().Create(
                        new GenerateTopMargin().Create(),
                        new GenerateTableCellLeftMargin().Create(),
                        new GenerateBottomMargin().Create(),
                        new GenerateTableCellRightMargin().Create()
                        )
                    ),
                new GenerateTableGrids().Create(tableWidth, columnNum)
                );

            // 首行
            table.Append(new GenerateTableExamineeNoFrame().CreateRowHeader("考   号", tableWidth, columnNum, rowHeight, fontSize));
            table.Append(new GenerateTableExamineeNoFrame().CreateRowItem("", tableWidth, columnNum, rowHeight, fontSize, JustificationValues.Distribute));
            for (int i = 0; i < rowNum; i++)
            {
                table.Append(new GenerateTableExamineeNoFrame().CreateRowItem(i, tableWidth, columnNum, rowHeight, fontSize, JustificationValues.Distribute));
            }

            this.body.Append(table);
        }
Esempio n. 2
0
        /// <summary>
        /// 创建作文题
        /// </summary>
        /// <param name="rowNum"></param>
        public void CreateWriting(int rowNum)
        {
            int TableWidth = 9629; // 表格宽度
            int ColumnNum  = 20;   // 列数
            //int rowNum = 30; // 行数
            //int wordCount = 600; // 字数

            Table table = new GenerateTable().Create(
                new GenerateTableProperties().Create(TableWidth),
                new GenerateTableGrids().Create(TableWidth, ColumnNum)
                );

            for (int i = 0; i < rowNum; i++)
            {
                table.Append(
                    new GenerateTableSeparateRow().Create(TableWidth, ColumnNum),
                    new GenerateTablePaneRow().Create(TableWidth, ColumnNum)
                    );
            }
            this.body.Append(table);
        }
Esempio n. 3
0
        internal void CreateEnglishWriting(int rowNum)
        {
            int         tableWidth = 9629; // 表格宽度
            UInt32Value rowHeight  = 454;  // 表格宽度
            int         columnNum  = 1;    // 列数
            //int rowNum = 30; // 行数
            //int wordCount = 600; // 字数

            Table table = new GenerateTable().Create(
                new GenerateTableProperties().Create(tableWidth),
                new GenerateTableGrids().Create(tableWidth, columnNum)
                );

            for (int i = 0; i < rowNum; i++)
            {
                table.Append(
                    new GenerateTableSeparateRow().CreateSpanRow(tableWidth, rowHeight)
                    );
            }

            this.body.Append(new GenerateBreakLine().Create());
            this.body.Append(new GenerateTextSubTitle().Create("书面表达", "32"));
            this.body.Append(table);
        }