Ejemplo n.º 1
0
        public static TableRow CreateHeaderRow(List <ColumnTable> columns)
        {
            TableRow tableRow1 = new TableRow()
            {
                RsidTableRowAddition = "00D149A8", RsidTableRowProperties = "00AD5D8A"
            };
            TableRowProperties     tableRowProperties1     = new TableRowProperties();
            ConditionalFormatStyle conditionalFormatStyle1 = new ConditionalFormatStyle()
            {
                Val = "100000000000", FirstRow = true, LastRow = false, FirstColumn = false, LastColumn = false, OddVerticalBand = false, EvenVerticalBand = false, OddHorizontalBand = false, EvenHorizontalBand = false, FirstRowFirstColumn = false, FirstRowLastColumn = false, LastRowFirstColumn = false, LastRowLastColumn = false
            };

            tableRowProperties1.Append(conditionalFormatStyle1);
            foreach (ColumnTable column in columns)
            {
                TableCell tableCell = CreateColumnHeader(column);
                tableRow1.Append(tableCell);
            }
            return(tableRow1);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Initialize new cell content object.
        /// </summary>
        /// <param name="textValue">The content of cell.</param>
        /// <returns>The TableCell object.</returns>
        public virtual TableCell NewTableCellData(string textValue, string width = "")
        {
            //create cell object and its properties
            TableCell tableCell = new TableCell();

            TableCellProperties    tableCellProperties    = new TableCellProperties();
            ConditionalFormatStyle conditionalFormatStyle = new ConditionalFormatStyle()
            {
                Val = "001000000000"
            };

            HideMark hideMark = new HideMark();

            tableCellProperties.Append(conditionalFormatStyle);
            // Set Width
            string specificWidth = "2394";

            specificWidth = !string.IsNullOrEmpty(width) ? width : specificWidth;
            TableCellWidth tableCellWidth = new TableCellWidth()
            {
                Width = specificWidth, Type = TableWidthUnitValues.Dxa
            };

            tableCellProperties.Append(tableCellWidth);

            tableCellProperties.Append(hideMark);

            //create paragrpah object and its properties
            Paragraph paragraph = new Paragraph()
            {
                RsidParagraphAddition = "004D1DA5", RsidRunAdditionDefault = "004D1DA5"
            };

            ParagraphProperties paragraphProperties = new ParagraphProperties();
            Justification       justification       = new Justification()
            {
                Val = JustificationValues.Center
            };

            paragraphProperties.Append(justification);

            //create Run and Text
            Run  run  = new Run();
            Text text = new Text();

            //add content in Text
            text.Text = textValue;

            //add Text to Run
            run.Append(text);

            //add Run to paragraph
            paragraph.Append(paragraphProperties);
            paragraph.Append(run);

            //add Paragraph to cell
            tableCell.Append(tableCellProperties);
            tableCell.Append(paragraph);

            return(tableCell);
        }
Ejemplo n.º 3
0
        public static TableCell CreateColumnHeader(ColumnTable column)
        {
            TableCell tableCell1 = new TableCell();

            TableCellProperties    tableCellProperties1    = new TableCellProperties();
            ConditionalFormatStyle conditionalFormatStyle2 = new ConditionalFormatStyle()
            {
                Val = "001000000000", FirstRow = false, LastRow = false, FirstColumn = true, LastColumn = false, OddVerticalBand = false, EvenVerticalBand = false, OddHorizontalBand = false, EvenHorizontalBand = false, FirstRowFirstColumn = false, FirstRowLastColumn = false, LastRowFirstColumn = false, LastRowLastColumn = false
            };
            TableCellWidth tableCellWidth1 = new TableCellWidth()
            {
                Type = TableWidthUnitValues.Dxa
            };

            tableCellProperties1.Append(conditionalFormatStyle2);
            tableCellProperties1.Append(tableCellWidth1);

            Paragraph paragraph1 = new Paragraph()
            {
                RsidParagraphMarkRevision = "00451032", RsidParagraphAddition = "00D149A8", RsidParagraphProperties = "00AD5D8A", RsidRunAdditionDefault = "00D149A8"
            };

            ParagraphProperties paragraphProperties1 = new ParagraphProperties();

            ParagraphMarkRunProperties paragraphMarkRunProperties1 = new ParagraphMarkRunProperties();
            RunFonts runFonts1 = new RunFonts()
            {
                Ascii = "Times New Roman", HighAnsi = "Times New Roman", ComplexScript = "Times New Roman"
            };
            FontSize fontSize1 = new FontSize()
            {
                Val = "28"
            };
            FontSizeComplexScript fontSizeComplexScript1 = new FontSizeComplexScript()
            {
                Val = "28"
            };

            paragraphMarkRunProperties1.Append(runFonts1);
            paragraphMarkRunProperties1.Append(fontSize1);
            paragraphMarkRunProperties1.Append(fontSizeComplexScript1);

            paragraphProperties1.Append(paragraphMarkRunProperties1);

            Run run1 = new Run();

            RunProperties runProperties2 = new RunProperties();
            RunFonts      runFonts2      = new RunFonts()
            {
                Ascii = "Times New Roman", HighAnsi = "Times New Roman", ComplexScript = "Times New Roman"
            };
            FontSize fontSize2 = new FontSize()
            {
                Val = "28"
            };
            FontSizeComplexScript fontSizeComplexScript2 = new FontSizeComplexScript()
            {
                Val = "28"
            };

            runProperties2.Append(runFonts2);
            runProperties2.Append(fontSize2);
            runProperties2.Append(fontSizeComplexScript2);
            Text text1 = new Text();

            text1.Text = column.ColumnHeader;

            run1.Append(runProperties2);
            run1.Append(text1);

            paragraph1.Append(paragraphProperties1);
            paragraph1.Append(run1);

            tableCell1.Append(tableCellProperties1);
            tableCell1.Append(paragraph1);
            return(tableCell1);
        }
Ejemplo n.º 4
0
        public static TableCell CreateColumnCell(ColumnTable column)
        {
            TableCell tableCell = new TableCell();

            TableCellProperties tableCellProperties = new TableCellProperties();

            DocumentFormat.OpenXml.Wordprocessing.ConditionalFormatStyle conditionalFormatStyleCell1 = new ConditionalFormatStyle()
            {
                Val = "001000000000", FirstRow = false, LastRow = false, FirstColumn = true, LastColumn = false, OddVerticalBand = false, EvenVerticalBand = false, OddHorizontalBand = false, EvenHorizontalBand = false, FirstRowFirstColumn = false, FirstRowLastColumn = false, LastRowFirstColumn = false, LastRowLastColumn = false
            };
            DocumentFormat.OpenXml.Wordprocessing.TableCellWidth tableCellWidth1 = new TableCellWidth()
            {
                Type = TableWidthUnitValues.Dxa
            };

            tableCellProperties.Append(conditionalFormatStyleCell1);
            tableCellProperties.Append(tableCellWidth1);

            SdtBlock sdtBlockSub = new SdtBlock();

            SdtProperties sdtProperties = new SdtProperties();

            RunProperties runProperties = new RunProperties();
            RunFonts      runFonts1     = new RunFonts()
            {
                Ascii = "Times New Roman", HighAnsi = "Times New Roman", ComplexScript = "Times New Roman"
            };
            FontSize fontSize1 = new FontSize()
            {
                Val = "28"
            };
            FontSizeComplexScript fontSizeComplexScript1 = new FontSizeComplexScript()
            {
                Val = "28"
            };

            runProperties.Append(runFonts1);
            runProperties.Append(fontSize1);
            runProperties.Append(fontSizeComplexScript1);
            SdtAlias sdtAliasSub = new SdtAlias()
            {
                Val = column.ColumnField
            };
            Tag tagCell = new Tag()
            {
                Val = column.ColumnField
            };
            SdtId sdtIdCell = new SdtId()
            {
                Val = -2144724967
            };

            SdtPlaceholder   sdtPlaceholderCell1   = new SdtPlaceholder();
            DocPartReference docPartReferenceCell1 = new DocPartReference()
            {
                Val = "941489452D594FF2A513A53EEFA3E58F"
            };

            sdtPlaceholderCell1.Append(docPartReferenceCell1);

            sdtProperties.Append(runProperties);
            sdtProperties.Append(sdtAliasSub);
            sdtProperties.Append(tagCell);
            sdtProperties.Append(sdtIdCell);
            sdtProperties.Append(sdtPlaceholderCell1);

            SdtContentBlock sdtContentBlockSub = new SdtContentBlock();

            Paragraph paragraphCell = new Paragraph()
            {
                RsidParagraphAddition = "00C03259", RsidParagraphProperties = "00BB7EFE", RsidRunAdditionDefault = "00C03259"
            };

            ParagraphProperties paragraphProperties1 = new ParagraphProperties();

            ParagraphMarkRunProperties paragraphMarkRunPropertiesCell = new ParagraphMarkRunProperties();
            RunFonts runFonts2 = new RunFonts()
            {
                Ascii = "Times New Roman", HighAnsi = "Times New Roman", ComplexScript = "Times New Roman"
            };
            FontSize fontSize2 = new FontSize()
            {
                Val = "28"
            };
            FontSizeComplexScript fontSizeComplexScript2 = new FontSizeComplexScript()
            {
                Val = "28"
            };

            paragraphMarkRunPropertiesCell.Append(runFonts2);
            paragraphMarkRunPropertiesCell.Append(fontSize2);
            paragraphMarkRunPropertiesCell.Append(fontSizeComplexScript2);

            paragraphProperties1.Append(paragraphMarkRunPropertiesCell);

            Run runCell = new Run();

            RunProperties runPropertiesCell = new RunProperties();
            RunFonts      runFonts3         = new RunFonts()
            {
                Ascii = "Times New Roman", HighAnsi = "Times New Roman", ComplexScript = "Times New Roman"
            };
            Bold bold1 = new Bold()
            {
                Val = false
            };
            FontSize fontSize3 = new FontSize()
            {
                Val = "28"
            };
            FontSizeComplexScript fontSizeComplexScript3 = new FontSizeComplexScript()
            {
                Val = "28"
            };

            runPropertiesCell.Append(runFonts3);
            runPropertiesCell.Append(bold1);
            runPropertiesCell.Append(fontSize3);
            runPropertiesCell.Append(fontSizeComplexScript3);

            Text textCell = new Text();

            textCell.Text = column.ColumnHeader;

            runCell.Append(runPropertiesCell);
            runCell.Append(textCell);

            paragraphCell.Append(paragraphProperties1);
            paragraphCell.Append(runCell);

            sdtContentBlockSub.Append(paragraphCell);

            sdtBlockSub.Append(sdtProperties);
            sdtBlockSub.Append(sdtContentBlockSub);

            tableCell.Append(tableCellProperties);
            tableCell.Append(sdtBlockSub);
            return(tableCell);
        }
Ejemplo n.º 5
0
        // Generates content of mainDocumentPart1.
        private void GenerateMainDocumentPart1Content(MainDocumentPart mainDocumentPart1)
        {
            Document document1 = new Document();
            document1.AddNamespaceDeclaration("ve", "http://schemas.openxmlformats.org/markup-compatibility/2006");
            document1.AddNamespaceDeclaration("o", "urn:schemas-microsoft-com:office:office");
            document1.AddNamespaceDeclaration("r", "http://schemas.openxmlformats.org/officeDocument/2006/relationships");
            document1.AddNamespaceDeclaration("m", "http://schemas.openxmlformats.org/officeDocument/2006/math");
            document1.AddNamespaceDeclaration("v", "urn:schemas-microsoft-com:vml");
            document1.AddNamespaceDeclaration("wp", "http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing");
            document1.AddNamespaceDeclaration("w10", "urn:schemas-microsoft-com:office:word");
            document1.AddNamespaceDeclaration("w", "http://schemas.openxmlformats.org/wordprocessingml/2006/main");
            document1.AddNamespaceDeclaration("wne", "http://schemas.microsoft.com/office/word/2006/wordml");

            Body body1 = new Body();

            Table table1 = new Table();

            TableProperties tableProperties1 = new TableProperties();
            TableStyle tableStyle1 = new TableStyle() { Val = "TableGrid" };
            TableWidth tableWidth1 = new TableWidth() { Width = "9627", Type = TableWidthUnitValues.Dxa };
            TableLook tableLook1 = new TableLook() { Val = "04A0" };

            tableProperties1.Append(tableStyle1);
            tableProperties1.Append(tableWidth1);
            tableProperties1.Append(tableLook1);

            TableGrid tableGrid1 = new TableGrid();
            GridColumn gridColumn1 = new GridColumn() { Width = "9700" };

            tableGrid1.Append(gridColumn1);

            TableRow tableRow1 = new TableRow() { RsidTableRowAddition = "003F5FAE", RsidTableRowProperties = "00E67B26" };

            TableRowProperties tableRowProperties1 = new TableRowProperties();
            TableRowHeight tableRowHeight1 = new TableRowHeight() { Val = (UInt32Value)629U };

            tableRowProperties1.Append(tableRowHeight1);

            TableCell tableCell1 = new TableCell();

            TableCellProperties tableCellProperties1 = new TableCellProperties();
            TableCellWidth tableCellWidth1 = new TableCellWidth() { Width = "9627", Type = TableWidthUnitValues.Dxa };

            tableCellProperties1.Append(tableCellWidth1);

            Paragraph paragraph1 = new Paragraph() { RsidParagraphMarkRevision = "003F5FAE", RsidParagraphAddition = "003F5FAE", RsidParagraphProperties = "003F5FAE", RsidRunAdditionDefault = "003F5FAE" };

            ParagraphProperties paragraphProperties1 = new ParagraphProperties();
            ParagraphStyleId paragraphStyleId1 = new ParagraphStyleId() { Val = "Heading2" };
            Justification justification1 = new Justification() { Val = JustificationValues.Center };

            paragraphProperties1.Append(paragraphStyleId1);
            paragraphProperties1.Append(justification1);

            Run run1 = new Run() { RsidRunProperties = "003F5FAE" };
            Text text1 = new Text() { Space = SpaceProcessingModeValues.Preserve };
            text1.Text = "LOCUM ";

            run1.Append(text1);

            Run run2 = new Run() { RsidRunProperties = "003F5FAE" };

            RunProperties runProperties1 = new RunProperties();
            Color color1 = new Color() { Val = "1F497D", ThemeColor = ThemeColorValues.Text2 };

            runProperties1.Append(color1);
            Text text2 = new Text() { Space = SpaceProcessingModeValues.Preserve };
            text2.Text = "Assistance ";

            run2.Append(runProperties1);
            run2.Append(text2);

            Run run3 = new Run();

            RunProperties runProperties2 = new RunProperties();
            Color color2 = new Color() { Val = "1F497D", ThemeColor = ThemeColorValues.Text2 };

            runProperties2.Append(color2);
            Text text3 = new Text();
            text3.Text = "–";

            run3.Append(runProperties2);
            run3.Append(text3);

            Run run4 = new Run() { RsidRunProperties = "003F5FAE" };

            RunProperties runProperties3 = new RunProperties();
            Color color3 = new Color() { Val = "1F497D", ThemeColor = ThemeColorValues.Text2 };

            runProperties3.Append(color3);
            Text text4 = new Text() { Space = SpaceProcessingModeValues.Preserve };
            text4.Text = " ";

            run4.Append(runProperties3);
            run4.Append(text4);

            Run run5 = new Run();

            RunProperties runProperties4 = new RunProperties();
            Color color4 = new Color() { Val = "1F497D", ThemeColor = ThemeColorValues.Text2 };

            runProperties4.Append(color4);
            Text text5 = new Text();
            text5.Text = "Invoice";

            run5.Append(runProperties4);
            run5.Append(text5);

            paragraph1.Append(paragraphProperties1);
            paragraph1.Append(run1);
            paragraph1.Append(run2);
            paragraph1.Append(run3);
            paragraph1.Append(run4);
            paragraph1.Append(run5);

            tableCell1.Append(tableCellProperties1);
            tableCell1.Append(paragraph1);

            tableRow1.Append(tableRowProperties1);
            tableRow1.Append(tableCell1);

            TableRow tableRow2 = new TableRow() { RsidTableRowAddition = "003F5FAE", RsidTableRowProperties = "00E67B26" };

            TableRowProperties tableRowProperties2 = new TableRowProperties();
            TableRowHeight tableRowHeight2 = new TableRowHeight() { Val = (UInt32Value)5167U };

            tableRowProperties2.Append(tableRowHeight2);

            TableCell tableCell2 = new TableCell();

            TableCellProperties tableCellProperties2 = new TableCellProperties();
            TableCellWidth tableCellWidth2 = new TableCellWidth() { Width = "9627", Type = TableWidthUnitValues.Dxa };

            tableCellProperties2.Append(tableCellWidth2);

            Table table2 = new Table();

            TableProperties tableProperties2 = new TableProperties();
            TableStyle tableStyle2 = new TableStyle() { Val = "LightShading-Accent1" };
            TableWidth tableWidth2 = new TableWidth() { Width = "9483", Type = TableWidthUnitValues.Dxa };
            TableIndentation tableIndentation1 = new TableIndentation() { Width = 1, Type = TableWidthUnitValues.Dxa };
            TableLook tableLook2 = new TableLook() { Val = "04A0" };

            tableProperties2.Append(tableStyle2);
            tableProperties2.Append(tableWidth2);
            tableProperties2.Append(tableIndentation1);
            tableProperties2.Append(tableLook2);

            TableGrid tableGrid2 = new TableGrid();
            GridColumn gridColumn2 = new GridColumn() { Width = "4741" };
            GridColumn gridColumn3 = new GridColumn() { Width = "4742" };

            tableGrid2.Append(gridColumn2);
            tableGrid2.Append(gridColumn3);

            TableRow tableRow3 = new TableRow() { RsidTableRowAddition = "003F5FAE", RsidTableRowProperties = "00E67B26" };

            TableRowProperties tableRowProperties3 = new TableRowProperties();
            ConditionalFormatStyle conditionalFormatStyle1 = new ConditionalFormatStyle() { Val = "100000000000" };
            TableRowHeight tableRowHeight3 = new TableRowHeight() { Val = (UInt32Value)284U };

            tableRowProperties3.Append(conditionalFormatStyle1);
            tableRowProperties3.Append(tableRowHeight3);

            TableCell tableCell3 = new TableCell();

            TableCellProperties tableCellProperties3 = new TableCellProperties();
            ConditionalFormatStyle conditionalFormatStyle2 = new ConditionalFormatStyle() { Val = "001000000000" };
            TableCellWidth tableCellWidth3 = new TableCellWidth() { Width = "4741", Type = TableWidthUnitValues.Dxa };

            tableCellProperties3.Append(conditionalFormatStyle2);
            tableCellProperties3.Append(tableCellWidth3);

            Paragraph paragraph2 = new Paragraph() { RsidParagraphAddition = "003F5FAE", RsidParagraphProperties = "003F5FAE", RsidRunAdditionDefault = "003F5FAE" };

            ParagraphProperties paragraphProperties2 = new ParagraphProperties();

            ParagraphMarkRunProperties paragraphMarkRunProperties1 = new ParagraphMarkRunProperties();
            RunFonts runFonts1 = new RunFonts() { Ascii = "Segoe UI", HighAnsi = "Segoe UI", ComplexScript = "Segoe UI" };
            Bold bold1 = new Bold() { Val = false };
            Color color5 = new Color() { Val = "000000", ThemeColor = ThemeColorValues.Text1 };
            FontSize fontSize1 = new FontSize() { Val = "18" };
            FontSizeComplexScript fontSizeComplexScript1 = new FontSizeComplexScript() { Val = "18" };

            paragraphMarkRunProperties1.Append(runFonts1);
            paragraphMarkRunProperties1.Append(bold1);
            paragraphMarkRunProperties1.Append(color5);
            paragraphMarkRunProperties1.Append(fontSize1);
            paragraphMarkRunProperties1.Append(fontSizeComplexScript1);

            paragraphProperties2.Append(paragraphMarkRunProperties1);

            Run run6 = new Run();

            RunProperties runProperties5 = new RunProperties();
            Bold bold2 = new Bold() { Val = false };
            Color color6 = new Color() { Val = "548DD4", ThemeColor = ThemeColorValues.Text2, ThemeTint = "99" };

            runProperties5.Append(bold2);
            runProperties5.Append(color6);
            Text text6 = new Text();
            text6.Text = "TO";

            run6.Append(runProperties5);
            run6.Append(text6);

            Run run7 = new Run();

            RunProperties runProperties6 = new RunProperties();
            Bold bold3 = new Bold() { Val = false };
            Color color7 = new Color() { Val = "548DD4", ThemeColor = ThemeColorValues.Text2, ThemeTint = "99" };

            runProperties6.Append(bold3);
            runProperties6.Append(color7);
            Break break1 = new Break();

            run7.Append(runProperties6);
            run7.Append(break1);

            Run run8 = new Run() { RsidRunProperties = "003F5FAE" };

            RunProperties runProperties7 = new RunProperties();
            RunFonts runFonts2 = new RunFonts() { Ascii = "Segoe UI", HighAnsi = "Segoe UI", ComplexScript = "Segoe UI" };
            Bold bold4 = new Bold() { Val = false };
            Color color8 = new Color() { Val = "000000", ThemeColor = ThemeColorValues.Text1 };

            runProperties7.Append(runFonts2);
            runProperties7.Append(bold4);
            runProperties7.Append(color8);
            Text text7 = new Text() { Space = SpaceProcessingModeValues.Preserve };
            text7.Text = pdetail.Name;

            run8.Append(runProperties7);
            run8.Append(text7);
            ProofError proofError1 = new ProofError() { Type = ProofingErrorValues.SpellStart };

            Run run9 = new Run() { RsidRunProperties = "003F5FAE" };

            RunProperties runProperties8 = new RunProperties();
            RunFonts runFonts3 = new RunFonts() { Ascii = "Segoe UI", HighAnsi = "Segoe UI", ComplexScript = "Segoe UI" };
            Bold bold5 = new Bold() { Val = false };
            Color color9 = new Color() { Val = "000000", ThemeColor = ThemeColorValues.Text1 };

            runProperties8.Append(runFonts3);
            runProperties8.Append(bold5);
            runProperties8.Append(color9);
            Text text8 = new Text();
            text8.Text = "";

            run9.Append(runProperties8);
            run9.Append(text8);
            ProofError proofError2 = new ProofError() { Type = ProofingErrorValues.SpellEnd };

            Run run10 = new Run();

            RunProperties runProperties9 = new RunProperties();
            RunFonts runFonts4 = new RunFonts() { Ascii = "Segoe UI", HighAnsi = "Segoe UI", ComplexScript = "Segoe UI" };
            Bold bold6 = new Bold() { Val = false };
            Color color10 = new Color() { Val = "000000", ThemeColor = ThemeColorValues.Text1 };

            runProperties9.Append(runFonts4);
            runProperties9.Append(bold6);
            runProperties9.Append(color10);
            Break break2 = new Break();

            run10.Append(runProperties9);
            run10.Append(break2);

            Run run11 = new Run() { RsidRunProperties = "003F5FAE" };

            RunProperties runProperties10 = new RunProperties();
            RunFonts runFonts5 = new RunFonts() { Ascii = "Segoe UI", HighAnsi = "Segoe UI", ComplexScript = "Segoe UI" };
            Color color11 = new Color() { Val = "17365D", ThemeColor = ThemeColorValues.Text2, ThemeShade = "BF" };
            FontSize fontSize2 = new FontSize() { Val = "12" };
            FontSizeComplexScript fontSizeComplexScript2 = new FontSizeComplexScript() { Val = "18" };

            runProperties10.Append(runFonts5);
            runProperties10.Append(color11);
            runProperties10.Append(fontSize2);
            runProperties10.Append(fontSizeComplexScript2);
            Text text9 = new Text();
            text9.Text = "Website";

            run11.Append(runProperties10);
            run11.Append(text9);

            Run run12 = new Run();

            RunProperties runProperties11 = new RunProperties();
            RunFonts runFonts6 = new RunFonts() { Ascii = "Segoe UI", HighAnsi = "Segoe UI", ComplexScript = "Segoe UI" };
            Bold bold7 = new Bold() { Val = false };
            Color color12 = new Color() { Val = "000000", ThemeColor = ThemeColorValues.Text1 };
            FontSize fontSize3 = new FontSize() { Val = "18" };
            FontSizeComplexScript fontSizeComplexScript3 = new FontSizeComplexScript() { Val = "18" };

            runProperties11.Append(runFonts6);
            runProperties11.Append(bold7);
            runProperties11.Append(color12);
            runProperties11.Append(fontSize3);
            runProperties11.Append(fontSizeComplexScript3);
            Text text10 = new Text() { Space = SpaceProcessingModeValues.Preserve };
            text10.Text = " : ";

            run12.Append(runProperties11);
            run12.Append(text10);

            Hyperlink hyperlink1 = new Hyperlink() { History = true, Id = "rId4" };

            Run run13 = new Run() { RsidRunProperties = "00366D29" };

            RunProperties runProperties12 = new RunProperties();
            RunStyle runStyle1 = new RunStyle() { Val = "Hyperlink" };
            RunFonts runFonts7 = new RunFonts() { Ascii = "Segoe UI", HighAnsi = "Segoe UI", ComplexScript = "Segoe UI" };
            FontSize fontSize4 = new FontSize() { Val = "18" };
            FontSizeComplexScript fontSizeComplexScript4 = new FontSizeComplexScript() { Val = "18" };

            runProperties12.Append(runStyle1);
            runProperties12.Append(runFonts7);
            runProperties12.Append(fontSize4);
            runProperties12.Append(fontSizeComplexScript4);
            Text text11 = new Text();
            text11.Text = pdetail.cWebsite;

            run13.Append(runProperties12);
            run13.Append(text11);

            hyperlink1.Append(run13);

            Run run14 = new Run();

            RunProperties runProperties13 = new RunProperties();
            RunFonts runFonts8 = new RunFonts() { Ascii = "Segoe UI", HighAnsi = "Segoe UI", ComplexScript = "Segoe UI" };
            Bold bold8 = new Bold() { Val = false };
            Color color13 = new Color() { Val = "000000", ThemeColor = ThemeColorValues.Text1 };
            FontSize fontSize5 = new FontSize() { Val = "18" };
            FontSizeComplexScript fontSizeComplexScript5 = new FontSizeComplexScript() { Val = "18" };

            runProperties13.Append(runFonts8);
            runProperties13.Append(bold8);
            runProperties13.Append(color13);
            runProperties13.Append(fontSize5);
            runProperties13.Append(fontSizeComplexScript5);
            Break break3 = new Break();

            run14.Append(runProperties13);
            run14.Append(break3);

            Run run15 = new Run();

            RunProperties runProperties14 = new RunProperties();
            RunFonts runFonts9 = new RunFonts() { Ascii = "Segoe UI", HighAnsi = "Segoe UI", ComplexScript = "Segoe UI" };
            Color color14 = new Color() { Val = "17365D", ThemeColor = ThemeColorValues.Text2, ThemeShade = "BF" };
            FontSize fontSize6 = new FontSize() { Val = "12" };
            FontSizeComplexScript fontSizeComplexScript6 = new FontSizeComplexScript() { Val = "18" };

            runProperties14.Append(runFonts9);
            runProperties14.Append(color14);
            runProperties14.Append(fontSize6);
            runProperties14.Append(fontSizeComplexScript6);
            Text text12 = new Text() { Space = SpaceProcessingModeValues.Preserve };
            text12.Text = "City        ";

            run15.Append(runProperties14);
            run15.Append(text12);

            Run run16 = new Run();

            RunProperties runProperties15 = new RunProperties();
            RunFonts runFonts10 = new RunFonts() { Ascii = "Segoe UI", HighAnsi = "Segoe UI", ComplexScript = "Segoe UI" };
            Bold bold9 = new Bold() { Val = false };
            Color color15 = new Color() { Val = "000000", ThemeColor = ThemeColorValues.Text1 };
            FontSize fontSize7 = new FontSize() { Val = "18" };
            FontSizeComplexScript fontSizeComplexScript7 = new FontSizeComplexScript() { Val = "18" };

            runProperties15.Append(runFonts10);
            runProperties15.Append(bold9);
            runProperties15.Append(color15);
            runProperties15.Append(fontSize7);
            runProperties15.Append(fontSizeComplexScript7);
            Text text13 = new Text() { Space = SpaceProcessingModeValues.Preserve };
            text13.Text = " : " + pdetail.city;

            run16.Append(runProperties15);
            run16.Append(text13);

            paragraph2.Append(paragraphProperties2);
            paragraph2.Append(run6);
            paragraph2.Append(run7);
            paragraph2.Append(run8);
            paragraph2.Append(proofError1);
            paragraph2.Append(run9);
            paragraph2.Append(proofError2);
            paragraph2.Append(run10);
            paragraph2.Append(run11);
            paragraph2.Append(run12);
            paragraph2.Append(hyperlink1);
            paragraph2.Append(run14);
            paragraph2.Append(run15);
            paragraph2.Append(run16);

            Paragraph paragraph3 = new Paragraph() { RsidParagraphAddition = "00E67B26", RsidParagraphProperties = "00E67B26", RsidRunAdditionDefault = "00E67B26" };

            ParagraphProperties paragraphProperties3 = new ParagraphProperties();

            ParagraphMarkRunProperties paragraphMarkRunProperties2 = new ParagraphMarkRunProperties();
            RunFonts runFonts11 = new RunFonts() { Ascii = "Segoe UI", HighAnsi = "Segoe UI", ComplexScript = "Segoe UI" };
            Bold bold10 = new Bold() { Val = false };
            Color color16 = new Color() { Val = "000000", ThemeColor = ThemeColorValues.Text1 };
            FontSize fontSize8 = new FontSize() { Val = "18" };
            FontSizeComplexScript fontSizeComplexScript8 = new FontSizeComplexScript() { Val = "18" };

            paragraphMarkRunProperties2.Append(runFonts11);
            paragraphMarkRunProperties2.Append(bold10);
            paragraphMarkRunProperties2.Append(color16);
            paragraphMarkRunProperties2.Append(fontSize8);
            paragraphMarkRunProperties2.Append(fontSizeComplexScript8);

            paragraphProperties3.Append(paragraphMarkRunProperties2);

            Run run17 = new Run();

            RunProperties runProperties16 = new RunProperties();
            RunFonts runFonts12 = new RunFonts() { Ascii = "Segoe UI", HighAnsi = "Segoe UI", ComplexScript = "Segoe UI" };
            Color color17 = new Color() { Val = "17365D", ThemeColor = ThemeColorValues.Text2, ThemeShade = "BF" };
            FontSize fontSize9 = new FontSize() { Val = "12" };
            FontSizeComplexScript fontSizeComplexScript9 = new FontSizeComplexScript() { Val = "18" };

            runProperties16.Append(runFonts12);
            runProperties16.Append(color17);
            runProperties16.Append(fontSize9);
            runProperties16.Append(fontSizeComplexScript9);
            Text text14 = new Text();
            text14.Text = "Street";

            run17.Append(runProperties16);
            run17.Append(text14);

            Run run18 = new Run() { RsidRunAddition = "003F5FAE" };

            RunProperties runProperties17 = new RunProperties();
            RunFonts runFonts13 = new RunFonts() { Ascii = "Segoe UI", HighAnsi = "Segoe UI", ComplexScript = "Segoe UI" };
            Color color18 = new Color() { Val = "17365D", ThemeColor = ThemeColorValues.Text2, ThemeShade = "BF" };
            FontSize fontSize10 = new FontSize() { Val = "12" };
            FontSizeComplexScript fontSizeComplexScript10 = new FontSizeComplexScript() { Val = "18" };

            runProperties17.Append(runFonts13);
            runProperties17.Append(color18);
            runProperties17.Append(fontSize10);
            runProperties17.Append(fontSizeComplexScript10);
            Text text15 = new Text() { Space = SpaceProcessingModeValues.Preserve };
            text15.Text = "    ";

            run18.Append(runProperties17);
            run18.Append(text15);

            Run run19 = new Run() { RsidRunAddition = "003F5FAE" };

            RunProperties runProperties18 = new RunProperties();
            RunFonts runFonts14 = new RunFonts() { Ascii = "Segoe UI", HighAnsi = "Segoe UI", ComplexScript = "Segoe UI" };
            Bold bold11 = new Bold() { Val = false };
            Color color19 = new Color() { Val = "000000", ThemeColor = ThemeColorValues.Text1 };
            FontSize fontSize11 = new FontSize() { Val = "18" };
            FontSizeComplexScript fontSizeComplexScript11 = new FontSizeComplexScript() { Val = "18" };

            runProperties18.Append(runFonts14);
            runProperties18.Append(bold11);
            runProperties18.Append(color19);
            runProperties18.Append(fontSize11);
            runProperties18.Append(fontSizeComplexScript11);
            Text text16 = new Text() { Space = SpaceProcessingModeValues.Preserve };
            text16.Text = " : " + pdetail.streetAdd;

            run19.Append(runProperties18);
            run19.Append(text16);

            Run run20 = new Run();

            RunProperties runProperties19 = new RunProperties();
            RunFonts runFonts15 = new RunFonts() { Ascii = "Segoe UI", HighAnsi = "Segoe UI", ComplexScript = "Segoe UI" };
            Bold bold12 = new Bold() { Val = false };
            Color color20 = new Color() { Val = "000000", ThemeColor = ThemeColorValues.Text1 };
            FontSize fontSize12 = new FontSize() { Val = "18" };
            FontSizeComplexScript fontSizeComplexScript12 = new FontSizeComplexScript() { Val = "18" };

            runProperties19.Append(runFonts15);
            runProperties19.Append(bold12);
            runProperties19.Append(color20);
            runProperties19.Append(fontSize12);
            runProperties19.Append(fontSizeComplexScript12);
            Text text17 = new Text() { Space = SpaceProcessingModeValues.Preserve };
            text17.Text = "";

            run20.Append(runProperties19);
            run20.Append(text17);

            Run run21 = new Run();

            RunProperties runProperties20 = new RunProperties();
            RunFonts runFonts16 = new RunFonts() { Ascii = "Segoe UI", HighAnsi = "Segoe UI", ComplexScript = "Segoe UI" };
            Bold bold13 = new Bold() { Val = false };
            Color color21 = new Color() { Val = "000000", ThemeColor = ThemeColorValues.Text1 };
            FontSize fontSize13 = new FontSize() { Val = "18" };
            FontSizeComplexScript fontSizeComplexScript13 = new FontSizeComplexScript() { Val = "18" };

            runProperties20.Append(runFonts16);
            runProperties20.Append(bold13);
            runProperties20.Append(color21);
            runProperties20.Append(fontSize13);
            runProperties20.Append(fontSizeComplexScript13);
            Break break4 = new Break();

            run21.Append(runProperties20);
            run21.Append(break4);

            Run run22 = new Run();

            RunProperties runProperties21 = new RunProperties();
            RunFonts runFonts17 = new RunFonts() { Ascii = "Segoe UI", HighAnsi = "Segoe UI", ComplexScript = "Segoe UI" };
            Color color22 = new Color() { Val = "17365D", ThemeColor = ThemeColorValues.Text2, ThemeShade = "BF" };
            FontSize fontSize14 = new FontSize() { Val = "12" };
            FontSizeComplexScript fontSizeComplexScript14 = new FontSizeComplexScript() { Val = "18" };

            runProperties21.Append(runFonts17);
            runProperties21.Append(color22);
            runProperties21.Append(fontSize14);
            runProperties21.Append(fontSizeComplexScript14);
            Text text18 = new Text() { Space = SpaceProcessingModeValues.Preserve };
            text18.Text = "Phone    ";

            run22.Append(runProperties21);
            run22.Append(text18);

            Run run23 = new Run();

            RunProperties runProperties22 = new RunProperties();
            RunFonts runFonts18 = new RunFonts() { Ascii = "Segoe UI", HighAnsi = "Segoe UI", ComplexScript = "Segoe UI" };
            Bold bold14 = new Bold() { Val = false };
            Color color23 = new Color() { Val = "000000", ThemeColor = ThemeColorValues.Text1 };
            FontSize fontSize15 = new FontSize() { Val = "18" };
            FontSizeComplexScript fontSizeComplexScript15 = new FontSizeComplexScript() { Val = "18" };

            runProperties22.Append(runFonts18);
            runProperties22.Append(bold14);
            runProperties22.Append(color23);
            runProperties22.Append(fontSize15);
            runProperties22.Append(fontSizeComplexScript15);
            Text text19 = new Text() { Space = SpaceProcessingModeValues.Preserve };
            text19.Text = "";

            run23.Append(runProperties22);
            run23.Append(text19);

            Run run24 = new Run() { RsidRunProperties = "00E67B26" };

            RunProperties runProperties23 = new RunProperties();
            RunFonts runFonts19 = new RunFonts() { Ascii = "Segoe UI", HighAnsi = "Segoe UI", ComplexScript = "Segoe UI" };
            Bold bold15 = new Bold() { Val = false };
            BoldComplexScript boldComplexScript1 = new BoldComplexScript() { Val = false };
            Color color24 = new Color() { Val = "000000", ThemeColor = ThemeColorValues.Text1 };
            FontSize fontSize16 = new FontSize() { Val = "18" };
            FontSizeComplexScript fontSizeComplexScript16 = new FontSizeComplexScript() { Val = "18" };

            runProperties23.Append(runFonts19);
            runProperties23.Append(bold15);
            runProperties23.Append(boldComplexScript1);
            runProperties23.Append(color24);
            runProperties23.Append(fontSize16);
            runProperties23.Append(fontSizeComplexScript16);
            Text text20 = new Text();
            text20.Text = ":";

            run24.Append(runProperties23);
            run24.Append(text20);

            Run run25 = new Run();

            RunProperties runProperties24 = new RunProperties();
            RunFonts runFonts20 = new RunFonts() { Ascii = "Segoe UI", HighAnsi = "Segoe UI", ComplexScript = "Segoe UI" };
            Bold bold16 = new Bold() { Val = false };
            BoldComplexScript boldComplexScript2 = new BoldComplexScript() { Val = false };
            Color color25 = new Color() { Val = "000000", ThemeColor = ThemeColorValues.Text1 };
            FontSize fontSize17 = new FontSize() { Val = "18" };
            FontSizeComplexScript fontSizeComplexScript17 = new FontSizeComplexScript() { Val = "18" };

            runProperties24.Append(runFonts20);
            runProperties24.Append(bold16);
            runProperties24.Append(boldComplexScript2);
            runProperties24.Append(color25);
            runProperties24.Append(fontSize17);
            runProperties24.Append(fontSizeComplexScript17);
            Text text21 = new Text() { Space = SpaceProcessingModeValues.Preserve };
            text21.Text = " ";

            run25.Append(runProperties24);
            run25.Append(text21);

            Run run26 = new Run() { RsidRunProperties = "00E67B26" };

            RunProperties runProperties25 = new RunProperties();
            RunFonts runFonts21 = new RunFonts() { Ascii = "Segoe UI", HighAnsi = "Segoe UI", ComplexScript = "Segoe UI" };
            Bold bold17 = new Bold() { Val = false };
            BoldComplexScript boldComplexScript3 = new BoldComplexScript() { Val = false };
            Color color26 = new Color() { Val = "000000", ThemeColor = ThemeColorValues.Text1 };
            FontSize fontSize18 = new FontSize() { Val = "18" };
            FontSizeComplexScript fontSizeComplexScript18 = new FontSizeComplexScript() { Val = "18" };

            runProperties25.Append(runFonts21);
            runProperties25.Append(bold17);
            runProperties25.Append(boldComplexScript3);
            runProperties25.Append(color26);
            runProperties25.Append(fontSize18);
            runProperties25.Append(fontSizeComplexScript18);
            Text text22 = new Text();
            text22.Text = pdetail.Pphone;

            run26.Append(runProperties25);
            run26.Append(text22);

            paragraph3.Append(paragraphProperties3);
            paragraph3.Append(run17);
            paragraph3.Append(run18);
            paragraph3.Append(run19);
            paragraph3.Append(run20);
            paragraph3.Append(run21);
            paragraph3.Append(run22);
            paragraph3.Append(run23);
            paragraph3.Append(run24);
            paragraph3.Append(run25);
            paragraph3.Append(run26);

            Paragraph paragraph4 = new Paragraph() { RsidParagraphMarkRevision = "003F5FAE", RsidParagraphAddition = "003F5FAE", RsidParagraphProperties = "00E67B26", RsidRunAdditionDefault = "00E67B26" };

            ParagraphProperties paragraphProperties4 = new ParagraphProperties();

            ParagraphMarkRunProperties paragraphMarkRunProperties3 = new ParagraphMarkRunProperties();
            Bold bold18 = new Bold() { Val = false };
            Color color27 = new Color() { Val = "000000", ThemeColor = ThemeColorValues.Text1 };

            paragraphMarkRunProperties3.Append(bold18);
            paragraphMarkRunProperties3.Append(color27);

            paragraphProperties4.Append(paragraphMarkRunProperties3);

            Run run27 = new Run();

            RunProperties runProperties26 = new RunProperties();
            RunFonts runFonts22 = new RunFonts() { Ascii = "Segoe UI", HighAnsi = "Segoe UI", ComplexScript = "Segoe UI" };
            Color color28 = new Color() { Val = "17365D", ThemeColor = ThemeColorValues.Text2, ThemeShade = "BF" };
            FontSize fontSize19 = new FontSize() { Val = "12" };
            FontSizeComplexScript fontSizeComplexScript19 = new FontSizeComplexScript() { Val = "18" };

            runProperties26.Append(runFonts22);
            runProperties26.Append(color28);
            runProperties26.Append(fontSize19);
            runProperties26.Append(fontSizeComplexScript19);
            Text text23 = new Text() { Space = SpaceProcessingModeValues.Preserve };
            text23.Text = "Email     ";

            run27.Append(runProperties26);
            run27.Append(text23);

            Run run28 = new Run();

            RunProperties runProperties27 = new RunProperties();
            RunFonts runFonts23 = new RunFonts() { Ascii = "Segoe UI", HighAnsi = "Segoe UI", ComplexScript = "Segoe UI" };
            Bold bold19 = new Bold() { Val = false };
            Color color29 = new Color() { Val = "000000", ThemeColor = ThemeColorValues.Text1 };
            FontSize fontSize20 = new FontSize() { Val = "18" };
            FontSizeComplexScript fontSizeComplexScript20 = new FontSizeComplexScript() { Val = "18" };

            runProperties27.Append(runFonts23);
            runProperties27.Append(bold19);
            runProperties27.Append(color29);
            runProperties27.Append(fontSize20);
            runProperties27.Append(fontSizeComplexScript20);
            Text text24 = new Text() { Space = SpaceProcessingModeValues.Preserve };
            text24.Text = " ";

            run28.Append(runProperties27);
            run28.Append(text24);

            Run run29 = new Run() { RsidRunProperties = "00E67B26" };

            RunProperties runProperties28 = new RunProperties();
            RunFonts runFonts24 = new RunFonts() { Ascii = "Segoe UI", HighAnsi = "Segoe UI", ComplexScript = "Segoe UI" };
            Bold bold20 = new Bold() { Val = false };
            BoldComplexScript boldComplexScript4 = new BoldComplexScript() { Val = false };
            Color color30 = new Color() { Val = "000000", ThemeColor = ThemeColorValues.Text1 };
            FontSize fontSize21 = new FontSize() { Val = "18" };
            FontSizeComplexScript fontSizeComplexScript21 = new FontSizeComplexScript() { Val = "18" };

            runProperties28.Append(runFonts24);
            runProperties28.Append(bold20);
            runProperties28.Append(boldComplexScript4);
            runProperties28.Append(color30);
            runProperties28.Append(fontSize21);
            runProperties28.Append(fontSizeComplexScript21);
            Text text25 = new Text();
            text25.Text = ":";

            run29.Append(runProperties28);
            run29.Append(text25);

            Run run30 = new Run();

            RunProperties runProperties29 = new RunProperties();
            RunFonts runFonts25 = new RunFonts() { Ascii = "Segoe UI", HighAnsi = "Segoe UI", ComplexScript = "Segoe UI" };
            Bold bold21 = new Bold() { Val = false };
            BoldComplexScript boldComplexScript5 = new BoldComplexScript() { Val = false };
            Color color31 = new Color() { Val = "000000", ThemeColor = ThemeColorValues.Text1 };
            FontSize fontSize22 = new FontSize() { Val = "18" };
            FontSizeComplexScript fontSizeComplexScript22 = new FontSizeComplexScript() { Val = "18" };

            runProperties29.Append(runFonts25);
            runProperties29.Append(bold21);
            runProperties29.Append(boldComplexScript5);
            runProperties29.Append(color31);
            runProperties29.Append(fontSize22);
            runProperties29.Append(fontSizeComplexScript22);
            Text text26 = new Text() { Space = SpaceProcessingModeValues.Preserve };
            text26.Text = " ";

            run30.Append(runProperties29);
            run30.Append(text26);

            Hyperlink hyperlink2 = new Hyperlink() { History = true, Id = "rId5" };

            Run run31 = new Run() { RsidRunProperties = "00366D29" };

            RunProperties runProperties30 = new RunProperties();
            RunStyle runStyle2 = new RunStyle() { Val = "Hyperlink" };
            RunFonts runFonts26 = new RunFonts() { Ascii = "Segoe UI", HighAnsi = "Segoe UI", ComplexScript = "Segoe UI" };
            FontSize fontSize23 = new FontSize() { Val = "18" };
            FontSizeComplexScript fontSizeComplexScript23 = new FontSizeComplexScript() { Val = "18" };

            runProperties30.Append(runStyle2);
            runProperties30.Append(runFonts26);
            runProperties30.Append(fontSize23);
            runProperties30.Append(fontSizeComplexScript23);
            Text text27 = new Text();
            text27.Text = pdetail.cEmail;

            run31.Append(runProperties30);
            run31.Append(text27);

            hyperlink2.Append(run31);

            paragraph4.Append(paragraphProperties4);
            paragraph4.Append(run27);
            paragraph4.Append(run28);
            paragraph4.Append(run29);
            paragraph4.Append(run30);
            paragraph4.Append(hyperlink2);

            tableCell3.Append(tableCellProperties3);
            tableCell3.Append(paragraph2);
            tableCell3.Append(paragraph3);
            tableCell3.Append(paragraph4);

            TableCell tableCell4 = new TableCell();

            TableCellProperties tableCellProperties4 = new TableCellProperties();
            TableCellWidth tableCellWidth4 = new TableCellWidth() { Width = "4742", Type = TableWidthUnitValues.Dxa };

            tableCellProperties4.Append(tableCellWidth4);

            Paragraph paragraph5 = new Paragraph() { RsidParagraphAddition = "00E67B26", RsidParagraphProperties = "00E67B26", RsidRunAdditionDefault = "00E67B26" };

            ParagraphProperties paragraphProperties5 = new ParagraphProperties();
            ConditionalFormatStyle conditionalFormatStyle3 = new ConditionalFormatStyle() { Val = "100000000000" };

            ParagraphMarkRunProperties paragraphMarkRunProperties4 = new ParagraphMarkRunProperties();
            RunFonts runFonts27 = new RunFonts() { Ascii = "Segoe UI", HighAnsi = "Segoe UI", ComplexScript = "Segoe UI" };
            Bold bold22 = new Bold() { Val = false };
            Color color32 = new Color() { Val = "000000", ThemeColor = ThemeColorValues.Text1 };
            FontSize fontSize24 = new FontSize() { Val = "18" };
            FontSizeComplexScript fontSizeComplexScript24 = new FontSizeComplexScript() { Val = "18" };

            paragraphMarkRunProperties4.Append(runFonts27);
            paragraphMarkRunProperties4.Append(bold22);
            paragraphMarkRunProperties4.Append(color32);
            paragraphMarkRunProperties4.Append(fontSize24);
            paragraphMarkRunProperties4.Append(fontSizeComplexScript24);

            paragraphProperties5.Append(conditionalFormatStyle3);
            paragraphProperties5.Append(paragraphMarkRunProperties4);

            Run run32 = new Run();

            RunProperties runProperties31 = new RunProperties();
            Bold bold23 = new Bold() { Val = false };
            Color color33 = new Color() { Val = "548DD4", ThemeColor = ThemeColorValues.Text2, ThemeTint = "99" };

            runProperties31.Append(bold23);
            runProperties31.Append(color33);
            Text text28 = new Text();
            text28.Text = "From";

            run32.Append(runProperties31);
            run32.Append(text28);

            Run run33 = new Run();

            RunProperties runProperties32 = new RunProperties();
            Bold bold24 = new Bold() { Val = false };
            Color color34 = new Color() { Val = "548DD4", ThemeColor = ThemeColorValues.Text2, ThemeTint = "99" };

            runProperties32.Append(bold24);
            runProperties32.Append(color34);
            Break break5 = new Break();

            run33.Append(runProperties32);
            run33.Append(break5);

            Run run34 = new Run() { RsidRunProperties = "003F5FAE" };

            RunProperties runProperties33 = new RunProperties();
            RunFonts runFonts28 = new RunFonts() { Ascii = "Segoe UI", HighAnsi = "Segoe UI", ComplexScript = "Segoe UI" };
            Bold bold25 = new Bold() { Val = false };
            Color color35 = new Color() { Val = "000000", ThemeColor = ThemeColorValues.Text1 };

            runProperties33.Append(runFonts28);
            runProperties33.Append(bold25);
            runProperties33.Append(color35);
            Text text29 = new Text() { Space = SpaceProcessingModeValues.Preserve };
            text29.Text = "Dr. ";

            run34.Append(runProperties33);
            run34.Append(text29);

            Run run35 = new Run();

            RunProperties runProperties34 = new RunProperties();
            RunFonts runFonts29 = new RunFonts() { Ascii = "Segoe UI", HighAnsi = "Segoe UI", ComplexScript = "Segoe UI" };
            Bold bold26 = new Bold() { Val = false };
            Color color36 = new Color() { Val = "000000", ThemeColor = ThemeColorValues.Text1 };

            runProperties34.Append(runFonts29);
            runProperties34.Append(bold26);
            runProperties34.Append(color36);
            Text text30 = new Text();
            text30.Text = persondetail.FirstName;

            run35.Append(runProperties34);
            run35.Append(text30);

            Run run36 = new Run() { RsidRunProperties = "003F5FAE" };

            RunProperties runProperties35 = new RunProperties();
            RunFonts runFonts30 = new RunFonts() { Ascii = "Segoe UI", HighAnsi = "Segoe UI", ComplexScript = "Segoe UI" };
            Bold bold27 = new Bold() { Val = false };
            Color color37 = new Color() { Val = "000000", ThemeColor = ThemeColorValues.Text1 };

            runProperties35.Append(runFonts30);
            runProperties35.Append(bold27);
            runProperties35.Append(color37);
            Text text31 = new Text() { Space = SpaceProcessingModeValues.Preserve };
            text31.Text = " ";

            run36.Append(runProperties35);
            run36.Append(text31);
            ProofError proofError3 = new ProofError() { Type = ProofingErrorValues.SpellStart };

            Run run37 = new Run() { RsidRunProperties = "003F5FAE" };

            RunProperties runProperties36 = new RunProperties();
            RunFonts runFonts31 = new RunFonts() { Ascii = "Segoe UI", HighAnsi = "Segoe UI", ComplexScript = "Segoe UI" };
            Bold bold28 = new Bold() { Val = false };
            Color color38 = new Color() { Val = "000000", ThemeColor = ThemeColorValues.Text1 };

            runProperties36.Append(runFonts31);
            runProperties36.Append(bold28);
            runProperties36.Append(color38);
            Text text32 = new Text();
            text32.Text = persondetail.LastName;

            run37.Append(runProperties36);
            run37.Append(text32);
            ProofError proofError4 = new ProofError() { Type = ProofingErrorValues.SpellEnd };

            Run run38 = new Run();

            RunProperties runProperties37 = new RunProperties();
            RunFonts runFonts32 = new RunFonts() { Ascii = "Segoe UI", HighAnsi = "Segoe UI", ComplexScript = "Segoe UI" };
            Bold bold29 = new Bold() { Val = false };
            Color color39 = new Color() { Val = "000000", ThemeColor = ThemeColorValues.Text1 };

            runProperties37.Append(runFonts32);
            runProperties37.Append(bold29);
            runProperties37.Append(color39);
            Break break6 = new Break();

            run38.Append(runProperties37);
            run38.Append(break6);

            Run run39 = new Run() { RsidRunProperties = "003F5FAE" };

            RunProperties runProperties38 = new RunProperties();
            RunFonts runFonts33 = new RunFonts() { Ascii = "Segoe UI", HighAnsi = "Segoe UI", ComplexScript = "Segoe UI" };
            Color color40 = new Color() { Val = "17365D", ThemeColor = ThemeColorValues.Text2, ThemeShade = "BF" };
            FontSize fontSize25 = new FontSize() { Val = "12" };
            FontSizeComplexScript fontSizeComplexScript25 = new FontSizeComplexScript() { Val = "18" };

            runProperties38.Append(runFonts33);
            runProperties38.Append(color40);
            runProperties38.Append(fontSize25);
            runProperties38.Append(fontSizeComplexScript25);
            Text text33 = new Text();
            text33.Text = "Website";

            run39.Append(runProperties38);
            run39.Append(text33);

            Run run40 = new Run();

            RunProperties runProperties39 = new RunProperties();
            RunFonts runFonts34 = new RunFonts() { Ascii = "Segoe UI", HighAnsi = "Segoe UI", ComplexScript = "Segoe UI" };
            Bold bold30 = new Bold() { Val = false };
            Color color41 = new Color() { Val = "000000", ThemeColor = ThemeColorValues.Text1 };
            FontSize fontSize26 = new FontSize() { Val = "18" };
            FontSizeComplexScript fontSizeComplexScript26 = new FontSizeComplexScript() { Val = "18" };

            runProperties39.Append(runFonts34);
            runProperties39.Append(bold30);
            runProperties39.Append(color41);
            runProperties39.Append(fontSize26);
            runProperties39.Append(fontSizeComplexScript26);
            Text text34 = new Text() { Space = SpaceProcessingModeValues.Preserve };
            text34.Text = " : ";

            run40.Append(runProperties39);
            run40.Append(text34);

            Hyperlink hyperlink3 = new Hyperlink() { History = true, Id = "rId6" };

            Run run41 = new Run() { RsidRunProperties = "00366D29" };

            RunProperties runProperties40 = new RunProperties();
            RunStyle runStyle3 = new RunStyle() { Val = "Hyperlink" };
            RunFonts runFonts35 = new RunFonts() { Ascii = "Segoe UI", HighAnsi = "Segoe UI", ComplexScript = "Segoe UI" };
            FontSize fontSize27 = new FontSize() { Val = "18" };
            FontSizeComplexScript fontSizeComplexScript27 = new FontSizeComplexScript() { Val = "18" };

            runProperties40.Append(runStyle3);
            runProperties40.Append(runFonts35);
            runProperties40.Append(fontSize27);
            runProperties40.Append(fontSizeComplexScript27);
            Text text35 = new Text();
            text35.Text = "www.shivam.com";

            run41.Append(runProperties40);
            run41.Append(text35);

            hyperlink3.Append(run41);

            Run run42 = new Run();

            RunProperties runProperties41 = new RunProperties();
            RunFonts runFonts36 = new RunFonts() { Ascii = "Segoe UI", HighAnsi = "Segoe UI", ComplexScript = "Segoe UI" };
            Bold bold31 = new Bold() { Val = false };
            Color color42 = new Color() { Val = "000000", ThemeColor = ThemeColorValues.Text1 };
            FontSize fontSize28 = new FontSize() { Val = "18" };
            FontSizeComplexScript fontSizeComplexScript28 = new FontSizeComplexScript() { Val = "18" };

            runProperties41.Append(runFonts36);
            runProperties41.Append(bold31);
            runProperties41.Append(color42);
            runProperties41.Append(fontSize28);
            runProperties41.Append(fontSizeComplexScript28);
            Break break7 = new Break();

            run42.Append(runProperties41);
            run42.Append(break7);

            Run run43 = new Run();

            RunProperties runProperties42 = new RunProperties();
            RunFonts runFonts37 = new RunFonts() { Ascii = "Segoe UI", HighAnsi = "Segoe UI", ComplexScript = "Segoe UI" };
            Color color43 = new Color() { Val = "17365D", ThemeColor = ThemeColorValues.Text2, ThemeShade = "BF" };
            FontSize fontSize29 = new FontSize() { Val = "12" };
            FontSizeComplexScript fontSizeComplexScript29 = new FontSizeComplexScript() { Val = "18" };

            runProperties42.Append(runFonts37);
            runProperties42.Append(color43);
            runProperties42.Append(fontSize29);
            runProperties42.Append(fontSizeComplexScript29);
            Text text36 = new Text() { Space = SpaceProcessingModeValues.Preserve };
            text36.Text = "City        ";

            run43.Append(runProperties42);
            run43.Append(text36);

            Run run44 = new Run();

            RunProperties runProperties43 = new RunProperties();
            RunFonts runFonts38 = new RunFonts() { Ascii = "Segoe UI", HighAnsi = "Segoe UI", ComplexScript = "Segoe UI" };
            Bold bold32 = new Bold() { Val = false };
            Color color44 = new Color() { Val = "000000", ThemeColor = ThemeColorValues.Text1 };
            FontSize fontSize30 = new FontSize() { Val = "18" };
            FontSizeComplexScript fontSizeComplexScript30 = new FontSizeComplexScript() { Val = "18" };

            runProperties43.Append(runFonts38);
            runProperties43.Append(bold32);
            runProperties43.Append(color44);
            runProperties43.Append(fontSize30);
            runProperties43.Append(fontSizeComplexScript30);
            Text text37 = new Text() { Space = SpaceProcessingModeValues.Preserve };
            text37.Text = persondetail.city;

            run44.Append(runProperties43);
            run44.Append(text37);

            paragraph5.Append(paragraphProperties5);
            paragraph5.Append(run32);
            paragraph5.Append(run33);
            paragraph5.Append(run34);
            paragraph5.Append(run35);
            paragraph5.Append(run36);
            paragraph5.Append(proofError3);
            paragraph5.Append(run37);
            paragraph5.Append(proofError4);
            paragraph5.Append(run38);
            paragraph5.Append(run39);
            paragraph5.Append(run40);
            paragraph5.Append(hyperlink3);
            paragraph5.Append(run42);
            paragraph5.Append(run43);
            paragraph5.Append(run44);

            Paragraph paragraph6 = new Paragraph() { RsidParagraphAddition = "00E67B26", RsidParagraphProperties = "00E67B26", RsidRunAdditionDefault = "00E67B26" };

            ParagraphProperties paragraphProperties6 = new ParagraphProperties();
            ConditionalFormatStyle conditionalFormatStyle4 = new ConditionalFormatStyle() { Val = "100000000000" };

            ParagraphMarkRunProperties paragraphMarkRunProperties5 = new ParagraphMarkRunProperties();
            RunFonts runFonts39 = new RunFonts() { Ascii = "Segoe UI", HighAnsi = "Segoe UI", ComplexScript = "Segoe UI" };
            Bold bold33 = new Bold() { Val = false };
            Color color45 = new Color() { Val = "000000", ThemeColor = ThemeColorValues.Text1 };
            FontSize fontSize31 = new FontSize() { Val = "18" };
            FontSizeComplexScript fontSizeComplexScript31 = new FontSizeComplexScript() { Val = "18" };

            paragraphMarkRunProperties5.Append(runFonts39);
            paragraphMarkRunProperties5.Append(bold33);
            paragraphMarkRunProperties5.Append(color45);
            paragraphMarkRunProperties5.Append(fontSize31);
            paragraphMarkRunProperties5.Append(fontSizeComplexScript31);

            paragraphProperties6.Append(conditionalFormatStyle4);
            paragraphProperties6.Append(paragraphMarkRunProperties5);

            Run run45 = new Run();

            RunProperties runProperties44 = new RunProperties();
            RunFonts runFonts40 = new RunFonts() { Ascii = "Segoe UI", HighAnsi = "Segoe UI", ComplexScript = "Segoe UI" };
            Color color46 = new Color() { Val = "17365D", ThemeColor = ThemeColorValues.Text2, ThemeShade = "BF" };
            FontSize fontSize32 = new FontSize() { Val = "12" };
            FontSizeComplexScript fontSizeComplexScript32 = new FontSizeComplexScript() { Val = "18" };

            runProperties44.Append(runFonts40);
            runProperties44.Append(color46);
            runProperties44.Append(fontSize32);
            runProperties44.Append(fontSizeComplexScript32);
            Text text38 = new Text() { Space = SpaceProcessingModeValues.Preserve };
            text38.Text = "Street :    ";

            run45.Append(runProperties44);
            run45.Append(text38);

            Run run46 = new Run();

            RunProperties runProperties45 = new RunProperties();
            RunFonts runFonts41 = new RunFonts() { Ascii = "Segoe UI", HighAnsi = "Segoe UI", ComplexScript = "Segoe UI" };
            Bold bold34 = new Bold() { Val = false };
            Color color47 = new Color() { Val = "000000", ThemeColor = ThemeColorValues.Text1 };
            FontSize fontSize33 = new FontSize() { Val = "18" };
            FontSizeComplexScript fontSizeComplexScript33 = new FontSizeComplexScript() { Val = "18" };

            runProperties45.Append(runFonts41);
            runProperties45.Append(bold34);
            runProperties45.Append(color47);
            runProperties45.Append(fontSize33);
            runProperties45.Append(fontSizeComplexScript33);
            Text text39 = new Text() { Space = SpaceProcessingModeValues.Preserve };
            text39.Text = persondetail.streetAdd;

            run46.Append(runProperties45);
            run46.Append(text39);

            Run run47 = new Run();

            RunProperties runProperties46 = new RunProperties();
            RunFonts runFonts42 = new RunFonts() { Ascii = "Segoe UI", HighAnsi = "Segoe UI", ComplexScript = "Segoe UI" };
            Bold bold35 = new Bold() { Val = false };
            Color color48 = new Color() { Val = "000000", ThemeColor = ThemeColorValues.Text1 };
            FontSize fontSize34 = new FontSize() { Val = "18" };
            FontSizeComplexScript fontSizeComplexScript34 = new FontSizeComplexScript() { Val = "18" };

            runProperties46.Append(runFonts42);
            runProperties46.Append(bold35);
            runProperties46.Append(color48);
            runProperties46.Append(fontSize34);
            runProperties46.Append(fontSizeComplexScript34);
            Break break8 = new Break();

            run47.Append(runProperties46);
            run47.Append(break8);

            Run run48 = new Run();

            RunProperties runProperties47 = new RunProperties();
            RunFonts runFonts43 = new RunFonts() { Ascii = "Segoe UI", HighAnsi = "Segoe UI", ComplexScript = "Segoe UI" };
            Color color49 = new Color() { Val = "17365D", ThemeColor = ThemeColorValues.Text2, ThemeShade = "BF" };
            FontSize fontSize35 = new FontSize() { Val = "12" };
            FontSizeComplexScript fontSizeComplexScript35 = new FontSizeComplexScript() { Val = "18" };

            runProperties47.Append(runFonts43);
            runProperties47.Append(color49);
            runProperties47.Append(fontSize35);
            runProperties47.Append(fontSizeComplexScript35);
            Text text40 = new Text() { Space = SpaceProcessingModeValues.Preserve };
            text40.Text = "Phone :    ";

            run48.Append(runProperties47);
            run48.Append(text40);

            Run run49 = new Run();

            RunProperties runProperties48 = new RunProperties();
            RunFonts runFonts44 = new RunFonts() { Ascii = "Segoe UI", HighAnsi = "Segoe UI", ComplexScript = "Segoe UI" };
            Bold bold36 = new Bold() { Val = false };
            Color color50 = new Color() { Val = "000000", ThemeColor = ThemeColorValues.Text1 };
            FontSize fontSize36 = new FontSize() { Val = "18" };
            FontSizeComplexScript fontSizeComplexScript36 = new FontSizeComplexScript() { Val = "18" };

            runProperties48.Append(runFonts44);
            runProperties48.Append(bold36);
            runProperties48.Append(color50);
            runProperties48.Append(fontSize36);
            runProperties48.Append(fontSizeComplexScript36);
            Text text41 = new Text() { Space = SpaceProcessingModeValues.Preserve };
            text41.Text = " ";

            run49.Append(runProperties48);
            run49.Append(text41);

            Run run50 = new Run() { RsidRunProperties = "00E67B26" };

            RunProperties runProperties49 = new RunProperties();
            RunFonts runFonts45 = new RunFonts() { Ascii = "Segoe UI", HighAnsi = "Segoe UI", ComplexScript = "Segoe UI" };
            Bold bold37 = new Bold() { Val = false };
            BoldComplexScript boldComplexScript6 = new BoldComplexScript() { Val = false };
            Color color51 = new Color() { Val = "000000", ThemeColor = ThemeColorValues.Text1 };
            FontSize fontSize37 = new FontSize() { Val = "18" };
            FontSizeComplexScript fontSizeComplexScript37 = new FontSizeComplexScript() { Val = "18" };

            runProperties49.Append(runFonts45);
            runProperties49.Append(bold37);
            runProperties49.Append(boldComplexScript6);
            runProperties49.Append(color51);
            runProperties49.Append(fontSize37);
            runProperties49.Append(fontSizeComplexScript37);
            Text text42 = new Text();
            text42.Text = ":";

            run50.Append(runProperties49);
            run50.Append(text42);

            Run run51 = new Run();

            RunProperties runProperties50 = new RunProperties();
            RunFonts runFonts46 = new RunFonts() { Ascii = "Segoe UI", HighAnsi = "Segoe UI", ComplexScript = "Segoe UI" };
            Bold bold38 = new Bold() { Val = false };
            BoldComplexScript boldComplexScript7 = new BoldComplexScript() { Val = false };
            Color color52 = new Color() { Val = "000000", ThemeColor = ThemeColorValues.Text1 };
            FontSize fontSize38 = new FontSize() { Val = "18" };
            FontSizeComplexScript fontSizeComplexScript38 = new FontSizeComplexScript() { Val = "18" };

            runProperties50.Append(runFonts46);
            runProperties50.Append(bold38);
            runProperties50.Append(boldComplexScript7);
            runProperties50.Append(color52);
            runProperties50.Append(fontSize38);
            runProperties50.Append(fontSizeComplexScript38);
            Text text43 = new Text() { Space = SpaceProcessingModeValues.Preserve };
            text43.Text = " ";

            run51.Append(runProperties50);
            run51.Append(text43);

            Run run52 = new Run() { RsidRunProperties = "00E67B26" };

            RunProperties runProperties51 = new RunProperties();
            RunFonts runFonts47 = new RunFonts() { Ascii = "Segoe UI", HighAnsi = "Segoe UI", ComplexScript = "Segoe UI" };
            Bold bold39 = new Bold() { Val = false };
            BoldComplexScript boldComplexScript8 = new BoldComplexScript() { Val = false };
            Color color53 = new Color() { Val = "000000", ThemeColor = ThemeColorValues.Text1 };
            FontSize fontSize39 = new FontSize() { Val = "18" };
            FontSizeComplexScript fontSizeComplexScript39 = new FontSizeComplexScript() { Val = "18" };

            runProperties51.Append(runFonts47);
            runProperties51.Append(bold39);
            runProperties51.Append(boldComplexScript8);
            runProperties51.Append(color53);
            runProperties51.Append(fontSize39);
            runProperties51.Append(fontSizeComplexScript39);
            Text text44 = new Text();
            text44.Text = persondetail.phone;

            run52.Append(runProperties51);
            run52.Append(text44);

            paragraph6.Append(paragraphProperties6);
            paragraph6.Append(run45);
            paragraph6.Append(run46);
            paragraph6.Append(run47);
            paragraph6.Append(run48);
            paragraph6.Append(run49);
            paragraph6.Append(run50);
            paragraph6.Append(run51);
            paragraph6.Append(run52);

            Paragraph paragraph7 = new Paragraph() { RsidParagraphAddition = "003F5FAE", RsidParagraphProperties = "00E67B26", RsidRunAdditionDefault = "00E67B26" };

            ParagraphProperties paragraphProperties7 = new ParagraphProperties();
            ConditionalFormatStyle conditionalFormatStyle5 = new ConditionalFormatStyle() { Val = "100000000000" };

            ParagraphMarkRunProperties paragraphMarkRunProperties6 = new ParagraphMarkRunProperties();
            Bold bold40 = new Bold() { Val = false };
            Color color54 = new Color() { Val = "548DD4", ThemeColor = ThemeColorValues.Text2, ThemeTint = "99" };

            paragraphMarkRunProperties6.Append(bold40);
            paragraphMarkRunProperties6.Append(color54);

            paragraphProperties7.Append(conditionalFormatStyle5);
            paragraphProperties7.Append(paragraphMarkRunProperties6);

            Run run53 = new Run();

            RunProperties runProperties52 = new RunProperties();
            RunFonts runFonts48 = new RunFonts() { Ascii = "Segoe UI", HighAnsi = "Segoe UI", ComplexScript = "Segoe UI" };
            Color color55 = new Color() { Val = "17365D", ThemeColor = ThemeColorValues.Text2, ThemeShade = "BF" };
            FontSize fontSize40 = new FontSize() { Val = "12" };
            FontSizeComplexScript fontSizeComplexScript40 = new FontSizeComplexScript() { Val = "18" };

            runProperties52.Append(runFonts48);
            runProperties52.Append(color55);
            runProperties52.Append(fontSize40);
            runProperties52.Append(fontSizeComplexScript40);
            Text text45 = new Text() { Space = SpaceProcessingModeValues.Preserve };
            text45.Text = "Email     ";

            run53.Append(runProperties52);
            run53.Append(text45);

            Run run54 = new Run();

            RunProperties runProperties53 = new RunProperties();
            RunFonts runFonts49 = new RunFonts() { Ascii = "Segoe UI", HighAnsi = "Segoe UI", ComplexScript = "Segoe UI" };
            Bold bold41 = new Bold() { Val = false };
            Color color56 = new Color() { Val = "000000", ThemeColor = ThemeColorValues.Text1 };
            FontSize fontSize41 = new FontSize() { Val = "18" };
            FontSizeComplexScript fontSizeComplexScript41 = new FontSizeComplexScript() { Val = "18" };

            runProperties53.Append(runFonts49);
            runProperties53.Append(bold41);
            runProperties53.Append(color56);
            runProperties53.Append(fontSize41);
            runProperties53.Append(fontSizeComplexScript41);
            Text text46 = new Text() { Space = SpaceProcessingModeValues.Preserve };
            text46.Text = " ";

            run54.Append(runProperties53);
            run54.Append(text46);

            Run run55 = new Run() { RsidRunProperties = "00E67B26" };

            RunProperties runProperties54 = new RunProperties();
            RunFonts runFonts50 = new RunFonts() { Ascii = "Segoe UI", HighAnsi = "Segoe UI", ComplexScript = "Segoe UI" };
            Bold bold42 = new Bold() { Val = false };
            BoldComplexScript boldComplexScript9 = new BoldComplexScript() { Val = false };
            Color color57 = new Color() { Val = "000000", ThemeColor = ThemeColorValues.Text1 };
            FontSize fontSize42 = new FontSize() { Val = "18" };
            FontSizeComplexScript fontSizeComplexScript42 = new FontSizeComplexScript() { Val = "18" };

            runProperties54.Append(runFonts50);
            runProperties54.Append(bold42);
            runProperties54.Append(boldComplexScript9);
            runProperties54.Append(color57);
            runProperties54.Append(fontSize42);
            runProperties54.Append(fontSizeComplexScript42);
            Text text47 = new Text();
            text47.Text = ":";

            run55.Append(runProperties54);
            run55.Append(text47);

            Run run56 = new Run();

            RunProperties runProperties55 = new RunProperties();
            RunFonts runFonts51 = new RunFonts() { Ascii = "Segoe UI", HighAnsi = "Segoe UI", ComplexScript = "Segoe UI" };
            Bold bold43 = new Bold() { Val = false };
            BoldComplexScript boldComplexScript10 = new BoldComplexScript() { Val = false };
            Color color58 = new Color() { Val = "000000", ThemeColor = ThemeColorValues.Text1 };
            FontSize fontSize43 = new FontSize() { Val = "18" };
            FontSizeComplexScript fontSizeComplexScript43 = new FontSizeComplexScript() { Val = "18" };

            runProperties55.Append(runFonts51);
            runProperties55.Append(bold43);
            runProperties55.Append(boldComplexScript10);
            runProperties55.Append(color58);
            runProperties55.Append(fontSize43);
            runProperties55.Append(fontSizeComplexScript43);
            Text text48 = new Text() { Space = SpaceProcessingModeValues.Preserve };
            text48.Text = " ";

            run56.Append(runProperties55);
            run56.Append(text48);

            Hyperlink hyperlink4 = new Hyperlink() { History = true, Id = "rId7" };

            Run run57 = new Run() { RsidRunProperties = "00366D29" };

            RunProperties runProperties56 = new RunProperties();
            RunStyle runStyle4 = new RunStyle() { Val = "Hyperlink" };
            RunFonts runFonts52 = new RunFonts() { Ascii = "Segoe UI", HighAnsi = "Segoe UI", ComplexScript = "Segoe UI" };
            FontSize fontSize44 = new FontSize() { Val = "18" };
            FontSizeComplexScript fontSizeComplexScript44 = new FontSizeComplexScript() { Val = "18" };

            runProperties56.Append(runStyle4);
            runProperties56.Append(runFonts52);
            runProperties56.Append(fontSize44);
            runProperties56.Append(fontSizeComplexScript44);
            Text text49 = new Text();
            text49.Text = persondetail.Email;

            run57.Append(runProperties56);
            run57.Append(text49);

            hyperlink4.Append(run57);

            paragraph7.Append(paragraphProperties7);
            paragraph7.Append(run53);
            paragraph7.Append(run54);
            paragraph7.Append(run55);
            paragraph7.Append(run56);
            paragraph7.Append(hyperlink4);

            tableCell4.Append(tableCellProperties4);
            tableCell4.Append(paragraph5);
            tableCell4.Append(paragraph6);
            tableCell4.Append(paragraph7);

            tableRow3.Append(tableRowProperties3);
            tableRow3.Append(tableCell3);
            tableRow3.Append(tableCell4);

            TableRow tableRow4 = new TableRow() { RsidTableRowAddition = "00E67B26", RsidTableRowProperties = "00E67B26" };

            TableRowProperties tableRowProperties4 = new TableRowProperties();
            ConditionalFormatStyle conditionalFormatStyle6 = new ConditionalFormatStyle() { Val = "000000100000" };
            TableRowHeight tableRowHeight4 = new TableRowHeight() { Val = (UInt32Value)284U };

            tableRowProperties4.Append(conditionalFormatStyle6);
            tableRowProperties4.Append(tableRowHeight4);

            TableCell tableCell5 = new TableCell();

            TableCellProperties tableCellProperties5 = new TableCellProperties();
            ConditionalFormatStyle conditionalFormatStyle7 = new ConditionalFormatStyle() { Val = "001000000000" };
            TableCellWidth tableCellWidth5 = new TableCellWidth() { Width = "4741", Type = TableWidthUnitValues.Dxa };

            tableCellProperties5.Append(conditionalFormatStyle7);
            tableCellProperties5.Append(tableCellWidth5);

            Paragraph paragraph8 = new Paragraph() { RsidParagraphAddition = "00E67B26", RsidParagraphProperties = "003F5FAE", RsidRunAdditionDefault = "00E67B26" };

            ParagraphProperties paragraphProperties8 = new ParagraphProperties();

            ParagraphMarkRunProperties paragraphMarkRunProperties7 = new ParagraphMarkRunProperties();
            Bold bold44 = new Bold() { Val = false };
            Color color59 = new Color() { Val = "548DD4", ThemeColor = ThemeColorValues.Text2, ThemeTint = "99" };

            paragraphMarkRunProperties7.Append(bold44);
            paragraphMarkRunProperties7.Append(color59);

            paragraphProperties8.Append(paragraphMarkRunProperties7);

            paragraph8.Append(paragraphProperties8);

            tableCell5.Append(tableCellProperties5);
            tableCell5.Append(paragraph8);

            TableCell tableCell6 = new TableCell();

            TableCellProperties tableCellProperties6 = new TableCellProperties();
            TableCellWidth tableCellWidth6 = new TableCellWidth() { Width = "4742", Type = TableWidthUnitValues.Dxa };

            tableCellProperties6.Append(tableCellWidth6);

            Paragraph paragraph9 = new Paragraph() { RsidParagraphAddition = "00E67B26", RsidParagraphProperties = "00E67B26", RsidRunAdditionDefault = "00E67B26" };

            ParagraphProperties paragraphProperties9 = new ParagraphProperties();
            ConditionalFormatStyle conditionalFormatStyle8 = new ConditionalFormatStyle() { Val = "000000100000" };

            ParagraphMarkRunProperties paragraphMarkRunProperties8 = new ParagraphMarkRunProperties();
            Bold bold45 = new Bold();
            Color color60 = new Color() { Val = "548DD4", ThemeColor = ThemeColorValues.Text2, ThemeTint = "99" };

            paragraphMarkRunProperties8.Append(bold45);
            paragraphMarkRunProperties8.Append(color60);

            paragraphProperties9.Append(conditionalFormatStyle8);
            paragraphProperties9.Append(paragraphMarkRunProperties8);

            paragraph9.Append(paragraphProperties9);

            tableCell6.Append(tableCellProperties6);
            tableCell6.Append(paragraph9);

            tableRow4.Append(tableRowProperties4);
            tableRow4.Append(tableCell5);
            tableRow4.Append(tableCell6);

            table2.Append(tableProperties2);
            table2.Append(tableGrid2);
            table2.Append(tableRow3);
            table2.Append(tableRow4);

            Paragraph paragraph10 = new Paragraph() { RsidParagraphAddition = "003F5FAE", RsidRunAdditionDefault = "003F5FAE" };

            ParagraphProperties paragraphProperties10 = new ParagraphProperties();

            ParagraphMarkRunProperties paragraphMarkRunProperties9 = new ParagraphMarkRunProperties();
            Bold bold46 = new Bold();
            Color color61 = new Color() { Val = "548DD4", ThemeColor = ThemeColorValues.Text2, ThemeTint = "99" };

            paragraphMarkRunProperties9.Append(bold46);
            paragraphMarkRunProperties9.Append(color61);

            paragraphProperties10.Append(paragraphMarkRunProperties9);

            paragraph10.Append(paragraphProperties10);

            Table table3 = new Table();

            TableProperties tableProperties3 = new TableProperties();
            TableStyle tableStyle3 = new TableStyle() { Val = "LightShading-Accent1" };
            TableWidth tableWidth3 = new TableWidth() { Width = "0", Type = TableWidthUnitValues.Auto };
            TableIndentation tableIndentation2 = new TableIndentation() { Width = 1, Type = TableWidthUnitValues.Dxa };
            TableLook tableLook3 = new TableLook() { Val = "04A0" };

            tableProperties3.Append(tableStyle3);
            tableProperties3.Append(tableWidth3);
            tableProperties3.Append(tableIndentation2);
            tableProperties3.Append(tableLook3);

            TableGrid tableGrid3 = new TableGrid();
            GridColumn gridColumn4 = new GridColumn() { Width = "3132" };
            GridColumn gridColumn5 = new GridColumn() { Width = "3132" };
            GridColumn gridColumn6 = new GridColumn() { Width = "3132" };

            tableGrid3.Append(gridColumn4);
            tableGrid3.Append(gridColumn5);
            tableGrid3.Append(gridColumn6);

            TableRow tableRow5 = new TableRow() { RsidTableRowAddition = "00E67B26", RsidTableRowProperties = "00E67B26" };

            TableRowProperties tableRowProperties5 = new TableRowProperties();
            ConditionalFormatStyle conditionalFormatStyle9 = new ConditionalFormatStyle() { Val = "100000000000" };
            TableRowHeight tableRowHeight5 = new TableRowHeight() { Val = (UInt32Value)330U };

            tableRowProperties5.Append(conditionalFormatStyle9);
            tableRowProperties5.Append(tableRowHeight5);

            TableCell tableCell7 = new TableCell();

            TableCellProperties tableCellProperties7 = new TableCellProperties();
            ConditionalFormatStyle conditionalFormatStyle10 = new ConditionalFormatStyle() { Val = "001000000000" };
            TableCellWidth tableCellWidth7 = new TableCellWidth() { Width = "3132", Type = TableWidthUnitValues.Dxa };

            tableCellProperties7.Append(conditionalFormatStyle10);
            tableCellProperties7.Append(tableCellWidth7);

            Paragraph paragraph11 = new Paragraph() { RsidParagraphMarkRevision = "00E67B26", RsidParagraphAddition = "00E67B26", RsidRunAdditionDefault = "00E67B26" };

            ParagraphProperties paragraphProperties11 = new ParagraphProperties();

            ParagraphMarkRunProperties paragraphMarkRunProperties10 = new ParagraphMarkRunProperties();
            Color color62 = new Color() { Val = "548DD4", ThemeColor = ThemeColorValues.Text2, ThemeTint = "99" };

            paragraphMarkRunProperties10.Append(color62);

            paragraphProperties11.Append(paragraphMarkRunProperties10);

            Run run58 = new Run() { RsidRunProperties = "00E67B26" };

            RunProperties runProperties57 = new RunProperties();
            Color color63 = new Color() { Val = "548DD4", ThemeColor = ThemeColorValues.Text2, ThemeTint = "99" };

            runProperties57.Append(color63);
            Text text50 = new Text();
            text50.Text = "Invoiced Date";

            run58.Append(runProperties57);
            run58.Append(text50);

            paragraph11.Append(paragraphProperties11);
            paragraph11.Append(run58);

            tableCell7.Append(tableCellProperties7);
            tableCell7.Append(paragraph11);

            TableCell tableCell8 = new TableCell();

            TableCellProperties tableCellProperties8 = new TableCellProperties();
            TableCellWidth tableCellWidth8 = new TableCellWidth() { Width = "3132", Type = TableWidthUnitValues.Dxa };

            tableCellProperties8.Append(tableCellWidth8);

            Paragraph paragraph12 = new Paragraph() { RsidParagraphMarkRevision = "00E67B26", RsidParagraphAddition = "00E67B26", RsidRunAdditionDefault = "00E67B26" };

            ParagraphProperties paragraphProperties12 = new ParagraphProperties();
            ConditionalFormatStyle conditionalFormatStyle11 = new ConditionalFormatStyle() { Val = "100000000000" };

            ParagraphMarkRunProperties paragraphMarkRunProperties11 = new ParagraphMarkRunProperties();
            Color color64 = new Color() { Val = "548DD4", ThemeColor = ThemeColorValues.Text2, ThemeTint = "99" };

            paragraphMarkRunProperties11.Append(color64);

            paragraphProperties12.Append(conditionalFormatStyle11);
            paragraphProperties12.Append(paragraphMarkRunProperties11);

            Run run59 = new Run() { RsidRunProperties = "00E67B26" };

            RunProperties runProperties58 = new RunProperties();
            Color color65 = new Color() { Val = "548DD4", ThemeColor = ThemeColorValues.Text2, ThemeTint = "99" };

            runProperties58.Append(color65);
            Text text51 = new Text();
            text51.Text = "Session";

            run59.Append(runProperties58);
            run59.Append(text51);

            paragraph12.Append(paragraphProperties12);
            paragraph12.Append(run59);

            tableCell8.Append(tableCellProperties8);
            tableCell8.Append(paragraph12);

            TableCell tableCell9 = new TableCell();

            TableCellProperties tableCellProperties9 = new TableCellProperties();
            TableCellWidth tableCellWidth9 = new TableCellWidth() { Width = "3132", Type = TableWidthUnitValues.Dxa };

            tableCellProperties9.Append(tableCellWidth9);

            Paragraph paragraph13 = new Paragraph() { RsidParagraphMarkRevision = "00E67B26", RsidParagraphAddition = "00E67B26", RsidRunAdditionDefault = "00E67B26" };

            ParagraphProperties paragraphProperties13 = new ParagraphProperties();
            ConditionalFormatStyle conditionalFormatStyle12 = new ConditionalFormatStyle() { Val = "100000000000" };

            ParagraphMarkRunProperties paragraphMarkRunProperties12 = new ParagraphMarkRunProperties();
            Color color66 = new Color() { Val = "548DD4", ThemeColor = ThemeColorValues.Text2, ThemeTint = "99" };

            paragraphMarkRunProperties12.Append(color66);

            paragraphProperties13.Append(conditionalFormatStyle12);
            paragraphProperties13.Append(paragraphMarkRunProperties12);

            Run run60 = new Run() { RsidRunProperties = "00E67B26" };

            RunProperties runProperties59 = new RunProperties();
            Color color67 = new Color() { Val = "548DD4", ThemeColor = ThemeColorValues.Text2, ThemeTint = "99" };

            runProperties59.Append(color67);
            Text text52 = new Text();
            text52.Text = "Fees";

            run60.Append(runProperties59);
            run60.Append(text52);

            paragraph13.Append(paragraphProperties13);
            paragraph13.Append(run60);

            tableCell9.Append(tableCellProperties9);
            tableCell9.Append(paragraph13);

            tableRow5.Append(tableRowProperties5);
            tableRow5.Append(tableCell7);
            tableRow5.Append(tableCell8);
            tableRow5.Append(tableCell9);

            table3.Append(tableProperties3);
            table3.Append(tableGrid3);
            table3.Append(tableRow5);

            foreach (var item in InvoiceD)
            {
                startDate = item.Appointment.startDate.ToString();
                endDate = item.Appointment.endDate.ToString();
                TableRow tableRow6 = new TableRow() { RsidTableRowAddition = "00E67B26", RsidTableRowProperties = "00E67B26" };

                TableRowProperties tableRowProperties6 = new TableRowProperties();
                ConditionalFormatStyle conditionalFormatStyle13 = new ConditionalFormatStyle() { Val = "000000100000" };
                TableRowHeight tableRowHeight6 = new TableRowHeight() { Val = (UInt32Value)330U };

                tableRowProperties6.Append(conditionalFormatStyle13);
                tableRowProperties6.Append(tableRowHeight6);

                TableCell tableCell10 = new TableCell();

                TableCellProperties tableCellProperties10 = new TableCellProperties();
                ConditionalFormatStyle conditionalFormatStyle14 = new ConditionalFormatStyle() { Val = "001000000000" };
                TableCellWidth tableCellWidth10 = new TableCellWidth() { Width = "3132", Type = TableWidthUnitValues.Dxa };

                tableCellProperties10.Append(conditionalFormatStyle14);
                tableCellProperties10.Append(tableCellWidth10);

                Paragraph paragraph14 = new Paragraph() { RsidParagraphMarkRevision = "00E67B26", RsidParagraphAddition = "00E67B26", RsidRunAdditionDefault = "00E67B26" };

                ParagraphProperties paragraphProperties14 = new ParagraphProperties();

                ParagraphMarkRunProperties paragraphMarkRunProperties13 = new ParagraphMarkRunProperties();
                Color color68 = new Color() { Val = "548DD4", ThemeColor = ThemeColorValues.Text2, ThemeTint = "99" };

                paragraphMarkRunProperties13.Append(color68);

                paragraphProperties14.Append(paragraphMarkRunProperties13);

                Run run61 = new Run();

                RunProperties runProperties60 = new RunProperties();
                RunFonts runFonts53 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana" };
                Color color69 = new Color() { Val = "000000" };
                FontSize fontSize45 = new FontSize() { Val = "15" };
                FontSizeComplexScript fontSizeComplexScript45 = new FontSizeComplexScript() { Val = "15" };

                runProperties60.Append(runFonts53);
                runProperties60.Append(color69);
                runProperties60.Append(fontSize45);
                runProperties60.Append(fontSizeComplexScript45);
                Text text53 = new Text();
                text53.Text = item.InvoicedDate.ToString();

                run61.Append(runProperties60);
                run61.Append(text53);

                paragraph14.Append(paragraphProperties14);
                paragraph14.Append(run61);

                tableCell10.Append(tableCellProperties10);
                tableCell10.Append(paragraph14);

                TableCell tableCell11 = new TableCell();

                TableCellProperties tableCellProperties11 = new TableCellProperties();
                TableCellWidth tableCellWidth11 = new TableCellWidth() { Width = "3132", Type = TableWidthUnitValues.Dxa };

                tableCellProperties11.Append(tableCellWidth11);

                Paragraph paragraph15 = new Paragraph() { RsidParagraphMarkRevision = "00E67B26", RsidParagraphAddition = "00E67B26", RsidRunAdditionDefault = "00E67B26" };

                ParagraphProperties paragraphProperties15 = new ParagraphProperties();
                ConditionalFormatStyle conditionalFormatStyle15 = new ConditionalFormatStyle() { Val = "000000100000" };

                ParagraphMarkRunProperties paragraphMarkRunProperties14 = new ParagraphMarkRunProperties();
                Color color70 = new Color() { Val = "000000", ThemeColor = ThemeColorValues.Text1 };

                paragraphMarkRunProperties14.Append(color70);

                paragraphProperties15.Append(conditionalFormatStyle15);
                paragraphProperties15.Append(paragraphMarkRunProperties14);

                Run run62 = new Run() { RsidRunProperties = "00E67B26" };

                RunProperties runProperties61 = new RunProperties();
                Color color71 = new Color() { Val = "000000", ThemeColor = ThemeColorValues.Text1 };

                runProperties61.Append(color71);
                Text text54 = new Text();
                text54.Text = item.SessionName;

                run62.Append(runProperties61);
                run62.Append(text54);

                paragraph15.Append(paragraphProperties15);
                paragraph15.Append(run62);

                tableCell11.Append(tableCellProperties11);
                tableCell11.Append(paragraph15);

                TableCell tableCell12 = new TableCell();

                TableCellProperties tableCellProperties12 = new TableCellProperties();
                TableCellWidth tableCellWidth12 = new TableCellWidth() { Width = "3132", Type = TableWidthUnitValues.Dxa };

                tableCellProperties12.Append(tableCellWidth12);

                Paragraph paragraph16 = new Paragraph() { RsidParagraphMarkRevision = "00E67B26", RsidParagraphAddition = "00E67B26", RsidRunAdditionDefault = "00E67B26" };

                ParagraphProperties paragraphProperties16 = new ParagraphProperties();
                ConditionalFormatStyle conditionalFormatStyle16 = new ConditionalFormatStyle() { Val = "000000100000" };

                ParagraphMarkRunProperties paragraphMarkRunProperties15 = new ParagraphMarkRunProperties();
                Color color72 = new Color() { Val = "000000", ThemeColor = ThemeColorValues.Text1 };

                paragraphMarkRunProperties15.Append(color72);

                paragraphProperties16.Append(conditionalFormatStyle16);
                paragraphProperties16.Append(paragraphMarkRunProperties15);

                Run run63 = new Run() { RsidRunProperties = "00E67B26" };

                RunProperties runProperties62 = new RunProperties();
                Color color73 = new Color() { Val = "000000", ThemeColor = ThemeColorValues.Text1 };

                runProperties62.Append(color73);
                Text text55 = new Text();
                text55.Text = item.Appointment.Total.ToString();

                run63.Append(runProperties62);
                run63.Append(text55);

                paragraph16.Append(paragraphProperties16);
                paragraph16.Append(run63);

                tableCell12.Append(tableCellProperties12);
                tableCell12.Append(paragraph16);

                tableRow6.Append(tableRowProperties6);
                tableRow6.Append(tableCell10);
                tableRow6.Append(tableCell11);
                tableRow6.Append(tableCell12);

                table3.Append(tableRow6);
            }
            //End loop
            Paragraph paragraph23 = new Paragraph() { RsidParagraphMarkRevision = "003F5FAE", RsidParagraphAddition = "00E67B26", RsidRunAdditionDefault = "00E67B26" };

            ParagraphProperties paragraphProperties23 = new ParagraphProperties();

            ParagraphMarkRunProperties paragraphMarkRunProperties22 = new ParagraphMarkRunProperties();
            Bold bold47 = new Bold();
            Color color83 = new Color() { Val = "548DD4", ThemeColor = ThemeColorValues.Text2, ThemeTint = "99" };

            paragraphMarkRunProperties22.Append(bold47);
            paragraphMarkRunProperties22.Append(color83);

            paragraphProperties23.Append(paragraphMarkRunProperties22);

            paragraph23.Append(paragraphProperties23);

            tableCell2.Append(tableCellProperties2);
            tableCell2.Append(table2);
            tableCell2.Append(paragraph10);
            tableCell2.Append(table3);
            tableCell2.Append(paragraph23);

            tableRow2.Append(tableRowProperties2);
            tableRow2.Append(tableCell2);

            TableRow tableRow9 = new TableRow() { RsidTableRowAddition = "003F5FAE", RsidTableRowProperties = "00E67B26" };

            TableRowProperties tableRowProperties9 = new TableRowProperties();
            TableRowHeight tableRowHeight9 = new TableRowHeight() { Val = (UInt32Value)394U };

            tableRowProperties9.Append(tableRowHeight9);

            TableCell tableCell19 = new TableCell();

            TableCellProperties tableCellProperties19 = new TableCellProperties();
            TableCellWidth tableCellWidth19 = new TableCellWidth() { Width = "9627", Type = TableWidthUnitValues.Dxa };

            tableCellProperties19.Append(tableCellWidth19);

            Table table4 = new Table();

            TableProperties tableProperties4 = new TableProperties();
            TableStyle tableStyle4 = new TableStyle() { Val = "LightShading-Accent1" };
            TableWidth tableWidth4 = new TableWidth() { Width = "0", Type = TableWidthUnitValues.Auto };
            TableIndentation tableIndentation3 = new TableIndentation() { Width = 1, Type = TableWidthUnitValues.Dxa };
            TableLook tableLook4 = new TableLook() { Val = "04A0" };

            tableProperties4.Append(tableStyle4);
            tableProperties4.Append(tableWidth4);
            tableProperties4.Append(tableIndentation3);
            tableProperties4.Append(tableLook4);

            TableGrid tableGrid4 = new TableGrid();
            GridColumn gridColumn7 = new GridColumn() { Width = "3197" };
            GridColumn gridColumn8 = new GridColumn() { Width = "3107" };
            GridColumn gridColumn9 = new GridColumn() { Width = "3105" };

            tableGrid4.Append(gridColumn7);
            tableGrid4.Append(gridColumn8);
            tableGrid4.Append(gridColumn9);

            TableRow tableRow10 = new TableRow() { RsidTableRowAddition = "00E67B26", RsidTableRowProperties = "00905126" };

            TableRowProperties tableRowProperties10 = new TableRowProperties();
            ConditionalFormatStyle conditionalFormatStyle24 = new ConditionalFormatStyle() { Val = "100000000000" };
            TableRowHeight tableRowHeight10 = new TableRowHeight() { Val = (UInt32Value)51U };

            tableRowProperties10.Append(conditionalFormatStyle24);
            tableRowProperties10.Append(tableRowHeight10);

            TableCell tableCell20 = new TableCell();

            TableCellProperties tableCellProperties20 = new TableCellProperties();
            ConditionalFormatStyle conditionalFormatStyle25 = new ConditionalFormatStyle() { Val = "001000000000" };
            TableCellWidth tableCellWidth20 = new TableCellWidth() { Width = "3197", Type = TableWidthUnitValues.Dxa };

            tableCellProperties20.Append(conditionalFormatStyle25);
            tableCellProperties20.Append(tableCellWidth20);

            Paragraph paragraph24 = new Paragraph() { RsidParagraphAddition = "00E67B26", RsidRunAdditionDefault = "00E67B26" };

            ParagraphProperties paragraphProperties24 = new ParagraphProperties();

            ParagraphMarkRunProperties paragraphMarkRunProperties23 = new ParagraphMarkRunProperties();
            Bold bold48 = new Bold() { Val = false };
            Color color84 = new Color() { Val = "548DD4", ThemeColor = ThemeColorValues.Text2, ThemeTint = "99" };

            paragraphMarkRunProperties23.Append(bold48);
            paragraphMarkRunProperties23.Append(color84);

            paragraphProperties24.Append(paragraphMarkRunProperties23);

            Run run67 = new Run();

            RunProperties runProperties66 = new RunProperties();
            Bold bold49 = new Bold() { Val = false };
            Color color85 = new Color() { Val = "548DD4", ThemeColor = ThemeColorValues.Text2, ThemeTint = "99" };

            runProperties66.Append(bold49);
            runProperties66.Append(color85);
            Text text59 = new Text() { Space = SpaceProcessingModeValues.Preserve };
            text59.Text = "  ";

            run67.Append(runProperties66);
            run67.Append(text59);

            paragraph24.Append(paragraphProperties24);
            paragraph24.Append(run67);

            tableCell20.Append(tableCellProperties20);
            tableCell20.Append(paragraph24);

            TableCell tableCell21 = new TableCell();

            TableCellProperties tableCellProperties21 = new TableCellProperties();
            TableCellWidth tableCellWidth21 = new TableCellWidth() { Width = "3107", Type = TableWidthUnitValues.Dxa };

            tableCellProperties21.Append(tableCellWidth21);

            Paragraph paragraph25 = new Paragraph() { RsidParagraphMarkRevision = "00E67B26", RsidParagraphAddition = "00E67B26", RsidParagraphProperties = "00E67B26", RsidRunAdditionDefault = "00E67B26" };

            ParagraphProperties paragraphProperties25 = new ParagraphProperties();
            ConditionalFormatStyle conditionalFormatStyle26 = new ConditionalFormatStyle() { Val = "100000000000" };

            ParagraphMarkRunProperties paragraphMarkRunProperties24 = new ParagraphMarkRunProperties();
            Bold bold50 = new Bold() { Val = false };
            Color color86 = new Color() { Val = "FF0000" };

            paragraphMarkRunProperties24.Append(bold50);
            paragraphMarkRunProperties24.Append(color86);

            paragraphProperties25.Append(conditionalFormatStyle26);
            paragraphProperties25.Append(paragraphMarkRunProperties24);

            Run run68 = new Run() { RsidRunProperties = "00E67B26" };

            RunProperties runProperties67 = new RunProperties();
            Bold bold51 = new Bold() { Val = false };
            Color color87 = new Color() { Val = "FF0000" };

            runProperties67.Append(bold51);
            runProperties67.Append(color87);
            Text text60 = new Text();
            text60.Text = "Total";

            run68.Append(runProperties67);
            run68.Append(text60);

            paragraph25.Append(paragraphProperties25);
            paragraph25.Append(run68);

            tableCell21.Append(tableCellProperties21);
            tableCell21.Append(paragraph25);

            TableCell tableCell22 = new TableCell();

            TableCellProperties tableCellProperties22 = new TableCellProperties();
            TableCellWidth tableCellWidth22 = new TableCellWidth() { Width = "3105", Type = TableWidthUnitValues.Dxa };

            tableCellProperties22.Append(tableCellWidth22);

            Paragraph paragraph26 = new Paragraph() { RsidParagraphMarkRevision = "00E67B26", RsidParagraphAddition = "00E67B26", RsidRunAdditionDefault = "00E67B26" };

            ParagraphProperties paragraphProperties26 = new ParagraphProperties();
            ConditionalFormatStyle conditionalFormatStyle27 = new ConditionalFormatStyle() { Val = "100000000000" };

            ParagraphMarkRunProperties paragraphMarkRunProperties25 = new ParagraphMarkRunProperties();
            Color color88 = new Color() { Val = "000000", ThemeColor = ThemeColorValues.Text1 };

            paragraphMarkRunProperties25.Append(color88);

            paragraphProperties26.Append(conditionalFormatStyle27);
            paragraphProperties26.Append(paragraphMarkRunProperties25);

            Run run69 = new Run() { RsidRunProperties = "00E67B26" };

            RunProperties runProperties68 = new RunProperties();
            Color color89 = new Color() { Val = "000000", ThemeColor = ThemeColorValues.Text1 };

            runProperties68.Append(color89);
            Text text61 = new Text();
            text61.Text = total.ToString();

            run69.Append(runProperties68);
            run69.Append(text61);

            paragraph26.Append(paragraphProperties26);
            paragraph26.Append(run69);

            tableCell22.Append(tableCellProperties22);
            tableCell22.Append(paragraph26);

            tableRow10.Append(tableRowProperties10);
            tableRow10.Append(tableCell20);
            tableRow10.Append(tableCell21);
            tableRow10.Append(tableCell22);

            table4.Append(tableProperties4);
            table4.Append(tableGrid4);
            table4.Append(tableRow10);

            Paragraph paragraph27 = new Paragraph() { RsidParagraphAddition = "003F5FAE", RsidRunAdditionDefault = "003F5FAE" };

            ParagraphProperties paragraphProperties27 = new ParagraphProperties();

            ParagraphMarkRunProperties paragraphMarkRunProperties26 = new ParagraphMarkRunProperties();
            Bold bold52 = new Bold();
            Color color90 = new Color() { Val = "548DD4", ThemeColor = ThemeColorValues.Text2, ThemeTint = "99" };

            paragraphMarkRunProperties26.Append(bold52);
            paragraphMarkRunProperties26.Append(color90);

            paragraphProperties27.Append(paragraphMarkRunProperties26);

            paragraph27.Append(paragraphProperties27);

            tableCell19.Append(tableCellProperties19);
            tableCell19.Append(table4);
            tableCell19.Append(paragraph27);

            tableRow9.Append(tableRowProperties9);
            tableRow9.Append(tableCell19);

            TableRow tableRow11 = new TableRow() { RsidTableRowAddition = "00E67B26", RsidTableRowProperties = "00E67B26" };

            TableRowProperties tableRowProperties11 = new TableRowProperties();
            TableRowHeight tableRowHeight11 = new TableRowHeight() { Val = (UInt32Value)330U };

            tableRowProperties11.Append(tableRowHeight11);

            TableCell tableCell23 = new TableCell();

            TableCellProperties tableCellProperties23 = new TableCellProperties();
            TableCellWidth tableCellWidth23 = new TableCellWidth() { Width = "9627", Type = TableWidthUnitValues.Dxa };

            tableCellProperties23.Append(tableCellWidth23);

            Paragraph paragraph28 = new Paragraph() { RsidParagraphAddition = "00E67B26", RsidRunAdditionDefault = "00E67B26" };

            ParagraphProperties paragraphProperties28 = new ParagraphProperties();

            ParagraphMarkRunProperties paragraphMarkRunProperties27 = new ParagraphMarkRunProperties();
            Bold bold53 = new Bold();
            Color color91 = new Color() { Val = "548DD4", ThemeColor = ThemeColorValues.Text2, ThemeTint = "99" };

            paragraphMarkRunProperties27.Append(bold53);
            paragraphMarkRunProperties27.Append(color91);

            paragraphProperties28.Append(paragraphMarkRunProperties27);

            paragraph28.Append(paragraphProperties28);

            tableCell23.Append(tableCellProperties23);
            tableCell23.Append(paragraph28);

            tableRow11.Append(tableRowProperties11);
            tableRow11.Append(tableCell23);

            TableRow tableRow12 = new TableRow() { RsidTableRowAddition = "00E67B26", RsidTableRowProperties = "00E67B26" };

            TableRowProperties tableRowProperties12 = new TableRowProperties();
            TableRowHeight tableRowHeight12 = new TableRowHeight() { Val = (UInt32Value)708U };

            tableRowProperties12.Append(tableRowHeight12);

            TableCell tableCell24 = new TableCell();

            TableCellProperties tableCellProperties24 = new TableCellProperties();
            TableCellWidth tableCellWidth24 = new TableCellWidth() { Width = "9627", Type = TableWidthUnitValues.Dxa };

            tableCellProperties24.Append(tableCellWidth24);

            Paragraph paragraph29 = new Paragraph() { RsidParagraphAddition = "00E67B26", RsidParagraphProperties = "00E67B26", RsidRunAdditionDefault = "00E67B26" };

            ParagraphProperties paragraphProperties29 = new ParagraphProperties();
            ParagraphStyleId paragraphStyleId2 = new ParagraphStyleId() { Val = "Heading5" };
            SpacingBetweenLines spacingBetweenLines1 = new SpacingBetweenLines() { Before = "13", After = "38" };

            ParagraphMarkRunProperties paragraphMarkRunProperties28 = new ParagraphMarkRunProperties();
            Bold bold54 = new Bold();
            Color color92 = new Color() { Val = "548DD4", ThemeColor = ThemeColorValues.Text2, ThemeTint = "99" };

            paragraphMarkRunProperties28.Append(bold54);
            paragraphMarkRunProperties28.Append(color92);

            paragraphProperties29.Append(paragraphStyleId2);
            paragraphProperties29.Append(spacingBetweenLines1);
            paragraphProperties29.Append(paragraphMarkRunProperties28);

            Run run70 = new Run();

            RunProperties runProperties69 = new RunProperties();
            Bold bold55 = new Bold();
            Color color93 = new Color() { Val = "548DD4", ThemeColor = ThemeColorValues.Text2, ThemeTint = "99" };

            runProperties69.Append(bold55);
            runProperties69.Append(color93);
            Text text62 = new Text() { Space = SpaceProcessingModeValues.Preserve };
            text62.Text = "Invoice Generated ";

            run70.Append(runProperties69);
            run70.Append(text62);

            Run run71 = new Run();

            RunProperties runProperties70 = new RunProperties();
            Bold bold56 = new Bold();
            Color color94 = new Color() { Val = "000000", ThemeColor = ThemeColorValues.Text1 };

            runProperties70.Append(bold56);
            runProperties70.Append(color94);
            Text text63 = new Text() { Space = SpaceProcessingModeValues.Preserve };
            text63.Text = "For ";

            run71.Append(runProperties70);
            run71.Append(text63);

            Run run72 = new Run() { RsidRunProperties = "00E67B26" };

            RunProperties runProperties71 = new RunProperties();
            Bold bold57 = new Bold();
            Color color95 = new Color() { Val = "548DD4", ThemeColor = ThemeColorValues.Text2, ThemeTint = "99" };

            runProperties71.Append(bold57);
            runProperties71.Append(color95);
            Text text64 = new Text();
            text64.Text = "-";

            run72.Append(runProperties71);
            run72.Append(text64);

            Run run73 = new Run();

            RunProperties runProperties72 = new RunProperties();
            Bold bold58 = new Bold();
            Color color96 = new Color() { Val = "548DD4", ThemeColor = ThemeColorValues.Text2, ThemeTint = "99" };

            runProperties72.Append(bold58);
            runProperties72.Append(color96);
            Text text65 = new Text() { Space = SpaceProcessingModeValues.Preserve };
            text65.Text = " ";

            run73.Append(runProperties72);
            run73.Append(text65);

            Run run74 = new Run() { RsidRunProperties = "00E67B26" };

            RunProperties runProperties73 = new RunProperties();
            Bold bold59 = new Bold();
            Color color97 = new Color() { Val = "548DD4", ThemeColor = ThemeColorValues.Text2, ThemeTint = "99" };

            runProperties73.Append(bold59);
            runProperties73.Append(color97);
            Text text66 = new Text() { Space = SpaceProcessingModeValues.Preserve };
            text66.Text = startDate;

            run74.Append(runProperties73);
            run74.Append(text66);

            Run run75 = new Run() { RsidRunProperties = "00E67B26" };

            RunProperties runProperties74 = new RunProperties();
            Bold bold60 = new Bold();
            Color color98 = new Color() { Val = "000000", ThemeColor = ThemeColorValues.Text1 };

            runProperties74.Append(bold60);
            runProperties74.Append(color98);
            Text text67 = new Text();
            text67.Text = " to ";

            run75.Append(runProperties74);
            run75.Append(text67);

            Run run76 = new Run() { RsidRunProperties = "00E67B26" };

            RunProperties runProperties75 = new RunProperties();
            Bold bold61 = new Bold();
            Color color99 = new Color() { Val = "548DD4", ThemeColor = ThemeColorValues.Text2, ThemeTint = "99" };

            runProperties75.Append(bold61);
            runProperties75.Append(color99);
            Text text68 = new Text() { Space = SpaceProcessingModeValues.Preserve };
            text68.Text = endDate;

            run76.Append(runProperties75);
            run76.Append(text68);

            Run run77 = new Run();

            RunProperties runProperties76 = new RunProperties();
            Bold bold62 = new Bold();
            Color color100 = new Color() { Val = "548DD4", ThemeColor = ThemeColorValues.Text2, ThemeTint = "99" };

            runProperties76.Append(bold62);
            runProperties76.Append(color100);
            Text text69 = new Text() { Space = SpaceProcessingModeValues.Preserve };
            text69.Text = " ";

            run77.Append(runProperties76);
            run77.Append(text69);

            Run run78 = new Run() { RsidRunProperties = "00E67B26" };

            RunProperties runProperties77 = new RunProperties();
            Color color101 = new Color() { Val = "000000", ThemeColor = ThemeColorValues.Text1 };

            runProperties77.Append(color101);
            Text text70 = new Text();
            text70.Text = "period";

            run78.Append(runProperties77);
            run78.Append(text70);

            Run run79 = new Run();

            RunProperties runProperties78 = new RunProperties();
            Color color102 = new Color() { Val = "000000", ThemeColor = ThemeColorValues.Text1 };

            runProperties78.Append(color102);
            Text text71 = new Text() { Space = SpaceProcessingModeValues.Preserve };
            text71.Text = " ";

            run79.Append(runProperties78);
            run79.Append(text71);

            Run run80 = new Run();

            RunProperties runProperties79 = new RunProperties();
            Color color103 = new Color() { Val = "000000", ThemeColor = ThemeColorValues.Text1 };

            runProperties79.Append(color103);
            Break break9 = new Break();

            run80.Append(runProperties79);
            run80.Append(break9);
            ProofError proofError5 = new ProofError() { Type = ProofingErrorValues.GrammarStart };

            Run run81 = new Run() { RsidRunProperties = "00E67B26" };

            RunProperties runProperties80 = new RunProperties();
            Bold bold63 = new Bold();
            Color color104 = new Color() { Val = "548DD4", ThemeColor = ThemeColorValues.Text2, ThemeTint = "99" };

            runProperties80.Append(bold63);
            runProperties80.Append(color104);
            Text text72 = new Text();
            text72.Text = "For";

            run81.Append(runProperties80);
            run81.Append(text72);
            ProofError proofError6 = new ProofError() { Type = ProofingErrorValues.GrammarEnd };

            Run run82 = new Run() { RsidRunProperties = "00E67B26" };

            RunProperties runProperties81 = new RunProperties();
            Bold bold64 = new Bold();
            Color color105 = new Color() { Val = "548DD4", ThemeColor = ThemeColorValues.Text2, ThemeTint = "99" };

            runProperties81.Append(bold64);
            runProperties81.Append(color105);
            Text text73 = new Text() { Space = SpaceProcessingModeValues.Preserve };
            text73.Text = " practice";

            run82.Append(runProperties81);
            run82.Append(text73);

            Run run83 = new Run();

            RunProperties runProperties82 = new RunProperties();
            Bold bold65 = new Bold();
            Color color106 = new Color() { Val = "548DD4", ThemeColor = ThemeColorValues.Text2, ThemeTint = "99" };

            runProperties82.Append(bold65);
            runProperties82.Append(color106);
            Text text74 = new Text() { Space = SpaceProcessingModeValues.Preserve };
            text74.Text = " ";

            run83.Append(runProperties82);
            run83.Append(text74);

            Run run84 = new Run();

            RunProperties runProperties83 = new RunProperties();
            Color color107 = new Color() { Val = "000000", ThemeColor = ThemeColorValues.Text1 };

            runProperties83.Append(color107);
            Text text75 = new Text() { Space = SpaceProcessingModeValues.Preserve };
            text75.Text = "- ";

            run84.Append(runProperties83);
            run84.Append(text75);

            Run run85 = new Run() { RsidRunProperties = "00E67B26" };

            RunProperties runProperties84 = new RunProperties();
            Bold bold66 = new Bold();
            Color color108 = new Color() { Val = "000000", ThemeColor = ThemeColorValues.Text1 };

            runProperties84.Append(bold66);
            runProperties84.Append(color108);
            Text text76 = new Text();
            text76.Text = pdetail.Name;

            run85.Append(runProperties84);
            run85.Append(text76);

            paragraph29.Append(paragraphProperties29);
            paragraph29.Append(run70);
            paragraph29.Append(run71);
            paragraph29.Append(run72);
            paragraph29.Append(run73);
            paragraph29.Append(run74);
            paragraph29.Append(run75);
            paragraph29.Append(run76);
            paragraph29.Append(run77);
            paragraph29.Append(run78);
            paragraph29.Append(run79);
            paragraph29.Append(run80);
            paragraph29.Append(proofError5);
            paragraph29.Append(run81);
            paragraph29.Append(proofError6);
            paragraph29.Append(run82);
            paragraph29.Append(run83);
            paragraph29.Append(run84);
            paragraph29.Append(run85);

            tableCell24.Append(tableCellProperties24);
            tableCell24.Append(paragraph29);

            tableRow12.Append(tableRowProperties12);
            tableRow12.Append(tableCell24);

            TableRow tableRow13 = new TableRow() { RsidTableRowAddition = "00E67B26", RsidTableRowProperties = "00E67B26" };

            TableRowProperties tableRowProperties13 = new TableRowProperties();
            TableRowHeight tableRowHeight13 = new TableRowHeight() { Val = (UInt32Value)377U };

            tableRowProperties13.Append(tableRowHeight13);

            TableCell tableCell25 = new TableCell();

            TableCellProperties tableCellProperties25 = new TableCellProperties();
            TableCellWidth tableCellWidth25 = new TableCellWidth() { Width = "9627", Type = TableWidthUnitValues.Dxa };

            tableCellProperties25.Append(tableCellWidth25);

            Paragraph paragraph30 = new Paragraph() { RsidParagraphAddition = "00E67B26", RsidParagraphProperties = "00E67B26", RsidRunAdditionDefault = "00E67B26" };

            ParagraphProperties paragraphProperties30 = new ParagraphProperties();
            ParagraphStyleId paragraphStyleId3 = new ParagraphStyleId() { Val = "Heading5" };
            SpacingBetweenLines spacingBetweenLines2 = new SpacingBetweenLines() { Before = "13", After = "38" };
            OutlineLevel outlineLevel1 = new OutlineLevel() { Val = 4 };

            ParagraphMarkRunProperties paragraphMarkRunProperties29 = new ParagraphMarkRunProperties();
            Bold bold67 = new Bold();
            Color color109 = new Color() { Val = "548DD4", ThemeColor = ThemeColorValues.Text2, ThemeTint = "99" };

            paragraphMarkRunProperties29.Append(bold67);
            paragraphMarkRunProperties29.Append(color109);

            paragraphProperties30.Append(paragraphStyleId3);
            paragraphProperties30.Append(spacingBetweenLines2);
            paragraphProperties30.Append(outlineLevel1);
            paragraphProperties30.Append(paragraphMarkRunProperties29);

            Run run86 = new Run();

            RunProperties runProperties85 = new RunProperties();
            Bold bold68 = new Bold();
            Color color110 = new Color() { Val = "548DD4", ThemeColor = ThemeColorValues.Text2, ThemeTint = "99" };

            runProperties85.Append(bold68);
            runProperties85.Append(color110);
            Text text77 = new Text() { Space = SpaceProcessingModeValues.Preserve };
            text77.Text = "                                                                                                                                                               Thanks";

            run86.Append(runProperties85);
            run86.Append(text77);

            paragraph30.Append(paragraphProperties30);
            paragraph30.Append(run86);

            tableCell25.Append(tableCellProperties25);
            tableCell25.Append(paragraph30);

            tableRow13.Append(tableRowProperties13);
            tableRow13.Append(tableCell25);

            TableRow tableRow14 = new TableRow() { RsidTableRowAddition = "00E67B26", RsidTableRowProperties = "00E67B26" };

            TableRowProperties tableRowProperties14 = new TableRowProperties();
            TableRowHeight tableRowHeight14 = new TableRowHeight() { Val = (UInt32Value)394U };

            tableRowProperties14.Append(tableRowHeight14);

            TableCell tableCell26 = new TableCell();

            TableCellProperties tableCellProperties26 = new TableCellProperties();
            TableCellWidth tableCellWidth26 = new TableCellWidth() { Width = "9627", Type = TableWidthUnitValues.Dxa };

            tableCellProperties26.Append(tableCellWidth26);

            Paragraph paragraph31 = new Paragraph() { RsidParagraphAddition = "00E67B26", RsidParagraphProperties = "00E67B26", RsidRunAdditionDefault = "00E67B26" };

            ParagraphProperties paragraphProperties31 = new ParagraphProperties();
            ParagraphStyleId paragraphStyleId4 = new ParagraphStyleId() { Val = "Heading5" };
            SpacingBetweenLines spacingBetweenLines3 = new SpacingBetweenLines() { Before = "13", After = "38" };
            OutlineLevel outlineLevel2 = new OutlineLevel() { Val = 4 };

            ParagraphMarkRunProperties paragraphMarkRunProperties30 = new ParagraphMarkRunProperties();
            Bold bold69 = new Bold();
            Color color111 = new Color() { Val = "548DD4", ThemeColor = ThemeColorValues.Text2, ThemeTint = "99" };

            paragraphMarkRunProperties30.Append(bold69);
            paragraphMarkRunProperties30.Append(color111);

            paragraphProperties31.Append(paragraphStyleId4);
            paragraphProperties31.Append(spacingBetweenLines3);
            paragraphProperties31.Append(outlineLevel2);
            paragraphProperties31.Append(paragraphMarkRunProperties30);

            paragraph31.Append(paragraphProperties31);

            tableCell26.Append(tableCellProperties26);
            tableCell26.Append(paragraph31);

            tableRow14.Append(tableRowProperties14);
            tableRow14.Append(tableCell26);

            table1.Append(tableProperties1);
            table1.Append(tableGrid1);
            table1.Append(tableRow1);
            table1.Append(tableRow2);
            table1.Append(tableRow9);
            table1.Append(tableRow11);
            table1.Append(tableRow12);
            table1.Append(tableRow13);
            table1.Append(tableRow14);
            Paragraph paragraph32 = new Paragraph() { RsidParagraphAddition = "00931F72", RsidParagraphProperties = "00E67B26", RsidRunAdditionDefault = "00931F72" };

            SectionProperties sectionProperties1 = new SectionProperties() { RsidR = "00931F72", RsidSect = "00931F72" };
            PageSize pageSize1 = new PageSize() { Width = (UInt32Value)12240U, Height = (UInt32Value)15840U };
            PageMargin pageMargin1 = new PageMargin() { Top = 1440, Right = (UInt32Value)1440U, Bottom = 1440, Left = (UInt32Value)1440U, Header = (UInt32Value)720U, Footer = (UInt32Value)720U, Gutter = (UInt32Value)0U };
            Columns columns1 = new Columns() { Space = "720" };
            DocGrid docGrid1 = new DocGrid() { LinePitch = 360 };

            sectionProperties1.Append(pageSize1);
            sectionProperties1.Append(pageMargin1);
            sectionProperties1.Append(columns1);
            sectionProperties1.Append(docGrid1);

            body1.Append(table1);
            body1.Append(paragraph32);
            body1.Append(sectionProperties1);

            document1.Append(body1);

            mainDocumentPart1.Document = document1;
        }
Ejemplo n.º 6
0
        private static void AddItemsToTable(Table table1)
        {
            //Add test items to table
            #region MyRegion

            TableGrid  tableGrid1  = new TableGrid();
            GridColumn gridColumn1 = new GridColumn()
            {
                Width = "2394"
            };
            GridColumn gridColumn2 = new GridColumn()
            {
                Width = "2394"
            };
            GridColumn gridColumn3 = new GridColumn()
            {
                Width = "2394"
            };

            tableGrid1.Append(gridColumn1);
            tableGrid1.Append(gridColumn2);
            tableGrid1.Append(gridColumn3);

            //create table row object
            TableRow tableRow1 = new TableRow()
            {
                RsidTableRowAddition = "004D1DA5", RsidTableRowProperties = "004D1DA5"
            };

            //create row properties
            TableRowProperties     tableRowProperties1     = new TableRowProperties();
            ConditionalFormatStyle conditionalFormatStyle1 = new ConditionalFormatStyle()
            {
                Val = "100000000000"
            };

            tableRowProperties1.Append(conditionalFormatStyle1);

            //create cell object and its properties
            TableCell tableCell1 = new TableCell();

            TableCellProperties    tableCellProperties1    = new TableCellProperties();
            ConditionalFormatStyle conditionalFormatStyle2 = new ConditionalFormatStyle()
            {
                Val = "001000000000"
            };
            TableCellWidth tableCellWidth1 = new TableCellWidth()
            {
                Width = "2394", Type = TableWidthUnitValues.Dxa
            };
            HideMark hideMark1 = new HideMark();

            tableCellProperties1.Append(conditionalFormatStyle2);
            tableCellProperties1.Append(tableCellWidth1);
            tableCellProperties1.Append(hideMark1);

            //create paragrpah object and its properties
            Paragraph paragraph1 = new Paragraph()
            {
                RsidParagraphAddition = "004D1DA5", RsidRunAdditionDefault = "004D1DA5"
            };

            ParagraphProperties paragraphProperties1 = new ParagraphProperties();
            Justification       justification1       = new Justification()
            {
                Val = JustificationValues.Center
            };

            paragraphProperties1.Append(justification1);

            //create Run and Text
            Run  run1  = new Run();
            Text text1 = new Text();
            //add content in Text
            text1.Text = "No";

            //add Text to Run
            run1.Append(text1);

            //add Run to paragraph
            paragraph1.Append(paragraphProperties1);
            paragraph1.Append(run1);

            //add Paragraph to cell
            tableCell1.Append(tableCellProperties1);
            tableCell1.Append(paragraph1);

            TableCell tableCell2 = new TableCell();

            TableCellProperties tableCellProperties2 = new TableCellProperties();
            TableCellWidth      tableCellWidth2      = new TableCellWidth()
            {
                Width = "2394", Type = TableWidthUnitValues.Dxa
            };
            HideMark hideMark2 = new HideMark();

            tableCellProperties2.Append(tableCellWidth2);
            tableCellProperties2.Append(hideMark2);

            Paragraph paragraph2 = new Paragraph()
            {
                RsidParagraphAddition = "004D1DA5", RsidRunAdditionDefault = "004D1DA5"
            };

            ParagraphProperties paragraphProperties2 = new ParagraphProperties();
            Justification       justification2       = new Justification()
            {
                Val = JustificationValues.Center
            };
            ConditionalFormatStyle conditionalFormatStyle3 = new ConditionalFormatStyle()
            {
                Val = "100000000000"
            };

            paragraphProperties2.Append(justification2);
            paragraphProperties2.Append(conditionalFormatStyle3);

            Run  run2  = new Run();
            Text text2 = new Text();
            text2.Text = "Name";

            run2.Append(text2);

            paragraph2.Append(paragraphProperties2);
            paragraph2.Append(run2);

            tableCell2.Append(tableCellProperties2);
            tableCell2.Append(paragraph2);

            TableCell tableCell3 = new TableCell();

            TableCellProperties tableCellProperties3 = new TableCellProperties();
            TableCellWidth      tableCellWidth3      = new TableCellWidth()
            {
                Width = "2394", Type = TableWidthUnitValues.Dxa
            };
            HideMark hideMark3 = new HideMark();

            tableCellProperties3.Append(tableCellWidth3);
            tableCellProperties3.Append(hideMark3);

            Paragraph paragraph3 = new Paragraph()
            {
                RsidParagraphAddition = "004D1DA5", RsidRunAdditionDefault = "004D1DA5"
            };

            ParagraphProperties paragraphProperties3 = new ParagraphProperties();
            Justification       justification3       = new Justification()
            {
                Val = JustificationValues.Center
            };
            ConditionalFormatStyle conditionalFormatStyle4 = new ConditionalFormatStyle()
            {
                Val = "100000000000"
            };

            paragraphProperties3.Append(justification3);
            paragraphProperties3.Append(conditionalFormatStyle4);

            Run  run3  = new Run();
            Text text3 = new Text();
            text3.Text = "Sex";

            run3.Append(text3);

            paragraph3.Append(paragraphProperties3);
            paragraph3.Append(run3);

            tableCell3.Append(tableCellProperties3);
            tableCell3.Append(paragraph3);

            tableRow1.Append(tableRowProperties1);
            tableRow1.Append(tableCell1);
            tableRow1.Append(tableCell2);
            tableRow1.Append(tableCell3);

            TableRow tableRow2 = new TableRow()
            {
                RsidTableRowAddition = "004D1DA5", RsidTableRowProperties = "004D1DA5"
            };

            TableRowProperties     tableRowProperties2     = new TableRowProperties();
            ConditionalFormatStyle conditionalFormatStyle5 = new ConditionalFormatStyle()
            {
                Val = "000000100000"
            };

            tableRowProperties2.Append(conditionalFormatStyle5);

            TableCell tableCell4 = new TableCell();

            TableCellProperties    tableCellProperties4    = new TableCellProperties();
            ConditionalFormatStyle conditionalFormatStyle6 = new ConditionalFormatStyle()
            {
                Val = "001000000000"
            };
            TableCellWidth tableCellWidth4 = new TableCellWidth()
            {
                Width = "2394", Type = TableWidthUnitValues.Dxa
            };
            HideMark hideMark4 = new HideMark();

            tableCellProperties4.Append(conditionalFormatStyle6);
            tableCellProperties4.Append(tableCellWidth4);
            tableCellProperties4.Append(hideMark4);

            Paragraph paragraph4 = new Paragraph()
            {
                RsidParagraphAddition = "004D1DA5", RsidRunAdditionDefault = "004D1DA5"
            };

            Run  run4  = new Run();
            Text text4 = new Text();
            text4.Text = "1";

            run4.Append(text4);

            paragraph4.Append(run4);

            tableCell4.Append(tableCellProperties4);
            tableCell4.Append(paragraph4);

            TableCell tableCell5 = new TableCell();

            TableCellProperties tableCellProperties5 = new TableCellProperties();
            TableCellWidth      tableCellWidth5      = new TableCellWidth()
            {
                Width = "2394", Type = TableWidthUnitValues.Dxa
            };
            HideMark hideMark5 = new HideMark();

            tableCellProperties5.Append(tableCellWidth5);
            tableCellProperties5.Append(hideMark5);

            Paragraph paragraph5 = new Paragraph()
            {
                RsidParagraphAddition = "004D1DA5", RsidRunAdditionDefault = "004D1DA5"
            };

            ParagraphProperties    paragraphProperties4    = new ParagraphProperties();
            ConditionalFormatStyle conditionalFormatStyle7 = new ConditionalFormatStyle()
            {
                Val = "000000100000"
            };

            paragraphProperties4.Append(conditionalFormatStyle7);

            Run  run5  = new Run();
            Text text5 = new Text();
            text5.Text = "ABC";

            run5.Append(text5);

            paragraph5.Append(paragraphProperties4);
            paragraph5.Append(run5);

            tableCell5.Append(tableCellProperties5);
            tableCell5.Append(paragraph5);

            TableCell tableCell6 = new TableCell();

            TableCellProperties tableCellProperties6 = new TableCellProperties();
            TableCellWidth      tableCellWidth6      = new TableCellWidth()
            {
                Width = "2394", Type = TableWidthUnitValues.Dxa
            };
            HideMark hideMark6 = new HideMark();

            tableCellProperties6.Append(tableCellWidth6);
            tableCellProperties6.Append(hideMark6);

            Paragraph paragraph6 = new Paragraph()
            {
                RsidParagraphAddition = "004D1DA5", RsidRunAdditionDefault = "004D1DA5"
            };

            ParagraphProperties    paragraphProperties5    = new ParagraphProperties();
            ConditionalFormatStyle conditionalFormatStyle8 = new ConditionalFormatStyle()
            {
                Val = "000000100000"
            };

            paragraphProperties5.Append(conditionalFormatStyle8);

            Run  run6  = new Run();
            Text text6 = new Text();
            text6.Text = "Male";

            run6.Append(text6);

            paragraph6.Append(paragraphProperties5);
            paragraph6.Append(run6);

            tableCell6.Append(tableCellProperties6);
            tableCell6.Append(paragraph6);

            tableRow2.Append(tableRowProperties2);
            tableRow2.Append(tableCell4);
            tableRow2.Append(tableCell5);
            tableRow2.Append(tableCell6);

            TableRow tableRow3 = new TableRow()
            {
                RsidTableRowAddition = "004D1DA5", RsidTableRowProperties = "004D1DA5"
            };

            TableRowProperties     tableRowProperties3     = new TableRowProperties();
            ConditionalFormatStyle conditionalFormatStyle9 = new ConditionalFormatStyle()
            {
                Val = "000000010000"
            };

            tableRowProperties3.Append(conditionalFormatStyle9);

            TableCell tableCell7 = new TableCell();

            TableCellProperties    tableCellProperties7     = new TableCellProperties();
            ConditionalFormatStyle conditionalFormatStyle10 = new ConditionalFormatStyle()
            {
                Val = "001000000000"
            };
            TableCellWidth tableCellWidth7 = new TableCellWidth()
            {
                Width = "2394", Type = TableWidthUnitValues.Dxa
            };
            HideMark hideMark7 = new HideMark();

            tableCellProperties7.Append(conditionalFormatStyle10);
            tableCellProperties7.Append(tableCellWidth7);
            tableCellProperties7.Append(hideMark7);

            Paragraph paragraph7 = new Paragraph()
            {
                RsidParagraphAddition = "004D1DA5", RsidRunAdditionDefault = "004D1DA5"
            };

            Run  run7  = new Run();
            Text text7 = new Text();
            text7.Text = "2";

            run7.Append(text7);

            paragraph7.Append(run7);

            tableCell7.Append(tableCellProperties7);
            tableCell7.Append(paragraph7);

            TableCell tableCell8 = new TableCell();

            TableCellProperties tableCellProperties8 = new TableCellProperties();
            TableCellWidth      tableCellWidth8      = new TableCellWidth()
            {
                Width = "2394", Type = TableWidthUnitValues.Dxa
            };
            HideMark hideMark8 = new HideMark();

            tableCellProperties8.Append(tableCellWidth8);
            tableCellProperties8.Append(hideMark8);

            Paragraph paragraph8 = new Paragraph()
            {
                RsidParagraphAddition = "004D1DA5", RsidRunAdditionDefault = "004D1DA5"
            };

            ParagraphProperties    paragraphProperties6     = new ParagraphProperties();
            ConditionalFormatStyle conditionalFormatStyle11 = new ConditionalFormatStyle()
            {
                Val = "000000010000"
            };

            paragraphProperties6.Append(conditionalFormatStyle11);

            Run  run8  = new Run();
            Text text8 = new Text();
            text8.Text = "PQR";

            run8.Append(text8);

            paragraph8.Append(paragraphProperties6);
            paragraph8.Append(run8);

            tableCell8.Append(tableCellProperties8);
            tableCell8.Append(paragraph8);

            TableCell tableCell9 = new TableCell();

            TableCellProperties tableCellProperties9 = new TableCellProperties();
            TableCellWidth      tableCellWidth9      = new TableCellWidth()
            {
                Width = "2394", Type = TableWidthUnitValues.Dxa
            };
            HideMark hideMark9 = new HideMark();

            tableCellProperties9.Append(tableCellWidth9);
            tableCellProperties9.Append(hideMark9);

            Paragraph paragraph9 = new Paragraph()
            {
                RsidParagraphAddition = "004D1DA5", RsidRunAdditionDefault = "004D1DA5"
            };

            ParagraphProperties    paragraphProperties7     = new ParagraphProperties();
            ConditionalFormatStyle conditionalFormatStyle12 = new ConditionalFormatStyle()
            {
                Val = "000000010000"
            };

            paragraphProperties7.Append(conditionalFormatStyle12);

            Run  run9  = new Run();
            Text text9 = new Text();
            text9.Text = "Female";

            run9.Append(text9);

            paragraph9.Append(paragraphProperties7);
            paragraph9.Append(run9);

            tableCell9.Append(tableCellProperties9);
            tableCell9.Append(paragraph9);

            tableRow3.Append(tableRowProperties3);
            tableRow3.Append(tableCell7);
            tableRow3.Append(tableCell8);
            tableRow3.Append(tableCell9);

            table1.Append(tableGrid1);
            table1.Append(tableRow1);
            table1.Append(tableRow2);
            table1.Append(tableRow3);

            #endregion
        }