Example #1
0
        static void AddTitle(WordprocessingDocument Certificate)
        {
            Paragraph paragraph = CalibrationLib.NewParagraph(-284, 141, JustificationValues.Center, 8);
            Run       run       = CalibrationLib.NewRun(14);

            run.Append(CalibrationLib.NewText("Действительные значения метрологических характеристик"));
            paragraph.Append(run);
            Certificate.MainDocumentPart.Document.Body.Append(paragraph);
            Certificate.MainDocumentPart.Document.Body.Append(CalibrationLib.NewParagraph(0, 0, JustificationValues.Center, 8));
        }
        /// <summary>
        /// Изменить строку таблицы.
        /// </summary>
        /// <param name="NewRow"> Строка таблицы. </param>
        /// <param name="TableWidth"> Ширина столбца. </param>
        /// <returns></returns>
        internal void ChangingRow(TablesRow NewRow, TableRow ChRow)
        {
            IEnumerable <TableCell> CellCollection = ChRow.Elements <TableCell>();

            for (int i = 0; i < NewRow.ColumnsCount; i++)
            {
                if (NewRow.Values[i] != "")
                {
                    CellCollection.ElementAt(i).Elements <Paragraph>().First().Elements <Run>().First().Append(CalibrationLib.NewText(NewRow.Values[i]));
                }
            }
        }