private static string GetEndingYear(SocialActivity data, string language) { if (data.EndingYear.HasValue && data.EndingYear > 0) { return(data.EndingYear.Value.ToString()); } return(DocumentMetadataTexts.GetText(MetadataTexts.CV_PRESENT, language)); }
private static string GetDay(int?amountOfDays, GenerationData data) { if (amountOfDays.HasValue) { return(amountOfDays > 1 ? DocumentMetadataTexts.GetText(MetadataTexts.CV_DAYS, data.Language) : DocumentMetadataTexts.GetText(MetadataTexts.CV_DAY, data.Language)); } else { return(string.Empty); } }
private string GetCurrentDate(string language) { var year = DateTime.Now.Year.ToString(); switch (DateTime.Now.Month) { case 1: return($"{DocumentMetadataTexts.GetText(MetadataTexts.CV_MONTH_JANUARY, language)} {year}"); case 2: return($"{DocumentMetadataTexts.GetText(MetadataTexts.CV_MONTH_FEBRUARY, language)} {year}"); case 3: return($"{DocumentMetadataTexts.GetText(MetadataTexts.CV_MONTH_MARCH, language)} {year}"); case 4: return($"{DocumentMetadataTexts.GetText(MetadataTexts.CV_MONTH_APRIL, language)} {year}"); case 5: return($"{DocumentMetadataTexts.GetText(MetadataTexts.CV_MONTH_MAY, language)} {year}"); case 6: return($"{DocumentMetadataTexts.GetText(MetadataTexts.CV_MONTH_JUNE, language)} {year}"); case 7: return($"{DocumentMetadataTexts.GetText(MetadataTexts.CV_MONTH_JULY, language)} {year}"); case 8: return($"{DocumentMetadataTexts.GetText(MetadataTexts.CV_MONTH_AUGUST, language)} {year}"); case 9: return($"{DocumentMetadataTexts.GetText(MetadataTexts.CV_MONTH_SEPTEMBER, language)} {year}"); case 10: return($"{DocumentMetadataTexts.GetText(MetadataTexts.CV_MONTH_OCTOBER, language)} {year}"); case 11: return($"{DocumentMetadataTexts.GetText(MetadataTexts.CV_MONTH_NOVEMBER, language)} {year}"); case 12: return($"{DocumentMetadataTexts.GetText(MetadataTexts.CV_MONTH_DECEMBER, language)} {year}"); default: return("Unknown"); } }
// Creates an Table instance and adds its children. public static Table GenerateTable(GenerationData data) { Table table1 = new Table(); TableProperties tableProperties1 = new TableProperties(); TableWidth tableWidth1 = new TableWidth() { Width = "8789", Type = TableWidthUnitValues.Dxa }; TableIndentation tableIndentation1 = new TableIndentation() { Width = 10, Type = TableWidthUnitValues.Dxa }; TableBorders tableBorders1 = new TableBorders(); TopBorder topBorder1 = new TopBorder() { Val = BorderValues.Single, Color = "000000", Size = (UInt32Value)10U, Space = (UInt32Value)0U }; LeftBorder leftBorder1 = new LeftBorder() { Val = BorderValues.Single, Color = "000000", Size = (UInt32Value)10U, Space = (UInt32Value)0U }; BottomBorder bottomBorder1 = new BottomBorder() { Val = BorderValues.Single, Color = "000000", Size = (UInt32Value)10U, Space = (UInt32Value)0U }; RightBorder rightBorder1 = new RightBorder() { Val = BorderValues.Single, Color = "000000", Size = (UInt32Value)10U, Space = (UInt32Value)0U }; InsideHorizontalBorder insideHorizontalBorder1 = new InsideHorizontalBorder() { Val = BorderValues.Single, Color = "000000", Size = (UInt32Value)10U, Space = (UInt32Value)0U }; InsideVerticalBorder insideVerticalBorder1 = new InsideVerticalBorder() { Val = BorderValues.Single, Color = "000000", Size = (UInt32Value)10U, Space = (UInt32Value)0U }; tableBorders1.Append(topBorder1); tableBorders1.Append(leftBorder1); tableBorders1.Append(bottomBorder1); tableBorders1.Append(rightBorder1); tableBorders1.Append(insideHorizontalBorder1); tableBorders1.Append(insideVerticalBorder1); TableCellMarginDefault tableCellMarginDefault1 = new TableCellMarginDefault(); TableCellLeftMargin tableCellLeftMargin1 = new TableCellLeftMargin() { Width = 10, Type = TableWidthValues.Dxa }; TableCellRightMargin tableCellRightMargin1 = new TableCellRightMargin() { Width = 10, Type = TableWidthValues.Dxa }; tableCellMarginDefault1.Append(tableCellLeftMargin1); tableCellMarginDefault1.Append(tableCellRightMargin1); TableLook tableLook1 = new TableLook() { Val = "0000", FirstRow = false, LastRow = false, FirstColumn = false, LastColumn = false, NoHorizontalBand = false, NoVerticalBand = false }; tableProperties1.Append(tableWidth1); tableProperties1.Append(tableIndentation1); tableProperties1.Append(tableBorders1); tableProperties1.Append(tableCellMarginDefault1); tableProperties1.Append(tableLook1); TableGrid tableGrid1 = new TableGrid(); GridColumn gridColumn1 = new GridColumn() { Width = "2550" }; GridColumn gridColumn2 = new GridColumn() { Width = "4860" }; GridColumn gridColumn3 = new GridColumn() { Width = "1379" }; tableGrid1.Append(gridColumn1); tableGrid1.Append(gridColumn2); tableGrid1.Append(gridColumn3); TableRow tableRow1 = new TableRow() { RsidTableRowAddition = "009B2C1D", RsidTableRowProperties = "009E39C2", ParagraphId = "0CBEE687", TextId = "77777777" }; TableRowProperties tableRowProperties1 = new TableRowProperties(); GridAfter gridAfter1 = new GridAfter() { Val = 1 }; WidthAfterTableRow widthAfterTableRow1 = new WidthAfterTableRow() { Width = "1379", Type = TableWidthUnitValues.Dxa }; tableRowProperties1.Append(gridAfter1); tableRowProperties1.Append(widthAfterTableRow1); TableCell tableCell1 = new TableCell(); TableCellProperties tableCellProperties1 = new TableCellProperties(); TableCellWidth tableCellWidth1 = new TableCellWidth() { Width = "7410", Type = TableWidthUnitValues.Dxa }; GridSpan gridSpan1 = new GridSpan() { Val = 2 }; TableCellBorders tableCellBorders1 = new TableCellBorders(); TopBorder topBorder2 = new TopBorder() { Val = BorderValues.Single, Color = "FFFFFF", Size = (UInt32Value)0U, Space = (UInt32Value)0U }; LeftBorder leftBorder2 = new LeftBorder() { Val = BorderValues.Single, Color = "FFFFFF", Size = (UInt32Value)0U, Space = (UInt32Value)0U }; BottomBorder bottomBorder2 = new BottomBorder() { Val = BorderValues.Single, Color = "FFFFFF", Size = (UInt32Value)0U, Space = (UInt32Value)0U }; RightBorder rightBorder2 = new RightBorder() { Val = BorderValues.Single, Color = "FFFFFF", Size = (UInt32Value)0U, Space = (UInt32Value)0U }; tableCellBorders1.Append(topBorder2); tableCellBorders1.Append(leftBorder2); tableCellBorders1.Append(bottomBorder2); tableCellBorders1.Append(rightBorder2); tableCellProperties1.Append(tableCellWidth1); tableCellProperties1.Append(gridSpan1); tableCellProperties1.Append(tableCellBorders1); Paragraph paragraph1 = new Paragraph() { RsidParagraphAddition = "009B2C1D", RsidRunAdditionDefault = "009E39C2", ParagraphId = "4C204333", TextId = "77777777" }; Run run1 = new Run(); RunProperties runProperties1 = new RunProperties(); Bold bold1 = new Bold(); FontSize fontSize1 = new FontSize() { Val = "22" }; FontSizeComplexScript fontSizeComplexScript1 = new FontSizeComplexScript() { Val = "22" }; runProperties1.Append(bold1); runProperties1.Append(fontSize1); runProperties1.Append(fontSizeComplexScript1); Text text1 = new Text(); text1.Text = DocumentMetadataTexts.GetText(MetadataTexts.CV_SOCIAL_ACTIVITIES, data.Language)?.ToUpper(); run1.Append(runProperties1); run1.Append(text1); paragraph1.Append(run1); tableCell1.Append(tableCellProperties1); tableCell1.Append(paragraph1); tableRow1.Append(tableRowProperties1); tableRow1.Append(tableCell1); table1.Append(tableProperties1); table1.Append(tableGrid1); table1.Append(tableRow1); var activities = data.SocialActivites; foreach (var activity in activities) { table1.Append(CreateMembershipRow(activity, data.Language)); } return(table1); }
// Creates an Table instance and adds its children. public static Table GenerateTable(GenerationData data) { Table table1 = new Table(); TableProperties tableProperties1 = new TableProperties(); TableWidth tableWidth1 = new TableWidth() { Width = "0", Type = TableWidthUnitValues.Auto }; TableIndentation tableIndentation1 = new TableIndentation() { Width = 10, Type = TableWidthUnitValues.Dxa }; TableBorders tableBorders1 = new TableBorders(); TopBorder topBorder1 = new TopBorder() { Val = BorderValues.Single, Color = "000000", Size = (UInt32Value)10U, Space = (UInt32Value)0U }; LeftBorder leftBorder1 = new LeftBorder() { Val = BorderValues.Single, Color = "000000", Size = (UInt32Value)10U, Space = (UInt32Value)0U }; BottomBorder bottomBorder1 = new BottomBorder() { Val = BorderValues.Single, Color = "000000", Size = (UInt32Value)10U, Space = (UInt32Value)0U }; RightBorder rightBorder1 = new RightBorder() { Val = BorderValues.Single, Color = "000000", Size = (UInt32Value)10U, Space = (UInt32Value)0U }; InsideHorizontalBorder insideHorizontalBorder1 = new InsideHorizontalBorder() { Val = BorderValues.Single, Color = "000000", Size = (UInt32Value)10U, Space = (UInt32Value)0U }; InsideVerticalBorder insideVerticalBorder1 = new InsideVerticalBorder() { Val = BorderValues.Single, Color = "000000", Size = (UInt32Value)10U, Space = (UInt32Value)0U }; tableBorders1.Append(topBorder1); tableBorders1.Append(leftBorder1); tableBorders1.Append(bottomBorder1); tableBorders1.Append(rightBorder1); tableBorders1.Append(insideHorizontalBorder1); tableBorders1.Append(insideVerticalBorder1); TableCellMarginDefault tableCellMarginDefault1 = new TableCellMarginDefault(); TableCellLeftMargin tableCellLeftMargin1 = new TableCellLeftMargin() { Width = 10, Type = TableWidthValues.Dxa }; TableCellRightMargin tableCellRightMargin1 = new TableCellRightMargin() { Width = 10, Type = TableWidthValues.Dxa }; tableCellMarginDefault1.Append(tableCellLeftMargin1); tableCellMarginDefault1.Append(tableCellRightMargin1); TableLook tableLook1 = new TableLook() { Val = "0000", FirstRow = false, LastRow = false, FirstColumn = false, LastColumn = false, NoHorizontalBand = false, NoVerticalBand = false }; tableProperties1.Append(tableWidth1); tableProperties1.Append(tableIndentation1); tableProperties1.Append(tableBorders1); tableProperties1.Append(tableCellMarginDefault1); tableProperties1.Append(tableLook1); TableGrid tableGrid1 = new TableGrid(); GridColumn gridColumn1 = new GridColumn() { Width = "2550" }; GridColumn gridColumn2 = new GridColumn() { Width = "4500" }; GridColumn gridColumn3 = new GridColumn() { Width = "360" }; tableGrid1.Append(gridColumn1); tableGrid1.Append(gridColumn2); tableGrid1.Append(gridColumn3); TableRow tableRow1 = new TableRow() { RsidTableRowAddition = "009B2C1D", ParagraphId = "6A369A48", TextId = "77777777" }; TableCell tableCell1 = new TableCell(); TableCellProperties tableCellProperties1 = new TableCellProperties(); TableCellWidth tableCellWidth1 = new TableCellWidth() { Width = "800", Type = TableWidthUnitValues.Dxa }; GridSpan gridSpan1 = new GridSpan() { Val = 3 }; TableCellBorders tableCellBorders1 = new TableCellBorders(); TopBorder topBorder2 = new TopBorder() { Val = BorderValues.Single, Color = "FFFFFF", Size = (UInt32Value)0U, Space = (UInt32Value)0U }; LeftBorder leftBorder2 = new LeftBorder() { Val = BorderValues.Single, Color = "FFFFFF", Size = (UInt32Value)0U, Space = (UInt32Value)0U }; BottomBorder bottomBorder2 = new BottomBorder() { Val = BorderValues.Single, Color = "FFFFFF", Size = (UInt32Value)0U, Space = (UInt32Value)0U }; RightBorder rightBorder2 = new RightBorder() { Val = BorderValues.Single, Color = "FFFFFF", Size = (UInt32Value)0U, Space = (UInt32Value)0U }; tableCellBorders1.Append(topBorder2); tableCellBorders1.Append(leftBorder2); tableCellBorders1.Append(bottomBorder2); tableCellBorders1.Append(rightBorder2); tableCellProperties1.Append(tableCellWidth1); tableCellProperties1.Append(gridSpan1); tableCellProperties1.Append(tableCellBorders1); Paragraph paragraph1 = new Paragraph() { RsidParagraphAddition = "009B2C1D", RsidRunAdditionDefault = "009E39C2", ParagraphId = "1F571112", TextId = "77777777" }; Run run1 = new Run(); RunProperties runProperties1 = new RunProperties(); Bold bold1 = new Bold(); FontSize fontSize1 = new FontSize() { Val = "22" }; FontSizeComplexScript fontSizeComplexScript1 = new FontSizeComplexScript() { Val = "22" }; runProperties1.Append(bold1); runProperties1.Append(fontSize1); runProperties1.Append(fontSizeComplexScript1); Text text1 = new Text(); text1.Text = DocumentMetadataTexts.GetText(MetadataTexts.CV_TRANSITION_TIME, data.Language)?.ToUpper(); run1.Append(runProperties1); run1.Append(text1); Run run2 = new Run(); RunProperties runProperties2 = new RunProperties(); FontSize fontSize2 = new FontSize() { Val = "22" }; FontSizeComplexScript fontSizeComplexScript2 = new FontSizeComplexScript() { Val = "22" }; runProperties2.Append(fontSize2); runProperties2.Append(fontSizeComplexScript2); Text text2 = new Text() { Space = SpaceProcessingModeValues.Preserve }; text2.Text = " "; run2.Append(runProperties2); run2.Append(text2); paragraph1.Append(run1); paragraph1.Append(run2); tableCell1.Append(tableCellProperties1); tableCell1.Append(paragraph1); tableRow1.Append(tableCell1); TableRow tableRow2 = new TableRow() { RsidTableRowAddition = "009B2C1D", ParagraphId = "284F9E59", TextId = "77777777" }; TableRowProperties tableRowProperties1 = new TableRowProperties(); GridAfter gridAfter1 = new GridAfter() { Val = 1 }; WidthAfterTableRow widthAfterTableRow1 = new WidthAfterTableRow() { Width = "360", Type = TableWidthUnitValues.Dxa }; tableRowProperties1.Append(gridAfter1); tableRowProperties1.Append(widthAfterTableRow1); TableCell tableCell2 = new TableCell(); TableCellProperties tableCellProperties2 = new TableCellProperties(); TableCellWidth tableCellWidth2 = new TableCellWidth() { Width = "2550", Type = TableWidthUnitValues.Dxa }; TableCellBorders tableCellBorders2 = new TableCellBorders(); TopBorder topBorder3 = new TopBorder() { Val = BorderValues.Single, Color = "FFFFFF", Size = (UInt32Value)0U, Space = (UInt32Value)0U }; LeftBorder leftBorder3 = new LeftBorder() { Val = BorderValues.Single, Color = "FFFFFF", Size = (UInt32Value)0U, Space = (UInt32Value)0U }; BottomBorder bottomBorder3 = new BottomBorder() { Val = BorderValues.Single, Color = "FFFFFF", Size = (UInt32Value)0U, Space = (UInt32Value)0U }; RightBorder rightBorder3 = new RightBorder() { Val = BorderValues.Single, Color = "FFFFFF", Size = (UInt32Value)0U, Space = (UInt32Value)0U }; tableCellBorders2.Append(topBorder3); tableCellBorders2.Append(leftBorder3); tableCellBorders2.Append(bottomBorder3); tableCellBorders2.Append(rightBorder3); tableCellProperties2.Append(tableCellWidth2); tableCellProperties2.Append(tableCellBorders2); Paragraph paragraph2 = new Paragraph() { RsidParagraphAddition = "009B2C1D", RsidRunAdditionDefault = "009E39C2", ParagraphId = "4BC9A594", TextId = "77777777" }; Run run3 = new Run(); RunProperties runProperties3 = new RunProperties(); FontSize fontSize3 = new FontSize() { Val = "22" }; FontSizeComplexScript fontSizeComplexScript3 = new FontSizeComplexScript() { Val = "22" }; runProperties3.Append(fontSize3); runProperties3.Append(fontSizeComplexScript3); Text text3 = new Text() { Space = SpaceProcessingModeValues.Preserve }; text3.Text = $"{DocumentMetadataTexts.GetText(MetadataTexts.CV_NOTICE_PERIOD, data.Language)}: "; run3.Append(runProperties3); run3.Append(text3); paragraph2.Append(run3); tableCell2.Append(tableCellProperties2); tableCell2.Append(paragraph2); TableCell tableCell3 = new TableCell(); TableCellProperties tableCellProperties3 = new TableCellProperties(); TableCellWidth tableCellWidth3 = new TableCellWidth() { Width = "4500", Type = TableWidthUnitValues.Dxa }; TableCellBorders tableCellBorders3 = new TableCellBorders(); TopBorder topBorder4 = new TopBorder() { Val = BorderValues.Single, Color = "FFFFFF", Size = (UInt32Value)0U, Space = (UInt32Value)0U }; LeftBorder leftBorder4 = new LeftBorder() { Val = BorderValues.Single, Color = "000000", Size = (UInt32Value)1U, Space = (UInt32Value)0U }; BottomBorder bottomBorder4 = new BottomBorder() { Val = BorderValues.Single, Color = "FFFFFF", Size = (UInt32Value)0U, Space = (UInt32Value)0U }; RightBorder rightBorder4 = new RightBorder() { Val = BorderValues.Single, Color = "FFFFFF", Size = (UInt32Value)0U, Space = (UInt32Value)0U }; tableCellBorders3.Append(topBorder4); tableCellBorders3.Append(leftBorder4); tableCellBorders3.Append(bottomBorder4); tableCellBorders3.Append(rightBorder4); tableCellProperties3.Append(tableCellWidth3); tableCellProperties3.Append(tableCellBorders3); Paragraph paragraph3 = new Paragraph() { RsidParagraphAddition = "009B2C1D", RsidRunAdditionDefault = "009E39C2", ParagraphId = "11E20E69", TextId = "77777777" }; ParagraphProperties paragraphProperties1 = new ParagraphProperties(); SpacingBetweenLines spacingBetweenLines1 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto }; Indentation indentation1 = new Indentation() { Left = "144" }; paragraphProperties1.Append(spacingBetweenLines1); paragraphProperties1.Append(indentation1); Run run4 = new Run(); RunProperties runProperties4 = new RunProperties(); FontSize fontSize4 = new FontSize() { Val = "21" }; FontSizeComplexScript fontSizeComplexScript4 = new FontSizeComplexScript() { Val = "21" }; runProperties4.Append(fontSize4); runProperties4.Append(fontSizeComplexScript4); Text text4 = new Text(); text4.Text = data.TransitionTime; run4.Append(runProperties4); run4.Append(text4); paragraph3.Append(paragraphProperties1); paragraph3.Append(run4); tableCell3.Append(tableCellProperties3); tableCell3.Append(paragraph3); tableRow2.Append(tableRowProperties1); tableRow2.Append(tableCell2); tableRow2.Append(tableCell3); table1.Append(tableProperties1); table1.Append(tableGrid1); table1.Append(tableRow1); table1.Append(tableRow2); return(table1); }
private static TableRow GenerateHeadline(GenerationData data) { TableRow tableRow1 = new TableRow() { RsidTableRowAddition = "009B2C1D", RsidTableRowProperties = "0007641E", ParagraphId = "4B076042", TextId = "77777777" }; TableCell tableCell1 = new TableCell(); TableCellProperties tableCellProperties1 = new TableCellProperties(); TableCellWidth tableCellWidth1 = new TableCellWidth() { Width = "8610", Type = TableWidthUnitValues.Dxa }; GridSpan gridSpan1 = new GridSpan() { Val = 3 }; TableCellBorders tableCellBorders1 = new TableCellBorders(); TopBorder topBorder2 = new TopBorder() { Val = BorderValues.Single, Color = "FFFFFF", Size = (UInt32Value)0U, Space = (UInt32Value)0U }; LeftBorder leftBorder2 = new LeftBorder() { Val = BorderValues.Single, Color = "FFFFFF", Size = (UInt32Value)0U, Space = (UInt32Value)0U }; BottomBorder bottomBorder2 = new BottomBorder() { Val = BorderValues.Single, Color = "FFFFFF", Size = (UInt32Value)0U, Space = (UInt32Value)0U }; RightBorder rightBorder2 = new RightBorder() { Val = BorderValues.Single, Color = "FFFFFF", Size = (UInt32Value)0U, Space = (UInt32Value)0U }; tableCellBorders1.Append(topBorder2); tableCellBorders1.Append(leftBorder2); tableCellBorders1.Append(bottomBorder2); tableCellBorders1.Append(rightBorder2); tableCellProperties1.Append(tableCellWidth1); tableCellProperties1.Append(gridSpan1); tableCellProperties1.Append(tableCellBorders1); Paragraph paragraph1 = new Paragraph() { RsidParagraphAddition = "009B2C1D", RsidRunAdditionDefault = "009E39C2", ParagraphId = "7E6D8800", TextId = "77777777" }; Run run1 = new Run(); RunProperties runProperties1 = new RunProperties(); Bold bold1 = new Bold(); FontSize fontSize1 = new FontSize() { Val = "22" }; FontSizeComplexScript fontSizeComplexScript1 = new FontSizeComplexScript() { Val = "22" }; runProperties1.Append(bold1); runProperties1.Append(fontSize1); runProperties1.Append(fontSizeComplexScript1); Text text1 = new Text(); text1.Text = DocumentMetadataTexts.GetText(MetadataTexts.CV_EDUCATION, data.Language)?.ToUpper(); run1.Append(runProperties1); run1.Append(text1); Run run2 = new Run(); RunProperties runProperties2 = new RunProperties(); FontSize fontSize2 = new FontSize() { Val = "22" }; FontSizeComplexScript fontSizeComplexScript2 = new FontSizeComplexScript() { Val = "22" }; runProperties2.Append(fontSize2); runProperties2.Append(fontSizeComplexScript2); Text text2 = new Text() { Space = SpaceProcessingModeValues.Preserve }; text2.Text = " "; run2.Append(runProperties2); run2.Append(text2); paragraph1.Append(run1); paragraph1.Append(run2); tableCell1.Append(tableCellProperties1); tableCell1.Append(paragraph1); tableRow1.Append(tableCell1); return(tableRow1); }
// Creates an Table instance and adds its children. public static Table GenerateTable(GenerationData data) { Table table1 = new Table(); TableProperties tableProperties1 = new TableProperties(); TableWidth tableWidth1 = new TableWidth() { Width = "0", Type = TableWidthUnitValues.Auto }; TableIndentation tableIndentation1 = new TableIndentation() { Width = 10, Type = TableWidthUnitValues.Dxa }; TableBorders tableBorders1 = new TableBorders(); TopBorder topBorder1 = new TopBorder() { Val = BorderValues.Single, Color = "000000", Size = (UInt32Value)10U, Space = (UInt32Value)0U }; LeftBorder leftBorder1 = new LeftBorder() { Val = BorderValues.Single, Color = "000000", Size = (UInt32Value)10U, Space = (UInt32Value)0U }; BottomBorder bottomBorder1 = new BottomBorder() { Val = BorderValues.Single, Color = "000000", Size = (UInt32Value)10U, Space = (UInt32Value)0U }; RightBorder rightBorder1 = new RightBorder() { Val = BorderValues.Single, Color = "000000", Size = (UInt32Value)10U, Space = (UInt32Value)0U }; InsideHorizontalBorder insideHorizontalBorder1 = new InsideHorizontalBorder() { Val = BorderValues.Single, Color = "000000", Size = (UInt32Value)10U, Space = (UInt32Value)0U }; InsideVerticalBorder insideVerticalBorder1 = new InsideVerticalBorder() { Val = BorderValues.Single, Color = "000000", Size = (UInt32Value)10U, Space = (UInt32Value)0U }; tableBorders1.Append(topBorder1); tableBorders1.Append(leftBorder1); tableBorders1.Append(bottomBorder1); tableBorders1.Append(rightBorder1); tableBorders1.Append(insideHorizontalBorder1); tableBorders1.Append(insideVerticalBorder1); TableCellMarginDefault tableCellMarginDefault1 = new TableCellMarginDefault(); TableCellLeftMargin tableCellLeftMargin1 = new TableCellLeftMargin() { Width = 10, Type = TableWidthValues.Dxa }; TableCellRightMargin tableCellRightMargin1 = new TableCellRightMargin() { Width = 10, Type = TableWidthValues.Dxa }; tableCellMarginDefault1.Append(tableCellLeftMargin1); tableCellMarginDefault1.Append(tableCellRightMargin1); TableLook tableLook1 = new TableLook() { Val = "0000", FirstRow = false, LastRow = false, FirstColumn = false, LastColumn = false, NoHorizontalBand = false, NoVerticalBand = false }; tableProperties1.Append(tableWidth1); tableProperties1.Append(tableIndentation1); tableProperties1.Append(tableBorders1); tableProperties1.Append(tableCellMarginDefault1); tableProperties1.Append(tableLook1); TableGrid tableGrid1 = new TableGrid(); GridColumn gridColumn1 = new GridColumn() { Width = "2000" }; GridColumn gridColumn2 = new GridColumn() { Width = "2550" }; GridColumn gridColumn3 = new GridColumn() { Width = "3825" }; tableGrid1.Append(gridColumn1); tableGrid1.Append(gridColumn2); tableGrid1.Append(gridColumn3); TableRow tableRow1 = new TableRow() { RsidTableRowAddition = "009B2C1D", ParagraphId = "080C4265", TextId = "77777777" }; TableRowProperties tableRowProperties1 = new TableRowProperties(); GridAfter gridAfter1 = new GridAfter() { Val = 2 }; WidthAfterTableRow widthAfterTableRow1 = new WidthAfterTableRow() { Width = "6375", Type = TableWidthUnitValues.Dxa }; tableRowProperties1.Append(gridAfter1); tableRowProperties1.Append(widthAfterTableRow1); TableCell tableCell1 = new TableCell(); TableCellProperties tableCellProperties1 = new TableCellProperties(); TableCellWidth tableCellWidth1 = new TableCellWidth() { Width = "800", Type = TableWidthUnitValues.Dxa }; TableCellBorders tableCellBorders1 = new TableCellBorders(); TopBorder topBorder2 = new TopBorder() { Val = BorderValues.Single, Color = "FFFFFF", Size = (UInt32Value)0U, Space = (UInt32Value)0U }; LeftBorder leftBorder2 = new LeftBorder() { Val = BorderValues.Single, Color = "FFFFFF", Size = (UInt32Value)0U, Space = (UInt32Value)0U }; BottomBorder bottomBorder2 = new BottomBorder() { Val = BorderValues.Single, Color = "FFFFFF", Size = (UInt32Value)0U, Space = (UInt32Value)0U }; RightBorder rightBorder2 = new RightBorder() { Val = BorderValues.Single, Color = "FFFFFF", Size = (UInt32Value)0U, Space = (UInt32Value)0U }; tableCellBorders1.Append(topBorder2); tableCellBorders1.Append(leftBorder2); tableCellBorders1.Append(bottomBorder2); tableCellBorders1.Append(rightBorder2); tableCellProperties1.Append(tableCellWidth1); tableCellProperties1.Append(tableCellBorders1); Paragraph paragraph1 = new Paragraph() { RsidParagraphAddition = "009B2C1D", RsidRunAdditionDefault = "009E39C2", ParagraphId = "3B996D8B", TextId = "0D88121C" }; Run run1 = new Run(); RunProperties runProperties1 = new RunProperties(); NoProof noProof1 = new NoProof(); runProperties1.Append(noProof1); Drawing drawing1 = new Drawing(); Wp.Inline inline1 = new Wp.Inline() { DistanceFromTop = (UInt32Value)0U, DistanceFromBottom = (UInt32Value)0U, DistanceFromLeft = (UInt32Value)0U, DistanceFromRight = (UInt32Value)0U, AnchorId = "29B39BAA", EditId = "5481AAF3" }; Wp.Extent extent1 = new Wp.Extent() { Cx = 1257300L, Cy = 1057275L }; Wp.EffectExtent effectExtent1 = new Wp.EffectExtent() { LeftEdge = 0L, TopEdge = 0L, RightEdge = 0L, BottomEdge = 0L }; Wp.DocProperties docProperties1 = new Wp.DocProperties() { Id = (UInt32Value)1U, Name = "Picture 1" }; Wp.NonVisualGraphicFrameDrawingProperties nonVisualGraphicFrameDrawingProperties1 = new Wp.NonVisualGraphicFrameDrawingProperties(); A.GraphicFrameLocks graphicFrameLocks1 = new A.GraphicFrameLocks() { NoChangeAspect = true }; graphicFrameLocks1.AddNamespaceDeclaration("a", "http://schemas.openxmlformats.org/drawingml/2006/main"); nonVisualGraphicFrameDrawingProperties1.Append(graphicFrameLocks1); A.Graphic graphic1 = new A.Graphic(); graphic1.AddNamespaceDeclaration("a", "http://schemas.openxmlformats.org/drawingml/2006/main"); A.GraphicData graphicData1 = new A.GraphicData() { Uri = "http://schemas.openxmlformats.org/drawingml/2006/picture" }; Pic.Picture picture1 = new Pic.Picture(); picture1.AddNamespaceDeclaration("pic", "http://schemas.openxmlformats.org/drawingml/2006/picture"); Pic.NonVisualPictureProperties nonVisualPictureProperties1 = new Pic.NonVisualPictureProperties(); Pic.NonVisualDrawingProperties nonVisualDrawingProperties1 = new Pic.NonVisualDrawingProperties() { Id = (UInt32Value)0U, Name = "Picture 1" }; Pic.NonVisualPictureDrawingProperties nonVisualPictureDrawingProperties1 = new Pic.NonVisualPictureDrawingProperties(); A.PictureLocks pictureLocks1 = new A.PictureLocks() { NoChangeAspect = true, NoChangeArrowheads = true }; nonVisualPictureDrawingProperties1.Append(pictureLocks1); nonVisualPictureProperties1.Append(nonVisualDrawingProperties1); nonVisualPictureProperties1.Append(nonVisualPictureDrawingProperties1); Pic.BlipFill blipFill1 = new Pic.BlipFill(); A.Blip blip1 = new A.Blip() { Embed = "rId9" }; A.BlipExtensionList blipExtensionList1 = new A.BlipExtensionList(); A.BlipExtension blipExtension1 = new A.BlipExtension() { Uri = "{28A0092B-C50C-407E-A947-70E740481C1C}" }; A14.UseLocalDpi useLocalDpi1 = new A14.UseLocalDpi() { Val = false }; useLocalDpi1.AddNamespaceDeclaration("a14", "http://schemas.microsoft.com/office/drawing/2010/main"); blipExtension1.Append(useLocalDpi1); blipExtensionList1.Append(blipExtension1); blip1.Append(blipExtensionList1); A.SourceRectangle sourceRectangle1 = new A.SourceRectangle(); A.Stretch stretch1 = new A.Stretch(); A.FillRectangle fillRectangle1 = new A.FillRectangle(); stretch1.Append(fillRectangle1); blipFill1.Append(blip1); blipFill1.Append(sourceRectangle1); blipFill1.Append(stretch1); Pic.ShapeProperties shapeProperties1 = new Pic.ShapeProperties() { BlackWhiteMode = A.BlackWhiteModeValues.Auto }; A.Transform2D transform2D1 = new A.Transform2D(); A.Offset offset1 = new A.Offset() { X = 0L, Y = 0L }; A.Extents extents1 = new A.Extents() { Cx = 1257300L, Cy = 1057275L }; transform2D1.Append(offset1); transform2D1.Append(extents1); A.PresetGeometry presetGeometry1 = new A.PresetGeometry() { Preset = A.ShapeTypeValues.Rectangle }; A.AdjustValueList adjustValueList1 = new A.AdjustValueList(); presetGeometry1.Append(adjustValueList1); A.NoFill noFill1 = new A.NoFill(); A.Outline outline1 = new A.Outline(); A.NoFill noFill2 = new A.NoFill(); outline1.Append(noFill2); shapeProperties1.Append(transform2D1); shapeProperties1.Append(presetGeometry1); shapeProperties1.Append(noFill1); shapeProperties1.Append(outline1); picture1.Append(nonVisualPictureProperties1); picture1.Append(blipFill1); picture1.Append(shapeProperties1); graphicData1.Append(picture1); graphic1.Append(graphicData1); inline1.Append(extent1); inline1.Append(effectExtent1); inline1.Append(docProperties1); inline1.Append(nonVisualGraphicFrameDrawingProperties1); inline1.Append(graphic1); drawing1.Append(inline1); run1.Append(runProperties1); run1.Append(drawing1); paragraph1.Append(run1); tableCell1.Append(tableCellProperties1); tableCell1.Append(paragraph1); tableRow1.Append(tableRowProperties1); tableRow1.Append(tableCell1); TableRow tableRow2 = new TableRow() { RsidTableRowAddition = "009B2C1D", ParagraphId = "3125C09D", TextId = "77777777" }; TableRowProperties tableRowProperties2 = new TableRowProperties(); GridAfter gridAfter2 = new GridAfter() { Val = 2 }; WidthAfterTableRow widthAfterTableRow2 = new WidthAfterTableRow() { Width = "6375", Type = TableWidthUnitValues.Dxa }; tableRowProperties2.Append(gridAfter2); tableRowProperties2.Append(widthAfterTableRow2); TableCell tableCell2 = new TableCell(); TableCellProperties tableCellProperties2 = new TableCellProperties(); TableCellWidth tableCellWidth2 = new TableCellWidth() { Width = "800", Type = TableWidthUnitValues.Dxa }; TableCellBorders tableCellBorders2 = new TableCellBorders(); TopBorder topBorder3 = new TopBorder() { Val = BorderValues.Single, Color = "FFFFFF", Size = (UInt32Value)0U, Space = (UInt32Value)0U }; LeftBorder leftBorder3 = new LeftBorder() { Val = BorderValues.Single, Color = "FFFFFF", Size = (UInt32Value)0U, Space = (UInt32Value)0U }; BottomBorder bottomBorder3 = new BottomBorder() { Val = BorderValues.Single, Color = "FFFFFF", Size = (UInt32Value)0U, Space = (UInt32Value)0U }; RightBorder rightBorder3 = new RightBorder() { Val = BorderValues.Single, Color = "FFFFFF", Size = (UInt32Value)0U, Space = (UInt32Value)0U }; tableCellBorders2.Append(topBorder3); tableCellBorders2.Append(leftBorder3); tableCellBorders2.Append(bottomBorder3); tableCellBorders2.Append(rightBorder3); tableCellProperties2.Append(tableCellWidth2); tableCellProperties2.Append(tableCellBorders2); Paragraph paragraph2 = new Paragraph() { RsidParagraphAddition = "009B2C1D", RsidRunAdditionDefault = "009B2C1D", ParagraphId = "595BC873", TextId = "77777777" }; tableCell2.Append(tableCellProperties2); tableCell2.Append(paragraph2); tableRow2.Append(tableRowProperties2); tableRow2.Append(tableCell2); TableRow tableRow3 = new TableRow() { RsidTableRowAddition = "009B2C1D", ParagraphId = "13569F8F", TextId = "77777777" }; TableRowProperties tableRowProperties3 = new TableRowProperties(); GridAfter gridAfter3 = new GridAfter() { Val = 2 }; WidthAfterTableRow widthAfterTableRow3 = new WidthAfterTableRow() { Width = "6375", Type = TableWidthUnitValues.Dxa }; tableRowProperties3.Append(gridAfter3); tableRowProperties3.Append(widthAfterTableRow3); TableCell tableCell3 = new TableCell(); TableCellProperties tableCellProperties3 = new TableCellProperties(); TableCellWidth tableCellWidth3 = new TableCellWidth() { Width = "800", Type = TableWidthUnitValues.Dxa }; TableCellBorders tableCellBorders3 = new TableCellBorders(); TopBorder topBorder4 = new TopBorder() { Val = BorderValues.Single, Color = "FFFFFF", Size = (UInt32Value)0U, Space = (UInt32Value)0U }; LeftBorder leftBorder4 = new LeftBorder() { Val = BorderValues.Single, Color = "FFFFFF", Size = (UInt32Value)0U, Space = (UInt32Value)0U }; BottomBorder bottomBorder4 = new BottomBorder() { Val = BorderValues.Single, Color = "FFFFFF", Size = (UInt32Value)0U, Space = (UInt32Value)0U }; RightBorder rightBorder4 = new RightBorder() { Val = BorderValues.Single, Color = "FFFFFF", Size = (UInt32Value)0U, Space = (UInt32Value)0U }; tableCellBorders3.Append(topBorder4); tableCellBorders3.Append(leftBorder4); tableCellBorders3.Append(bottomBorder4); tableCellBorders3.Append(rightBorder4); tableCellProperties3.Append(tableCellWidth3); tableCellProperties3.Append(tableCellBorders3); Paragraph paragraph3 = new Paragraph() { RsidParagraphAddition = "009B2C1D", RsidRunAdditionDefault = "009B2C1D", ParagraphId = "105B22E7", TextId = "77777777" }; tableCell3.Append(tableCellProperties3); tableCell3.Append(paragraph3); tableRow3.Append(tableRowProperties3); tableRow3.Append(tableCell3); TableRow tableRow4 = new TableRow() { RsidTableRowAddition = "009B2C1D", ParagraphId = "0E828CE9", TextId = "77777777" }; TableCell tableCell4 = new TableCell(); TableCellProperties tableCellProperties4 = new TableCellProperties(); TableCellWidth tableCellWidth4 = new TableCellWidth() { Width = "800", Type = TableWidthUnitValues.Dxa }; TableCellBorders tableCellBorders4 = new TableCellBorders(); TopBorder topBorder5 = new TopBorder() { Val = BorderValues.Single, Color = "FFFFFF", Size = (UInt32Value)0U, Space = (UInt32Value)0U }; LeftBorder leftBorder5 = new LeftBorder() { Val = BorderValues.Single, Color = "FFFFFF", Size = (UInt32Value)0U, Space = (UInt32Value)0U }; BottomBorder bottomBorder5 = new BottomBorder() { Val = BorderValues.Single, Color = "FFFFFF", Size = (UInt32Value)0U, Space = (UInt32Value)0U }; RightBorder rightBorder5 = new RightBorder() { Val = BorderValues.Single, Color = "FFFFFF", Size = (UInt32Value)0U, Space = (UInt32Value)0U }; tableCellBorders4.Append(topBorder5); tableCellBorders4.Append(leftBorder5); tableCellBorders4.Append(bottomBorder5); tableCellBorders4.Append(rightBorder5); tableCellProperties4.Append(tableCellWidth4); tableCellProperties4.Append(tableCellBorders4); Paragraph paragraph4 = new Paragraph() { RsidParagraphAddition = "009B2C1D", RsidRunAdditionDefault = "009B2C1D", ParagraphId = "7D33E7CB", TextId = "77777777" }; tableCell4.Append(tableCellProperties4); tableCell4.Append(paragraph4); TableCell tableCell5 = new TableCell(); TableCellProperties tableCellProperties5 = new TableCellProperties(); TableCellWidth tableCellWidth5 = new TableCellWidth() { Width = "2550", Type = TableWidthUnitValues.Dxa }; TableCellBorders tableCellBorders5 = new TableCellBorders(); TopBorder topBorder6 = new TopBorder() { Val = BorderValues.Single, Color = "FFFFFF", Size = (UInt32Value)0U, Space = (UInt32Value)0U }; LeftBorder leftBorder6 = new LeftBorder() { Val = BorderValues.Single, Color = "FFFFFF", Size = (UInt32Value)0U, Space = (UInt32Value)0U }; BottomBorder bottomBorder6 = new BottomBorder() { Val = BorderValues.Single, Color = "FFFFFF", Size = (UInt32Value)0U, Space = (UInt32Value)0U }; RightBorder rightBorder6 = new RightBorder() { Val = BorderValues.Single, Color = "FFFFFF", Size = (UInt32Value)0U, Space = (UInt32Value)0U }; tableCellBorders5.Append(topBorder6); tableCellBorders5.Append(leftBorder6); tableCellBorders5.Append(bottomBorder6); tableCellBorders5.Append(rightBorder6); tableCellProperties5.Append(tableCellWidth5); tableCellProperties5.Append(tableCellBorders5); Paragraph paragraph5 = new Paragraph() { RsidParagraphAddition = "009B2C1D", RsidRunAdditionDefault = "009B2C1D", ParagraphId = "4B505573", TextId = "77777777" }; tableCell5.Append(tableCellProperties5); tableCell5.Append(paragraph5); TableCell tableCell6 = new TableCell(); TableCellProperties tableCellProperties6 = new TableCellProperties(); TableCellWidth tableCellWidth6 = new TableCellWidth() { Width = "3825", Type = TableWidthUnitValues.Dxa }; TableCellBorders tableCellBorders6 = new TableCellBorders(); TopBorder topBorder7 = new TopBorder() { Val = BorderValues.Single, Color = "FFFFFF", Size = (UInt32Value)0U, Space = (UInt32Value)0U }; LeftBorder leftBorder7 = new LeftBorder() { Val = BorderValues.Single, Color = "FFFFFF", Size = (UInt32Value)0U, Space = (UInt32Value)0U }; BottomBorder bottomBorder7 = new BottomBorder() { Val = BorderValues.Single, Color = "FFFFFF", Size = (UInt32Value)0U, Space = (UInt32Value)0U }; RightBorder rightBorder7 = new RightBorder() { Val = BorderValues.Single, Color = "FFFFFF", Size = (UInt32Value)0U, Space = (UInt32Value)0U }; tableCellBorders6.Append(topBorder7); tableCellBorders6.Append(leftBorder7); tableCellBorders6.Append(bottomBorder7); tableCellBorders6.Append(rightBorder7); Shading shading1 = new Shading() { Val = ShadingPatternValues.Clear, Color = "auto", Fill = "0069B4" }; TableCellVerticalAlignment tableCellVerticalAlignment1 = new TableCellVerticalAlignment() { Val = TableVerticalAlignmentValues.Center }; tableCellProperties6.Append(tableCellWidth6); tableCellProperties6.Append(tableCellBorders6); tableCellProperties6.Append(shading1); tableCellProperties6.Append(tableCellVerticalAlignment1); Paragraph paragraph6 = new Paragraph() { RsidParagraphAddition = "009B2C1D", RsidRunAdditionDefault = "009E39C2", ParagraphId = "63EAFC9C", TextId = "77777777" }; ParagraphProperties paragraphProperties1 = new ParagraphProperties(); SpacingBetweenLines spacingBetweenLines1 = new SpacingBetweenLines() { Before = "550", After = "800" }; Indentation indentation1 = new Indentation() { Left = "432" }; paragraphProperties1.Append(spacingBetweenLines1); paragraphProperties1.Append(indentation1); Run run2 = new Run(); RunProperties runProperties2 = new RunProperties(); Color color1 = new Color() { Val = "FFFFFF" }; FontSize fontSize1 = new FontSize() { Val = "18" }; FontSizeComplexScript fontSizeComplexScript1 = new FontSizeComplexScript() { Val = "18" }; runProperties2.Append(color1); runProperties2.Append(fontSize1); runProperties2.Append(fontSizeComplexScript1); Text text1 = new Text(); text1.Text = DocumentMetadataTexts.GetText(MetadataTexts.CV_TITLE, data.Language); run2.Append(runProperties2); run2.Append(text1); paragraph6.Append(paragraphProperties1); paragraph6.Append(run2); Paragraph paragraph7 = new Paragraph() { RsidParagraphAddition = "009B2C1D", RsidRunAdditionDefault = "0007641E", ParagraphId = "48E9D2B9", TextId = "21C16ECD" }; ParagraphProperties paragraphProperties2 = new ParagraphProperties(); SpacingBetweenLines spacingBetweenLines2 = new SpacingBetweenLines() { After = "0" }; Indentation indentation2 = new Indentation() { Left = "432" }; paragraphProperties2.Append(spacingBetweenLines2); paragraphProperties2.Append(indentation2); Run run3 = new Run(); RunProperties runProperties3 = new RunProperties(); Bold bold1 = new Bold(); Color color2 = new Color() { Val = "FFFFFF" }; FontSize fontSize2 = new FontSize() { Val = "33" }; FontSizeComplexScript fontSizeComplexScript2 = new FontSizeComplexScript() { Val = "33" }; runProperties3.Append(bold1); runProperties3.Append(color2); runProperties3.Append(fontSize2); runProperties3.Append(fontSizeComplexScript2); Text text2 = new Text(); text2.Text = data.TitleArea.Name; run3.Append(runProperties3); run3.Append(text2); paragraph7.Append(paragraphProperties2); paragraph7.Append(run3); Paragraph paragraph8 = new Paragraph() { RsidParagraphAddition = "009B2C1D", RsidRunAdditionDefault = "009E39C2", ParagraphId = "4D45EC2E", TextId = "77777777" }; ParagraphProperties paragraphProperties3 = new ParagraphProperties(); SpacingBetweenLines spacingBetweenLines3 = new SpacingBetweenLines() { Before = "800", After = "550", Line = "240", LineRule = LineSpacingRuleValues.Auto }; Indentation indentation3 = new Indentation() { Left = "432" }; paragraphProperties3.Append(spacingBetweenLines3); paragraphProperties3.Append(indentation3); Run run4 = new Run(); RunProperties runProperties4 = new RunProperties(); Color color3 = new Color() { Val = "FFFFFF" }; FontSize fontSize3 = new FontSize() { Val = "18" }; FontSizeComplexScript fontSizeComplexScript3 = new FontSizeComplexScript() { Val = "18" }; runProperties4.Append(color3); runProperties4.Append(fontSize3); runProperties4.Append(fontSizeComplexScript3); Text text3 = new Text(); text3.Text = data.TitleArea.Date; run4.Append(runProperties4); run4.Append(text3); paragraph8.Append(paragraphProperties3); paragraph8.Append(run4); tableCell6.Append(tableCellProperties6); tableCell6.Append(paragraph6); tableCell6.Append(paragraph7); tableCell6.Append(paragraph8); tableRow4.Append(tableCell4); tableRow4.Append(tableCell5); tableRow4.Append(tableCell6); TableRow tableRow5 = new TableRow() { RsidTableRowAddition = "009B2C1D", ParagraphId = "485735CB", TextId = "77777777" }; TableRowProperties tableRowProperties4 = new TableRowProperties(); GridAfter gridAfter4 = new GridAfter() { Val = 2 }; WidthAfterTableRow widthAfterTableRow4 = new WidthAfterTableRow() { Width = "6375", Type = TableWidthUnitValues.Dxa }; tableRowProperties4.Append(gridAfter4); tableRowProperties4.Append(widthAfterTableRow4); TableCell tableCell7 = new TableCell(); TableCellProperties tableCellProperties7 = new TableCellProperties(); TableCellWidth tableCellWidth7 = new TableCellWidth() { Width = "800", Type = TableWidthUnitValues.Dxa }; TableCellBorders tableCellBorders7 = new TableCellBorders(); TopBorder topBorder8 = new TopBorder() { Val = BorderValues.Single, Color = "FFFFFF", Size = (UInt32Value)0U, Space = (UInt32Value)0U }; LeftBorder leftBorder8 = new LeftBorder() { Val = BorderValues.Single, Color = "FFFFFF", Size = (UInt32Value)0U, Space = (UInt32Value)0U }; BottomBorder bottomBorder8 = new BottomBorder() { Val = BorderValues.Single, Color = "FFFFFF", Size = (UInt32Value)0U, Space = (UInt32Value)0U }; RightBorder rightBorder8 = new RightBorder() { Val = BorderValues.Single, Color = "FFFFFF", Size = (UInt32Value)0U, Space = (UInt32Value)0U }; tableCellBorders7.Append(topBorder8); tableCellBorders7.Append(leftBorder8); tableCellBorders7.Append(bottomBorder8); tableCellBorders7.Append(rightBorder8); tableCellProperties7.Append(tableCellWidth7); tableCellProperties7.Append(tableCellBorders7); Paragraph paragraph9 = new Paragraph() { RsidParagraphAddition = "009B2C1D", RsidRunAdditionDefault = "009B2C1D", ParagraphId = "41648536", TextId = "77777777" }; tableCell7.Append(tableCellProperties7); tableCell7.Append(paragraph9); tableRow5.Append(tableRowProperties4); tableRow5.Append(tableCell7); TableRow tableRow6 = new TableRow() { RsidTableRowAddition = "009B2C1D", ParagraphId = "20373438", TextId = "77777777" }; TableRowProperties tableRowProperties5 = new TableRowProperties(); GridAfter gridAfter5 = new GridAfter() { Val = 2 }; WidthAfterTableRow widthAfterTableRow5 = new WidthAfterTableRow() { Width = "6375", Type = TableWidthUnitValues.Dxa }; tableRowProperties5.Append(gridAfter5); tableRowProperties5.Append(widthAfterTableRow5); TableCell tableCell8 = new TableCell(); TableCellProperties tableCellProperties8 = new TableCellProperties(); TableCellWidth tableCellWidth8 = new TableCellWidth() { Width = "800", Type = TableWidthUnitValues.Dxa }; TableCellBorders tableCellBorders8 = new TableCellBorders(); TopBorder topBorder9 = new TopBorder() { Val = BorderValues.Single, Color = "FFFFFF", Size = (UInt32Value)0U, Space = (UInt32Value)0U }; LeftBorder leftBorder9 = new LeftBorder() { Val = BorderValues.Single, Color = "FFFFFF", Size = (UInt32Value)0U, Space = (UInt32Value)0U }; BottomBorder bottomBorder9 = new BottomBorder() { Val = BorderValues.Single, Color = "FFFFFF", Size = (UInt32Value)0U, Space = (UInt32Value)0U }; RightBorder rightBorder9 = new RightBorder() { Val = BorderValues.Single, Color = "FFFFFF", Size = (UInt32Value)0U, Space = (UInt32Value)0U }; tableCellBorders8.Append(topBorder9); tableCellBorders8.Append(leftBorder9); tableCellBorders8.Append(bottomBorder9); tableCellBorders8.Append(rightBorder9); tableCellProperties8.Append(tableCellWidth8); tableCellProperties8.Append(tableCellBorders8); Paragraph paragraph10 = new Paragraph() { RsidParagraphAddition = "009B2C1D", RsidRunAdditionDefault = "009B2C1D", ParagraphId = "54B78A08", TextId = "77777777" }; tableCell8.Append(tableCellProperties8); tableCell8.Append(paragraph10); tableRow6.Append(tableRowProperties5); tableRow6.Append(tableCell8); table1.Append(tableProperties1); table1.Append(tableGrid1); table1.Append(tableRow1); table1.Append(tableRow2); table1.Append(tableRow3); table1.Append(tableRow4); table1.Append(tableRow5); table1.Append(tableRow6); return(table1); }
// Creates an Table instance and adds its children. public static Table GenerateTable(GenerationData data) { Table table1 = new Table(); TableProperties tableProperties1 = new TableProperties(); TableWidth tableWidth1 = new TableWidth() { Width = "0", Type = TableWidthUnitValues.Auto }; TableIndentation tableIndentation1 = new TableIndentation() { Width = 10, Type = TableWidthUnitValues.Dxa }; TableBorders tableBorders1 = new TableBorders(); TopBorder topBorder1 = new TopBorder() { Val = BorderValues.Single, Color = "000000", Size = (UInt32Value)10U, Space = (UInt32Value)0U }; LeftBorder leftBorder1 = new LeftBorder() { Val = BorderValues.Single, Color = "000000", Size = (UInt32Value)10U, Space = (UInt32Value)0U }; BottomBorder bottomBorder1 = new BottomBorder() { Val = BorderValues.Single, Color = "000000", Size = (UInt32Value)10U, Space = (UInt32Value)0U }; RightBorder rightBorder1 = new RightBorder() { Val = BorderValues.Single, Color = "000000", Size = (UInt32Value)10U, Space = (UInt32Value)0U }; InsideHorizontalBorder insideHorizontalBorder1 = new InsideHorizontalBorder() { Val = BorderValues.Single, Color = "000000", Size = (UInt32Value)10U, Space = (UInt32Value)0U }; InsideVerticalBorder insideVerticalBorder1 = new InsideVerticalBorder() { Val = BorderValues.Single, Color = "000000", Size = (UInt32Value)10U, Space = (UInt32Value)0U }; tableBorders1.Append(topBorder1); tableBorders1.Append(leftBorder1); tableBorders1.Append(bottomBorder1); tableBorders1.Append(rightBorder1); tableBorders1.Append(insideHorizontalBorder1); tableBorders1.Append(insideVerticalBorder1); TableCellMarginDefault tableCellMarginDefault1 = new TableCellMarginDefault(); TableCellLeftMargin tableCellLeftMargin1 = new TableCellLeftMargin() { Width = 10, Type = TableWidthValues.Dxa }; TableCellRightMargin tableCellRightMargin1 = new TableCellRightMargin() { Width = 10, Type = TableWidthValues.Dxa }; tableCellMarginDefault1.Append(tableCellLeftMargin1); tableCellMarginDefault1.Append(tableCellRightMargin1); TableLook tableLook1 = new TableLook() { Val = "0000", FirstRow = false, LastRow = false, FirstColumn = false, LastColumn = false, NoHorizontalBand = false, NoVerticalBand = false }; tableProperties1.Append(tableWidth1); tableProperties1.Append(tableIndentation1); tableProperties1.Append(tableBorders1); tableProperties1.Append(tableCellMarginDefault1); tableProperties1.Append(tableLook1); TableGrid tableGrid1 = new TableGrid(); GridColumn gridColumn1 = new GridColumn() { Width = "2550" }; GridColumn gridColumn2 = new GridColumn() { Width = "5700" }; GridColumn gridColumn3 = new GridColumn() { Width = "360" }; tableGrid1.Append(gridColumn1); tableGrid1.Append(gridColumn2); tableGrid1.Append(gridColumn3); TableRow tableRow1 = new TableRow() { RsidTableRowAddition = "009B2C1D", ParagraphId = "5B63C23B", TextId = "77777777" }; TableCell tableCell1 = new TableCell(); TableCellProperties tableCellProperties1 = new TableCellProperties(); TableCellWidth tableCellWidth1 = new TableCellWidth() { Width = "800", Type = TableWidthUnitValues.Dxa }; GridSpan gridSpan1 = new GridSpan() { Val = 3 }; TableCellBorders tableCellBorders1 = new TableCellBorders(); TopBorder topBorder2 = new TopBorder() { Val = BorderValues.Single, Color = "FFFFFF", Size = (UInt32Value)0U, Space = (UInt32Value)0U }; LeftBorder leftBorder2 = new LeftBorder() { Val = BorderValues.Single, Color = "FFFFFF", Size = (UInt32Value)0U, Space = (UInt32Value)0U }; BottomBorder bottomBorder2 = new BottomBorder() { Val = BorderValues.Single, Color = "FFFFFF", Size = (UInt32Value)0U, Space = (UInt32Value)0U }; RightBorder rightBorder2 = new RightBorder() { Val = BorderValues.Single, Color = "FFFFFF", Size = (UInt32Value)0U, Space = (UInt32Value)0U }; tableCellBorders1.Append(topBorder2); tableCellBorders1.Append(leftBorder2); tableCellBorders1.Append(bottomBorder2); tableCellBorders1.Append(rightBorder2); tableCellProperties1.Append(tableCellWidth1); tableCellProperties1.Append(gridSpan1); tableCellProperties1.Append(tableCellBorders1); Paragraph paragraph1 = new Paragraph() { RsidParagraphAddition = "009B2C1D", RsidRunAdditionDefault = "009E39C2", ParagraphId = "459760A7", TextId = "77777777" }; Run run1 = new Run(); RunProperties runProperties1 = new RunProperties(); Bold bold1 = new Bold(); FontSize fontSize1 = new FontSize() { Val = "22" }; FontSizeComplexScript fontSizeComplexScript1 = new FontSizeComplexScript() { Val = "22" }; runProperties1.Append(bold1); runProperties1.Append(fontSize1); runProperties1.Append(fontSizeComplexScript1); Text text1 = new Text(); text1.Text = DocumentMetadataTexts.GetText(MetadataTexts.CV_ADDITIONAL_COURSES, data.Language)?.ToUpper(); run1.Append(runProperties1); run1.Append(text1); Run run2 = new Run(); RunProperties runProperties2 = new RunProperties(); FontSize fontSize2 = new FontSize() { Val = "22" }; FontSizeComplexScript fontSizeComplexScript2 = new FontSizeComplexScript() { Val = "22" }; runProperties2.Append(fontSize2); runProperties2.Append(fontSizeComplexScript2); Text text2 = new Text() { Space = SpaceProcessingModeValues.Preserve }; text2.Text = " "; run2.Append(runProperties2); run2.Append(text2); paragraph1.Append(run1); paragraph1.Append(run2); tableCell1.Append(tableCellProperties1); tableCell1.Append(paragraph1); tableRow1.Append(tableCell1); table1.Append(tableProperties1); table1.Append(tableGrid1); table1.Append(tableRow1); var courses = data.AdditionalCourses; foreach (var course in courses) { TableRow generateRow = CreateAdditionalCourseRow(course, data); table1.Append(generateRow); } return(table1); }
// Creates an Table instance and adds its children. public static Table GenerateTable(GenerationData data) { Table table1 = new Table(); TableProperties tableProperties1 = new TableProperties(); TableWidth tableWidth1 = new TableWidth() { Width = "0", Type = TableWidthUnitValues.Auto }; TableIndentation tableIndentation1 = new TableIndentation() { Width = 10, Type = TableWidthUnitValues.Dxa }; TableBorders tableBorders1 = new TableBorders(); TopBorder topBorder1 = new TopBorder() { Val = BorderValues.Single, Color = "000000", Size = (UInt32Value)10U, Space = (UInt32Value)0U }; LeftBorder leftBorder1 = new LeftBorder() { Val = BorderValues.Single, Color = "000000", Size = (UInt32Value)10U, Space = (UInt32Value)0U }; BottomBorder bottomBorder1 = new BottomBorder() { Val = BorderValues.Single, Color = "000000", Size = (UInt32Value)10U, Space = (UInt32Value)0U }; RightBorder rightBorder1 = new RightBorder() { Val = BorderValues.Single, Color = "000000", Size = (UInt32Value)10U, Space = (UInt32Value)0U }; InsideHorizontalBorder insideHorizontalBorder1 = new InsideHorizontalBorder() { Val = BorderValues.Single, Color = "000000", Size = (UInt32Value)10U, Space = (UInt32Value)0U }; InsideVerticalBorder insideVerticalBorder1 = new InsideVerticalBorder() { Val = BorderValues.Single, Color = "000000", Size = (UInt32Value)10U, Space = (UInt32Value)0U }; tableBorders1.Append(topBorder1); tableBorders1.Append(leftBorder1); tableBorders1.Append(bottomBorder1); tableBorders1.Append(rightBorder1); tableBorders1.Append(insideHorizontalBorder1); tableBorders1.Append(insideVerticalBorder1); TableCellMarginDefault tableCellMarginDefault1 = new TableCellMarginDefault(); TableCellLeftMargin tableCellLeftMargin1 = new TableCellLeftMargin() { Width = 10, Type = TableWidthValues.Dxa }; TableCellRightMargin tableCellRightMargin1 = new TableCellRightMargin() { Width = 10, Type = TableWidthValues.Dxa }; tableCellMarginDefault1.Append(tableCellLeftMargin1); tableCellMarginDefault1.Append(tableCellRightMargin1); TableLook tableLook1 = new TableLook() { Val = "0000", FirstRow = false, LastRow = false, FirstColumn = false, LastColumn = false, NoHorizontalBand = false, NoVerticalBand = false }; tableProperties1.Append(tableWidth1); tableProperties1.Append(tableIndentation1); tableProperties1.Append(tableBorders1); tableProperties1.Append(tableCellMarginDefault1); tableProperties1.Append(tableLook1); TableGrid tableGrid1 = new TableGrid(); GridColumn gridColumn1 = new GridColumn() { Width = "7770" }; GridColumn gridColumn2 = new GridColumn() { Width = "1161" }; tableGrid1.Append(gridColumn1); tableGrid1.Append(gridColumn2); TableRow tableRow1 = new TableRow() { RsidTableRowAddition = "009B2C1D", RsidTableRowProperties = "009E39C2", ParagraphId = "168B729F", TextId = "77777777" }; TableRowProperties tableRowProperties1 = new TableRowProperties(); GridAfter gridAfter1 = new GridAfter() { Val = 1 }; WidthAfterTableRow widthAfterTableRow1 = new WidthAfterTableRow() { Width = "1161", Type = TableWidthUnitValues.Dxa }; tableRowProperties1.Append(gridAfter1); tableRowProperties1.Append(widthAfterTableRow1); TableCell tableCell1 = new TableCell(); TableCellProperties tableCellProperties1 = new TableCellProperties(); TableCellWidth tableCellWidth1 = new TableCellWidth() { Width = "7770", Type = TableWidthUnitValues.Dxa }; TableCellBorders tableCellBorders1 = new TableCellBorders(); TopBorder topBorder2 = new TopBorder() { Val = BorderValues.Single, Color = "FFFFFF", Size = (UInt32Value)0U, Space = (UInt32Value)0U }; LeftBorder leftBorder2 = new LeftBorder() { Val = BorderValues.Single, Color = "FFFFFF", Size = (UInt32Value)0U, Space = (UInt32Value)0U }; BottomBorder bottomBorder2 = new BottomBorder() { Val = BorderValues.Single, Color = "FFFFFF", Size = (UInt32Value)0U, Space = (UInt32Value)0U }; RightBorder rightBorder2 = new RightBorder() { Val = BorderValues.Single, Color = "FFFFFF", Size = (UInt32Value)0U, Space = (UInt32Value)0U }; tableCellBorders1.Append(topBorder2); tableCellBorders1.Append(leftBorder2); tableCellBorders1.Append(bottomBorder2); tableCellBorders1.Append(rightBorder2); tableCellProperties1.Append(tableCellWidth1); tableCellProperties1.Append(tableCellBorders1); Paragraph paragraph1 = new Paragraph() { RsidParagraphAddition = "009B2C1D", RsidRunAdditionDefault = "009E39C2", ParagraphId = "255059A2", TextId = "77777777" }; Run run1 = new Run(); RunProperties runProperties1 = new RunProperties(); Bold bold1 = new Bold(); FontSize fontSize1 = new FontSize() { Val = "22" }; FontSizeComplexScript fontSizeComplexScript1 = new FontSizeComplexScript() { Val = "22" }; runProperties1.Append(bold1); runProperties1.Append(fontSize1); runProperties1.Append(fontSizeComplexScript1); Text text1 = new Text(); text1.Text = DocumentMetadataTexts.GetText(MetadataTexts.CV_ADDITIONAL_COMMENTS, data.Language)?.ToUpper(); run1.Append(runProperties1); run1.Append(text1); Run run2 = new Run(); RunProperties runProperties2 = new RunProperties(); FontSize fontSize2 = new FontSize() { Val = "22" }; FontSizeComplexScript fontSizeComplexScript2 = new FontSizeComplexScript() { Val = "22" }; runProperties2.Append(fontSize2); runProperties2.Append(fontSizeComplexScript2); Text text2 = new Text() { Space = SpaceProcessingModeValues.Preserve }; text2.Text = " "; run2.Append(runProperties2); run2.Append(text2); paragraph1.Append(run1); paragraph1.Append(run2); tableCell1.Append(tableCellProperties1); tableCell1.Append(paragraph1); tableRow1.Append(tableRowProperties1); tableRow1.Append(tableCell1); TableRow tableRow2 = new TableRow() { RsidTableRowAddition = "009B2C1D", RsidTableRowProperties = "009E39C2", ParagraphId = "0082F7BF", TextId = "77777777" }; TableCell tableCell2 = new TableCell(); TableCellProperties tableCellProperties2 = new TableCellProperties(); TableCellWidth tableCellWidth2 = new TableCellWidth() { Width = "8931", Type = TableWidthUnitValues.Dxa }; GridSpan gridSpan1 = new GridSpan() { Val = 2 }; TableCellBorders tableCellBorders2 = new TableCellBorders(); TopBorder topBorder3 = new TopBorder() { Val = BorderValues.Single, Color = "FFFFFF", Size = (UInt32Value)0U, Space = (UInt32Value)0U }; LeftBorder leftBorder3 = new LeftBorder() { Val = BorderValues.Single, Color = "FFFFFF", Size = (UInt32Value)0U, Space = (UInt32Value)0U }; BottomBorder bottomBorder3 = new BottomBorder() { Val = BorderValues.Single, Color = "FFFFFF", Size = (UInt32Value)0U, Space = (UInt32Value)0U }; RightBorder rightBorder3 = new RightBorder() { Val = BorderValues.Single, Color = "FFFFFF", Size = (UInt32Value)0U, Space = (UInt32Value)0U }; tableCellBorders2.Append(topBorder3); tableCellBorders2.Append(leftBorder3); tableCellBorders2.Append(bottomBorder3); tableCellBorders2.Append(rightBorder3); tableCellProperties2.Append(tableCellWidth2); tableCellProperties2.Append(gridSpan1); tableCellProperties2.Append(tableCellBorders2); Paragraph paragraph2 = new Paragraph() { RsidParagraphAddition = "009E39C2", RsidParagraphProperties = "009E39C2", RsidRunAdditionDefault = "009E39C2", ParagraphId = "68D140B4", TextId = "77777777" }; ParagraphProperties paragraphProperties1 = new ParagraphProperties(); ParagraphMarkRunProperties paragraphMarkRunProperties1 = new ParagraphMarkRunProperties(); FontSize fontSize3 = new FontSize() { Val = "22" }; FontSizeComplexScript fontSizeComplexScript3 = new FontSizeComplexScript() { Val = "22" }; paragraphMarkRunProperties1.Append(fontSize3); paragraphMarkRunProperties1.Append(fontSizeComplexScript3); paragraphProperties1.Append(paragraphMarkRunProperties1); Run run3 = new Run(); RunProperties runProperties3 = new RunProperties(); FontSize fontSize4 = new FontSize() { Val = "22" }; FontSizeComplexScript fontSizeComplexScript4 = new FontSizeComplexScript() { Val = "22" }; runProperties3.Append(fontSize4); runProperties3.Append(fontSizeComplexScript4); Text text3 = new Text(); text3.Text = data.AdditionalComments; run3.Append(runProperties3); run3.Append(text3); paragraph2.Append(paragraphProperties1); paragraph2.Append(run3); Paragraph paragraph4 = new Paragraph() { RsidParagraphAddition = "009B2C1D", RsidParagraphProperties = "009E39C2", RsidRunAdditionDefault = "009E39C2", ParagraphId = "19FFAC55", TextId = "07256EAB" }; ParagraphProperties paragraphProperties3 = new ParagraphProperties(); Indentation indentation2 = new Indentation() { Left = "128", Hanging = "128" }; paragraphProperties3.Append(indentation2); Run run5 = new Run(); RunProperties runProperties5 = new RunProperties(); FontSize fontSize7 = new FontSize() { Val = "22" }; FontSizeComplexScript fontSizeComplexScript7 = new FontSizeComplexScript() { Val = "22" }; runProperties5.Append(fontSize7); runProperties5.Append(fontSizeComplexScript7); Text text5 = new Text() { Space = SpaceProcessingModeValues.Preserve }; text5.Text = " "; run5.Append(runProperties5); run5.Append(text5); paragraph4.Append(paragraphProperties3); paragraph4.Append(run5); tableCell2.Append(tableCellProperties2); tableCell2.Append(paragraph2); tableCell2.Append(paragraph4); tableRow2.Append(tableCell2); table1.Append(tableProperties1); table1.Append(tableGrid1); table1.Append(tableRow1); table1.Append(tableRow2); return(table1); }
public static void GenerateFooterPart1Content(FooterPart footerPart1, GenerationData data) { var footer1 = new Footer { MCAttributes = new MarkupCompatibilityAttributes { Ignorable = "w14 w15 w16se w16cid wp14" } }; footer1.AddNamespaceDeclaration("wpc", "http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas"); footer1.AddNamespaceDeclaration("cx", "http://schemas.microsoft.com/office/drawing/2014/chartex"); footer1.AddNamespaceDeclaration("cx1", "http://schemas.microsoft.com/office/drawing/2015/9/8/chartex"); footer1.AddNamespaceDeclaration("cx2", "http://schemas.microsoft.com/office/drawing/2015/10/21/chartex"); footer1.AddNamespaceDeclaration("cx3", "http://schemas.microsoft.com/office/drawing/2016/5/9/chartex"); footer1.AddNamespaceDeclaration("cx4", "http://schemas.microsoft.com/office/drawing/2016/5/10/chartex"); footer1.AddNamespaceDeclaration("cx5", "http://schemas.microsoft.com/office/drawing/2016/5/11/chartex"); footer1.AddNamespaceDeclaration("cx6", "http://schemas.microsoft.com/office/drawing/2016/5/12/chartex"); footer1.AddNamespaceDeclaration("cx7", "http://schemas.microsoft.com/office/drawing/2016/5/13/chartex"); footer1.AddNamespaceDeclaration("cx8", "http://schemas.microsoft.com/office/drawing/2016/5/14/chartex"); footer1.AddNamespaceDeclaration("mc", "http://schemas.openxmlformats.org/markup-compatibility/2006"); footer1.AddNamespaceDeclaration("aink", "http://schemas.microsoft.com/office/drawing/2016/ink"); footer1.AddNamespaceDeclaration("am3d", "http://schemas.microsoft.com/office/drawing/2017/model3d"); footer1.AddNamespaceDeclaration("o", "urn:schemas-microsoft-com:office:office"); footer1.AddNamespaceDeclaration("r", "http://schemas.openxmlformats.org/officeDocument/2006/relationships"); footer1.AddNamespaceDeclaration("m", "http://schemas.openxmlformats.org/officeDocument/2006/math"); footer1.AddNamespaceDeclaration("v", "urn:schemas-microsoft-com:vml"); footer1.AddNamespaceDeclaration("wp14", "http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing"); footer1.AddNamespaceDeclaration("wp", "http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing"); footer1.AddNamespaceDeclaration("w10", "urn:schemas-microsoft-com:office:word"); footer1.AddNamespaceDeclaration("w", "http://schemas.openxmlformats.org/wordprocessingml/2006/main"); footer1.AddNamespaceDeclaration("w14", "http://schemas.microsoft.com/office/word/2010/wordml"); footer1.AddNamespaceDeclaration("w15", "http://schemas.microsoft.com/office/word/2012/wordml"); footer1.AddNamespaceDeclaration("w16cid", "http://schemas.microsoft.com/office/word/2016/wordml/cid"); footer1.AddNamespaceDeclaration("w16se", "http://schemas.microsoft.com/office/word/2015/wordml/symex"); footer1.AddNamespaceDeclaration("wpg", "http://schemas.microsoft.com/office/word/2010/wordprocessingGroup"); footer1.AddNamespaceDeclaration("wpi", "http://schemas.microsoft.com/office/word/2010/wordprocessingInk"); footer1.AddNamespaceDeclaration("wne", "http://schemas.microsoft.com/office/word/2006/wordml"); footer1.AddNamespaceDeclaration("wps", "http://schemas.microsoft.com/office/word/2010/wordprocessingShape"); var paragraph273 = new Paragraph { RsidParagraphAddition = "009B2C1D", RsidRunAdditionDefault = "009E39C2", ParagraphId = "71F3416E", TextId = "77777777" }; var paragraphProperties176 = new ParagraphProperties(); var paragraphStyleId1 = new ParagraphStyleId { Val = "leftRight" }; paragraphProperties176.Append(paragraphStyleId1); var run396 = new Run(); var text366 = new Text { Text = DocumentMetadataTexts.GetText(MetadataTexts.CV_TITLE, data.Language) }; run396.Append(text366); var run397 = new Run(); var tabChar1 = new TabChar(); run397.Append(tabChar1); var run398 = new Run(); var fieldChar1 = new FieldChar { FieldCharType = FieldCharValues.Begin }; run398.Append(fieldChar1); var run399 = new Run(); var fieldCode1 = new FieldCode { Text = "PAGE" }; run399.Append(fieldCode1); var run400 = new Run(); var fieldChar2 = new FieldChar { FieldCharType = FieldCharValues.Separate }; run400.Append(fieldChar2); var run401 = new Run(); var runProperties394 = new RunProperties(); var noProof30 = new NoProof(); runProperties394.Append(noProof30); var text367 = new Text { Text = "2" }; run401.Append(runProperties394); run401.Append(text367); var run402 = new Run(); var fieldChar3 = new FieldChar { FieldCharType = FieldCharValues.End }; run402.Append(fieldChar3); paragraph273.Append(paragraphProperties176); paragraph273.Append(run396); paragraph273.Append(run397); paragraph273.Append(run398); paragraph273.Append(run399); paragraph273.Append(run400); paragraph273.Append(run401); paragraph273.Append(run402); footer1.Append(paragraph273); footerPart1.Footer = footer1; }
private GenerationData DataFromProfile(Profile profile, string language) { var documentProperties = new DocumentProperties { Creator = "Agnese Zanriba", Category = "", Keywords = "", Subject = "", Description = "", Title = "" }; var titleArea = new TitleArea { Date = GetCurrentDate(language), Name = profile.FullName, Title = DocumentMetadataTexts.GetText(MetadataTexts.CV_TITLE, language), Project = profile.Project }; var personal = new PersonalInformation { FullName = profile.FullName, Mobile = profile.PhoneCode + profile.Phone, Email = profile.Email, Address = profile.Address, OtherInformation = profile.OtherInformation, LinkedIn = profile.LinkedInLink, ProfilePictureContent = profile.PictureContent, ProfilePictureType = profile.PictureType }; List <Generation.Word.EducationItem> education = new List <Generation.Word.EducationItem>(); if (profile.Educations != null) { var educationList = profile.Educations.ToList(); if (educationList != null && educationList.Count > 0) { education = educationList.OrderEducation().Select(x => new Generation.Word.EducationItem { Degree = x.Degree, EndingYear = x.ToYear, StartingYear = x.FromYear, University = x.Institution }).ToList(); } } List <AdditionalCoursesItem> courses = new List <AdditionalCoursesItem>(); if (profile.AdditionalCourses != null) { var coursList = profile.AdditionalCourses.ToList(); if (coursList != null && coursList.Count > 0) { courses = coursList.OrderAdditionalCourse().Select(x => new AdditionalCoursesItem { AmountOfDays = x.NumberOfDays, CourseName = x.CourseName, Instructor = x.Trainer, Year = x.Year ?? null }).ToList(); } } List <Generation.Word.LanguageItem> languages = new List <Generation.Word.LanguageItem>(); if (profile.Languages != null && profile.Languages.Count > 0) { languages = profile.Languages.Select(x => new Generation.Word.LanguageItem { LanguageName = x.LanguageName.HasValue ? x.LanguageName.ToString() : string.Empty, OtherLanguageName = x.OtherLanguage, SpokenLevel = x.SpokenLevel.HasValue ? ((int)x.SpokenLevel.Value) + 1 : 0, WrittenLevel = x.WrittenLevel.HasValue ? ((int)x.WrittenLevel.Value) + 1 : 0 }).ToList(); } List <CareerSummaryItem> careerSummary = new List <CareerSummaryItem>(); if (profile.Companies != null) { var careerSummaryList = profile.Companies.ToList(); if (careerSummaryList != null && careerSummaryList.Count > 0) { careerSummary = careerSummaryList.OrderCompanies().Select(x => new CareerSummaryItem { City = x.City, Industry = x.Industry.HasValue ? (x.Industry.Value .GetType() .GetMember(x.Industry.Value.ToString()) .First() .GetCustomAttributes(typeof(DisplayAttribute), false) .First() as DisplayAttribute).Name : x.OtherIndustry, Company = x.Name, NumberOfEmployees = x.NumberOfEmployess, Services = x.MainProductions, ParentCompany = x.ParentCompanyName, Turnover = x.Turnover, Roles = x.Positions.Select(y => new RoleInformation { Achievements = y.Achievements, EndingYear = y.ToTime, Now = y.Now, ReasonForLeaving = y.ReasonForLeaving, ReportingTo = y.ReportingTo, Role = y.Name, StartingYear = y.FromTime, Subordinates = y.DirectSubordinates, Tasks = y.KeyTasks.Select(z => z.Name).ToList() }).ToList() }).ToList(); } } List <SocialActivity> activities = new List <SocialActivity>(); if (profile.Memberships != null) { var activityList = profile.Memberships.ToList(); if (activityList != null && activityList.Count > 0) { activities = activityList.OrderMembership().Select(x => new SocialActivity { StartingYear = x.FromTime, EndingYear = x.ToTime, Description = x.Description }).ToList(); } } var compensation = new CompensationItem { AdditionalBonuses = profile.AdditionalBonuses, BonusRequest = profile.BonusRequest, CurrentBonuses = profile.CurrentBonuses, CurrentSalary = profile.CurrentSalary, SalaryRequest = profile.SalaryRequest }; return(new GenerationData { DocumentProperties = documentProperties, TitleArea = titleArea, Personal = personal, Education = education, AdditionalCourses = courses, Languages = languages, CareerSummary = careerSummary, SocialActivites = activities, Compensation = compensation, TransitionTime = profile.NoticePeriod, AdditionalComments = profile.Comments, Language = language }); }
// Creates an Table instance and adds its children. public static Table GenerateTable(GenerationData data) { Table table1 = new Table(); TableProperties tableProperties1 = new TableProperties(); TableWidth tableWidth1 = new TableWidth() { Width = "0", Type = TableWidthUnitValues.Auto }; TableIndentation tableIndentation1 = new TableIndentation() { Width = 10, Type = TableWidthUnitValues.Dxa }; TableBorders tableBorders1 = new TableBorders(); TopBorder topBorder1 = new TopBorder() { Val = BorderValues.Single, Color = "000000", Size = (UInt32Value)10U, Space = (UInt32Value)0U }; LeftBorder leftBorder1 = new LeftBorder() { Val = BorderValues.Single, Color = "000000", Size = (UInt32Value)10U, Space = (UInt32Value)0U }; BottomBorder bottomBorder1 = new BottomBorder() { Val = BorderValues.Single, Color = "000000", Size = (UInt32Value)10U, Space = (UInt32Value)0U }; RightBorder rightBorder1 = new RightBorder() { Val = BorderValues.Single, Color = "000000", Size = (UInt32Value)10U, Space = (UInt32Value)0U }; InsideHorizontalBorder insideHorizontalBorder1 = new InsideHorizontalBorder() { Val = BorderValues.Single, Color = "000000", Size = (UInt32Value)10U, Space = (UInt32Value)0U }; InsideVerticalBorder insideVerticalBorder1 = new InsideVerticalBorder() { Val = BorderValues.Single, Color = "000000", Size = (UInt32Value)10U, Space = (UInt32Value)0U }; tableBorders1.Append(topBorder1); tableBorders1.Append(leftBorder1); tableBorders1.Append(bottomBorder1); tableBorders1.Append(rightBorder1); tableBorders1.Append(insideHorizontalBorder1); tableBorders1.Append(insideVerticalBorder1); TableCellMarginDefault tableCellMarginDefault1 = new TableCellMarginDefault(); TableCellLeftMargin tableCellLeftMargin1 = new TableCellLeftMargin() { Width = 10, Type = TableWidthValues.Dxa }; TableCellRightMargin tableCellRightMargin1 = new TableCellRightMargin() { Width = 10, Type = TableWidthValues.Dxa }; tableCellMarginDefault1.Append(tableCellLeftMargin1); tableCellMarginDefault1.Append(tableCellRightMargin1); TableLook tableLook1 = new TableLook() { Val = "0000", FirstRow = false, LastRow = false, FirstColumn = false, LastColumn = false, NoHorizontalBand = false, NoVerticalBand = false }; tableProperties1.Append(tableWidth1); tableProperties1.Append(tableIndentation1); tableProperties1.Append(tableBorders1); tableProperties1.Append(tableCellMarginDefault1); tableProperties1.Append(tableLook1); TableGrid tableGrid1 = new TableGrid(); GridColumn gridColumn1 = new GridColumn() { Width = "2552" }; GridColumn gridColumn2 = new GridColumn() { Width = "509" }; GridColumn gridColumn3 = new GridColumn() { Width = "5870" }; tableGrid1.Append(gridColumn1); tableGrid1.Append(gridColumn2); tableGrid1.Append(gridColumn3); TableRow tableRow1 = new TableRow() { RsidTableRowAddition = "009B2C1D", RsidTableRowProperties = "009E39C2", ParagraphId = "45B11039", TextId = "77777777" }; TableRowProperties tableRowProperties1 = new TableRowProperties(); GridAfter gridAfter1 = new GridAfter() { Val = 1 }; WidthAfterTableRow widthAfterTableRow1 = new WidthAfterTableRow() { Width = "5870", Type = TableWidthUnitValues.Dxa }; tableRowProperties1.Append(gridAfter1); tableRowProperties1.Append(widthAfterTableRow1); TableCell tableCell1 = new TableCell(); TableCellProperties tableCellProperties1 = new TableCellProperties(); TableCellWidth tableCellWidth1 = new TableCellWidth() { Width = "3061", Type = TableWidthUnitValues.Dxa }; GridSpan gridSpan1 = new GridSpan() { Val = 2 }; TableCellBorders tableCellBorders1 = new TableCellBorders(); TopBorder topBorder2 = new TopBorder() { Val = BorderValues.Single, Color = "FFFFFF", Size = (UInt32Value)0U, Space = (UInt32Value)0U }; LeftBorder leftBorder2 = new LeftBorder() { Val = BorderValues.Single, Color = "FFFFFF", Size = (UInt32Value)0U, Space = (UInt32Value)0U }; BottomBorder bottomBorder2 = new BottomBorder() { Val = BorderValues.Single, Color = "FFFFFF", Size = (UInt32Value)0U, Space = (UInt32Value)0U }; RightBorder rightBorder2 = new RightBorder() { Val = BorderValues.Single, Color = "FFFFFF", Size = (UInt32Value)0U, Space = (UInt32Value)0U }; tableCellBorders1.Append(topBorder2); tableCellBorders1.Append(leftBorder2); tableCellBorders1.Append(bottomBorder2); tableCellBorders1.Append(rightBorder2); tableCellProperties1.Append(tableCellWidth1); tableCellProperties1.Append(gridSpan1); tableCellProperties1.Append(tableCellBorders1); Paragraph paragraph1 = new Paragraph() { RsidParagraphAddition = "009B2C1D", RsidRunAdditionDefault = "009E39C2", ParagraphId = "50E393FC", TextId = "77777777" }; Run run1 = new Run(); RunProperties runProperties1 = new RunProperties(); Bold bold1 = new Bold(); FontSize fontSize1 = new FontSize() { Val = "22" }; FontSizeComplexScript fontSizeComplexScript1 = new FontSizeComplexScript() { Val = "22" }; runProperties1.Append(bold1); runProperties1.Append(fontSize1); runProperties1.Append(fontSizeComplexScript1); Text text1 = new Text(); text1.Text = DocumentMetadataTexts.GetText(MetadataTexts.CV_COMPENSATION, data.Language)?.ToUpper(); run1.Append(runProperties1); run1.Append(text1); paragraph1.Append(run1); tableCell1.Append(tableCellProperties1); tableCell1.Append(paragraph1); tableRow1.Append(tableRowProperties1); tableRow1.Append(tableCell1); table1.Append(tableProperties1); table1.Append(tableGrid1); table1.Append(tableRow1); if (!string.IsNullOrEmpty(data.Compensation.CurrentSalary)) { table1.Append(CreateItemRow(DocumentMetadataTexts.GetText(MetadataTexts.CV_COMPENSATION_CURRENT_SALARY, data.Language), data.Compensation.CurrentSalary)); } if (!string.IsNullOrEmpty(data.Compensation.CurrentBonuses)) { table1.Append(CreateItemRow(DocumentMetadataTexts.GetText(MetadataTexts.CV_COMPENSATION_CURRENT_BONUSES, data.Language), data.Compensation.CurrentBonuses)); } if (!string.IsNullOrEmpty(data.Compensation.SalaryRequest)) { table1.Append(CreateItemRow(DocumentMetadataTexts.GetText(MetadataTexts.CV_COMPENSATION_REQUESTED_SALARY, data.Language), data.Compensation.SalaryRequest)); } if (!string.IsNullOrEmpty(data.Compensation.BonusRequest)) { table1.Append(CreateItemRow(DocumentMetadataTexts.GetText(MetadataTexts.CV_COMPENSATION_REQUESTED_BONUSES, data.Language), data.Compensation.BonusRequest)); } if (!string.IsNullOrEmpty(data.Compensation.AdditionalBonuses)) { table1.Append(CreateItemRow(DocumentMetadataTexts.GetText(MetadataTexts.CV_COMPENSATION_ADDITIONAL_BONUSES, data.Language), data.Compensation.AdditionalBonuses)); } return(table1); }
// Creates an Table instance and adds its children. public static Table GenerateTable(GenerationData data) { Table table1 = new Table(); TableProperties tableProperties1 = new TableProperties(); TableWidth tableWidth1 = new TableWidth() { Width = "0", Type = TableWidthUnitValues.Auto }; TableIndentation tableIndentation1 = new TableIndentation() { Width = 10, Type = TableWidthUnitValues.Dxa }; TableBorders tableBorders1 = new TableBorders(); TopBorder topBorder1 = new TopBorder() { Val = BorderValues.Single, Color = "000000", Size = (UInt32Value)10U, Space = (UInt32Value)0U }; LeftBorder leftBorder1 = new LeftBorder() { Val = BorderValues.Single, Color = "000000", Size = (UInt32Value)10U, Space = (UInt32Value)0U }; BottomBorder bottomBorder1 = new BottomBorder() { Val = BorderValues.Single, Color = "000000", Size = (UInt32Value)10U, Space = (UInt32Value)0U }; RightBorder rightBorder1 = new RightBorder() { Val = BorderValues.Single, Color = "000000", Size = (UInt32Value)10U, Space = (UInt32Value)0U }; InsideHorizontalBorder insideHorizontalBorder1 = new InsideHorizontalBorder() { Val = BorderValues.Single, Color = "000000", Size = (UInt32Value)10U, Space = (UInt32Value)0U }; InsideVerticalBorder insideVerticalBorder1 = new InsideVerticalBorder() { Val = BorderValues.Single, Color = "000000", Size = (UInt32Value)10U, Space = (UInt32Value)0U }; tableBorders1.Append(topBorder1); tableBorders1.Append(leftBorder1); tableBorders1.Append(bottomBorder1); tableBorders1.Append(rightBorder1); tableBorders1.Append(insideHorizontalBorder1); tableBorders1.Append(insideVerticalBorder1); TableCellMarginDefault tableCellMarginDefault1 = new TableCellMarginDefault(); TableCellLeftMargin tableCellLeftMargin1 = new TableCellLeftMargin() { Width = 10, Type = TableWidthValues.Dxa }; TableCellRightMargin tableCellRightMargin1 = new TableCellRightMargin() { Width = 10, Type = TableWidthValues.Dxa }; tableCellMarginDefault1.Append(tableCellLeftMargin1); tableCellMarginDefault1.Append(tableCellRightMargin1); TableLook tableLook1 = new TableLook() { Val = "0000", FirstRow = false, LastRow = false, FirstColumn = false, LastColumn = false, NoHorizontalBand = false, NoVerticalBand = false }; tableProperties1.Append(tableWidth1); tableProperties1.Append(tableIndentation1); tableProperties1.Append(tableBorders1); tableProperties1.Append(tableCellMarginDefault1); tableProperties1.Append(tableLook1); TableGrid tableGrid1 = new TableGrid(); GridColumn gridColumn1 = new GridColumn() { Width = "8980" }; tableGrid1.Append(gridColumn1); TableRow tableRow1 = new TableRow() { RsidTableRowAddition = "009B2C1D", ParagraphId = "34C34FBB", TextId = "77777777" }; TableCell tableCell1 = new TableCell(); TableCellProperties tableCellProperties1 = new TableCellProperties(); TableCellWidth tableCellWidth1 = new TableCellWidth() { Width = "15000", Type = TableWidthUnitValues.Dxa }; TableCellBorders tableCellBorders1 = new TableCellBorders(); TopBorder topBorder2 = new TopBorder() { Val = BorderValues.Single, Color = "FFFFFF", Size = (UInt32Value)0U, Space = (UInt32Value)0U }; LeftBorder leftBorder2 = new LeftBorder() { Val = BorderValues.Single, Color = "FFFFFF", Size = (UInt32Value)0U, Space = (UInt32Value)0U }; BottomBorder bottomBorder2 = new BottomBorder() { Val = BorderValues.Single, Color = "FFFFFF", Size = (UInt32Value)0U, Space = (UInt32Value)0U }; RightBorder rightBorder2 = new RightBorder() { Val = BorderValues.Single, Color = "FFFFFF", Size = (UInt32Value)0U, Space = (UInt32Value)0U }; tableCellBorders1.Append(topBorder2); tableCellBorders1.Append(leftBorder2); tableCellBorders1.Append(bottomBorder2); tableCellBorders1.Append(rightBorder2); tableCellProperties1.Append(tableCellWidth1); tableCellProperties1.Append(tableCellBorders1); Paragraph paragraph1 = new Paragraph() { RsidParagraphAddition = "009B2C1D", RsidRunAdditionDefault = "009B2C1D", ParagraphId = "6C4075DB", TextId = "77777777" }; ParagraphProperties paragraphProperties1 = new ParagraphProperties(); SpacingBetweenLines spacingBetweenLines1 = new SpacingBetweenLines() { Before = "1000" }; Justification justification1 = new Justification() { Val = JustificationValues.Center }; paragraphProperties1.Append(spacingBetweenLines1); paragraphProperties1.Append(justification1); paragraph1.Append(paragraphProperties1); Paragraph paragraph2 = new Paragraph() { RsidParagraphAddition = "009B2C1D", RsidRunAdditionDefault = "009B2C1D", ParagraphId = "7FF63C21", TextId = "77777777" }; Paragraph paragraph3 = new Paragraph() { RsidParagraphMarkRevision = "00BE3F16", RsidParagraphAddition = "009E39C2", RsidParagraphProperties = "009E39C2", RsidRunAdditionDefault = "0007641E", ParagraphId = "0937AE70", TextId = "42846C98" }; ParagraphProperties paragraphProperties2 = new ParagraphProperties(); SpacingBetweenLines spacingBetweenLines2 = new SpacingBetweenLines() { Before = "1000" }; Justification justification2 = new Justification() { Val = JustificationValues.Center }; ParagraphMarkRunProperties paragraphMarkRunProperties1 = new ParagraphMarkRunProperties(); Bold bold1 = new Bold(); FontSize fontSize1 = new FontSize() { Val = "28" }; paragraphMarkRunProperties1.Append(bold1); paragraphMarkRunProperties1.Append(fontSize1); paragraphProperties2.Append(spacingBetweenLines2); paragraphProperties2.Append(justification2); paragraphProperties2.Append(paragraphMarkRunProperties1); Run run1 = new Run(); RunProperties runProperties1 = new RunProperties(); Bold bold2 = new Bold(); FontSize fontSize2 = new FontSize() { Val = "28" }; runProperties1.Append(bold2); runProperties1.Append(fontSize2); Text text1 = new Text(); text1.Text = data.TitleArea.Project; run1.Append(runProperties1); run1.Append(text1); paragraph3.Append(paragraphProperties2); paragraph3.Append(run1); Paragraph paragraph4 = new Paragraph() { RsidParagraphAddition = "009B2C1D", RsidRunAdditionDefault = "009E39C2", ParagraphId = "01FC911A", TextId = "77777777" }; Run run3 = new Run(); RunProperties runProperties3 = new RunProperties(); FontSize fontSize4 = new FontSize() { Val = "22" }; FontSizeComplexScript fontSizeComplexScript1 = new FontSizeComplexScript() { Val = "22" }; runProperties3.Append(fontSize4); runProperties3.Append(fontSizeComplexScript1); Text text3 = new Text() { Space = SpaceProcessingModeValues.Preserve }; text3.Text = " "; run3.Append(runProperties3); run3.Append(text3); paragraph4.Append(run3); Paragraph paragraph5 = new Paragraph() { RsidParagraphAddition = "009B2C1D", RsidRunAdditionDefault = "009E39C2", ParagraphId = "51573CC7", TextId = "77777777" }; Run run4 = new Run(); RunProperties runProperties4 = new RunProperties(); FontSize fontSize5 = new FontSize() { Val = "22" }; FontSizeComplexScript fontSizeComplexScript2 = new FontSizeComplexScript() { Val = "22" }; runProperties4.Append(fontSize5); runProperties4.Append(fontSizeComplexScript2); Text text4 = new Text() { Space = SpaceProcessingModeValues.Preserve }; text4.Text = " "; run4.Append(runProperties4); run4.Append(text4); paragraph5.Append(run4); Paragraph paragraph6 = new Paragraph() { RsidParagraphAddition = "009B2C1D", RsidRunAdditionDefault = "009E39C2", ParagraphId = "1AC39030", TextId = "77777777" }; Run run5 = new Run(); RunProperties runProperties5 = new RunProperties(); FontSize fontSize6 = new FontSize() { Val = "22" }; FontSizeComplexScript fontSizeComplexScript3 = new FontSizeComplexScript() { Val = "22" }; runProperties5.Append(fontSize6); runProperties5.Append(fontSizeComplexScript3); Text text5 = new Text() { Space = SpaceProcessingModeValues.Preserve }; text5.Text = " "; run5.Append(runProperties5); run5.Append(text5); paragraph6.Append(run5); Paragraph paragraph7 = new Paragraph() { RsidParagraphAddition = "009B2C1D", RsidRunAdditionDefault = "009E39C2", ParagraphId = "5B7F4F83", TextId = "77777777" }; Run run6 = new Run(); RunProperties runProperties6 = new RunProperties(); FontSize fontSize7 = new FontSize() { Val = "22" }; FontSizeComplexScript fontSizeComplexScript4 = new FontSizeComplexScript() { Val = "22" }; runProperties6.Append(fontSize7); runProperties6.Append(fontSizeComplexScript4); Text text6 = new Text() { Space = SpaceProcessingModeValues.Preserve }; text6.Text = " "; run6.Append(runProperties6); run6.Append(text6); paragraph7.Append(run6); Paragraph paragraph8 = new Paragraph() { RsidParagraphAddition = "009B2C1D", RsidRunAdditionDefault = "009E39C2", ParagraphId = "3E1A38C5", TextId = "77777777" }; ParagraphProperties paragraphProperties3 = new ParagraphProperties(); SpacingBetweenLines spacingBetweenLines3 = new SpacingBetweenLines() { After = "195", Line = "240", LineRule = LineSpacingRuleValues.Auto }; paragraphProperties3.Append(spacingBetweenLines3); Run run7 = new Run(); RunProperties runProperties7 = new RunProperties(); FontSize fontSize8 = new FontSize() { Val = "15" }; FontSizeComplexScript fontSizeComplexScript5 = new FontSizeComplexScript() { Val = "15" }; runProperties7.Append(fontSize8); runProperties7.Append(fontSizeComplexScript5); Text text7 = new Text() { Space = SpaceProcessingModeValues.Preserve }; text7.Text = DocumentMetadataTexts.GetText(MetadataTexts.CV_NOTICE_FIRST, data.Language); run7.Append(runProperties7); run7.Append(text7); paragraph8.Append(paragraphProperties3); paragraph8.Append(run7); Paragraph paragraph9 = new Paragraph() { RsidParagraphAddition = "009B2C1D", RsidRunAdditionDefault = "009E39C2", ParagraphId = "0F00B1CA", TextId = "77777777" }; ParagraphProperties paragraphProperties4 = new ParagraphProperties(); SpacingBetweenLines spacingBetweenLines4 = new SpacingBetweenLines() { After = "195", Line = "240", LineRule = LineSpacingRuleValues.Auto }; paragraphProperties4.Append(spacingBetweenLines4); Run run10 = new Run(); RunProperties runProperties10 = new RunProperties(); FontSize fontSize11 = new FontSize() { Val = "15" }; FontSizeComplexScript fontSizeComplexScript8 = new FontSizeComplexScript() { Val = "15" }; runProperties10.Append(fontSize11); runProperties10.Append(fontSizeComplexScript8); Text text10 = new Text() { Space = SpaceProcessingModeValues.Preserve }; text10.Text = DocumentMetadataTexts.GetText(MetadataTexts.CV_NOTICE_SECOND, data.Language); run10.Append(runProperties10); run10.Append(text10); paragraph9.Append(paragraphProperties4); paragraph9.Append(run10); Paragraph paragraph10 = new Paragraph() { RsidParagraphAddition = "009B2C1D", RsidRunAdditionDefault = "009E39C2", ParagraphId = "28B14C27", TextId = "77777777" }; ParagraphProperties paragraphProperties5 = new ParagraphProperties(); SpacingBetweenLines spacingBetweenLines5 = new SpacingBetweenLines() { After = "195", Line = "240", LineRule = LineSpacingRuleValues.Auto }; paragraphProperties5.Append(spacingBetweenLines5); Run run19 = new Run(); RunProperties runProperties19 = new RunProperties(); FontSize fontSize20 = new FontSize() { Val = "15" }; FontSizeComplexScript fontSizeComplexScript17 = new FontSizeComplexScript() { Val = "15" }; runProperties19.Append(fontSize20); runProperties19.Append(fontSizeComplexScript17); Text text19 = new Text() { Space = SpaceProcessingModeValues.Preserve }; text19.Text = DocumentMetadataTexts.GetText(MetadataTexts.CV_NOTICE_THIRD, data.Language); run19.Append(runProperties19); run19.Append(text19); paragraph10.Append(paragraphProperties5); paragraph10.Append(run19); tableCell1.Append(tableCellProperties1); tableCell1.Append(paragraph1); tableCell1.Append(paragraph2); tableCell1.Append(paragraph3); tableCell1.Append(paragraph4); tableCell1.Append(paragraph5); tableCell1.Append(paragraph6); tableCell1.Append(paragraph7); tableCell1.Append(paragraph8); tableCell1.Append(paragraph9); tableCell1.Append(paragraph10); tableRow1.Append(tableCell1); table1.Append(tableProperties1); table1.Append(tableGrid1); table1.Append(tableRow1); return(table1); }