Пример #1
0
        public override void Save(string path)
        {
            MainDocumentPart     mainPart = document.MainDocumentPart;
            DocumentSettingsPart documentSettingsPart1 = mainPart.DocumentSettingsPart;

#if templates_old
            AttachedTemplate attachedTemplate1 = new AttachedTemplate()
            {
                Id = "relationId1"
            };
            documentSettingsPart1.Settings.Append(attachedTemplate1);

            // На заметку: узнать подробнее про External Relationships в структуре OpenXML.
            // Пэ Эс: можно (и даже нужно) заполнять фигней. Если подставлять реальный URI, может повесить ворд.
            documentSettingsPart1.AddExternalRelationship(
                "http://schemas.openxmlformats.org/officeDocument/2006/relationships/attachedTemplate",
                new Uri(@"c:\foo\bar", UriKind.Absolute),
                "relationId1");
#endif

            mainPart.Document.Save();

            document.Close();

            using (FileStream fs = new FileStream(path, FileMode.Create))
            {
                memory.WriteTo(fs);
            }
            memory.Close();
            IsDisposed = true;
        }
Пример #2
0
        public override void SaveToDocument(string destination, string documentName)
        {
            MainDocumentPart     mainPart = document.MainDocumentPart;
            DocumentSettingsPart documentSettingsPart1 = mainPart.DocumentSettingsPart;

            //
            AttachedTemplate attachedTemplate1 = new AttachedTemplate()
            {
                Id = "relationId1"
            };

            documentSettingsPart1.Settings.Append(attachedTemplate1);

            documentSettingsPart1.AddExternalRelationship(
                "http://schemas.openxmlformats.org/officeDocument/2006/relationships/attachedTemplate",
                new Uri(TemplatePath, UriKind.Absolute),
                "relationId1");
            mainPart.Document.Save();

            document.Close();

            using (FileStream fs = new FileStream(Path.Combine(destination, documentName), FileMode.Create))
            {
#warning См. комментарий
                // Цитата со StackOverflow:
                // Use CopyTo instead, there is a bug in WriteTo which makes it fail to write the entire content of the buffer when the target stream does not support writing everything in one go.
                memory.WriteTo(fs);
            }

            memory.Close();
            IsDisposed = true;
        }
Пример #3
0
        // // // // //
        // 3rd test //
        // // // // //
        public static void CreateFileUsingNormalTemplate() // make new docx using system's Normal.dotm -- DOESN'T SEEM TO BE WORKING, NEEDS A CLOSER LOOK!
        {
            string outputFileNameAndPath = Path.Combine(Program.outputFilePath, Guid.NewGuid().ToString() + "_create_from_normal_templete_nostyle" + ".docx");

            string templateFilePath = "C:\\Users\\helpdesk\\AppData\\Roaming\\Microsoft\\Templates\\Normal.dotm"; //Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.Templates).ToString(), "Normal.dotm");

            //File.Open(Path.ChangeExtension(outputFilePath, ".docx"), FileMode.CreateNew);

            // create a copy of the template and open the copy
            File.Copy(templateFilePath, outputFileNameAndPath, true);

            using (WordprocessingDocument wordDocument = WordprocessingDocument.Open(outputFileNameAndPath, true))
            {
                wordDocument.ChangeDocumentType(WordprocessingDocumentType.Document);

                var mainPart = wordDocument.MainDocumentPart;
                var settings = mainPart.DocumentSettingsPart;

                var templateRelationship = new AttachedTemplate {
                    Id = "relationId1"
                };
                settings.Settings.Append(templateRelationship);

                var templateUri = new Uri("C:\\Users\\helpdesk\\AppData\\Roaming\\Microsoft\\Templates\\Normal.dotm", UriKind.Absolute); // put any path you like and the document styles still work
                settings.AddExternalRelationship("http://schemas.openxmlformats.org/officeDocument/2006/relationships/attachedTemplate", templateUri, templateRelationship.Id);

                // using Title as it would appear in Microsoft Word
                var paragraphProps = new ParagraphProperties();
                paragraphProps.ParagraphStyleId = new ParagraphStyleId {
                    Val = "Title"
                };

                // add some text with the "Title" style from the "Default" style set supplied by Microsoft Word
                var run = new Run();
                run.AppendChild(new Text("Created WordprocessingDocument with preserved defaults in Normal.dotm"));

                var para = new Paragraph();
                para.Append(paragraphProps);
                para.Append(run);

                mainPart.Document.Body.Append(para);

                mainPart.Document.Save();
            }
            Console.WriteLine(string.Format("{0}:{1}{2}{1}{3}", "3. File created based on the Normal.dotm with Text and no styles explicitly added", Environment.NewLine, outputFileNameAndPath, new string('-', 80)));
        }
Пример #4
0
        public static void CreateWordDocumentUsingMSWordStyles(int begintag, int endtag, string outputPath, string templatePath)
        {
            // create a copy of the template and open the copy
            File.Copy(templatePath, outputPath, true);

            using (var document = WordprocessingDocument.Open(outputPath, true))
            {
                document.ChangeDocumentType(WordprocessingDocumentType.Document);

                var mainPart = document.MainDocumentPart;
                var settings = mainPart.DocumentSettingsPart;

                var templateRelationship = new AttachedTemplate {
                    Id = "relationId1"
                };
                settings.Settings.Append(templateRelationship);

                var templateUri = new Uri("c:\\anything.dotx", UriKind.Absolute); // you can put any path you like and the document styles still work
                settings.AddExternalRelationship("http://schemas.openxmlformats.org/officeDocument/2006/relationships/attachedTemplate", templateUri, templateRelationship.Id);

                // using Title as it would appear in Microsoft Word
                var paragraphProps = new ParagraphProperties();
                paragraphProps.ParagraphStyleId = new ParagraphStyleId {
                    Val = "Heading2"
                };

                // add some text with the "Title" style from the "Default" style set supplied by Microsoft Word
                var run = new Run();
                run.Append(new Text("1.1.3"));

                var paragraph = new Paragraph();
                paragraph.Append(paragraphProps);
                paragraph.Append(run);

                mainPart.Document.Body.Append(paragraph);

                mainPart.Document.Save();
            }
        }
Пример #5
0
        void SetMacroPath(WordprocessingDocument doc, DocumentSettingsPart settingPart, string macroTemplatePath)
        {
            if (!String.IsNullOrEmpty(macroTemplatePath))
            {
                var hasMacros = doc.MainDocumentPart.DocumentSettingsPart.Settings.Elements <XOPEN.Wordprocessing.AttachedTemplate>().Count();

                var newUriMacr = new Uri(macroTemplatePath);
                if (hasMacros > 0)
                {
                    AttachedTemplate attachTemplate = doc.MainDocumentPart.DocumentSettingsPart.Settings.Elements <XOPEN.Wordprocessing.AttachedTemplate>().First();

                    var attachTemplateRelationship = settingPart.GetExternalRelationship(attachTemplate.Id);

                    // attachTemplateRelationship.Uri=  new Uri(macroTemplatePath, UriKind.Absolute);

                    if (attachTemplateRelationship != null)
                    {
                        settingPart.DeleteExternalRelationship(attachTemplateRelationship);
                        settingPart.AddExternalRelationship(attachTemplateRelationship.RelationshipType, newUriMacr, attachTemplate.Id);
                    }
                }
            }
        }
Пример #6
0
        // Generates content of documentSettingsPart1.
        private static void GenerateDocumentSettingsPart1Content(DocumentSettingsPart documentSettingsPart1)
        {
            Settings settings1 = new Settings() { MCAttributes = new MarkupCompatibilityAttributes() { Ignorable = "w14 w15" } };
            settings1.AddNamespaceDeclaration("mc", "http://schemas.openxmlformats.org/markup-compatibility/2006");
            settings1.AddNamespaceDeclaration("o", "urn:schemas-microsoft-com:office:office");
            settings1.AddNamespaceDeclaration("r", "http://schemas.openxmlformats.org/officeDocument/2006/relationships");
            settings1.AddNamespaceDeclaration("m", "http://schemas.openxmlformats.org/officeDocument/2006/math");
            settings1.AddNamespaceDeclaration("v", "urn:schemas-microsoft-com:vml");
            settings1.AddNamespaceDeclaration("w10", "urn:schemas-microsoft-com:office:word");
            settings1.AddNamespaceDeclaration("w", "http://schemas.openxmlformats.org/wordprocessingml/2006/main");
            settings1.AddNamespaceDeclaration("w14", "http://schemas.microsoft.com/office/word/2010/wordml");
            settings1.AddNamespaceDeclaration("w15", "http://schemas.microsoft.com/office/word/2012/wordml");
            settings1.AddNamespaceDeclaration("sl", "http://schemas.openxmlformats.org/schemaLibrary/2006/main");
            Zoom zoom1 = new Zoom() { Percent = "100" };
            BordersDoNotSurroundHeader bordersDoNotSurroundHeader1 = new BordersDoNotSurroundHeader();
            BordersDoNotSurroundFooter bordersDoNotSurroundFooter1 = new BordersDoNotSurroundFooter();
            AttachedTemplate attachedTemplate1 = new AttachedTemplate() { Id = "rId1" };
            DefaultTabStop defaultTabStop1 = new DefaultTabStop() { Val = 420 };
            DrawingGridVerticalSpacing drawingGridVerticalSpacing1 = new DrawingGridVerticalSpacing() { Val = "156" };
            DisplayHorizontalDrawingGrid displayHorizontalDrawingGrid1 = new DisplayHorizontalDrawingGrid() { Val = 0 };
            DisplayVerticalDrawingGrid displayVerticalDrawingGrid1 = new DisplayVerticalDrawingGrid() { Val = 2 };
            CharacterSpacingControl characterSpacingControl1 = new CharacterSpacingControl() { Val = CharacterSpacingValues.CompressPunctuation };

            HeaderShapeDefaults headerShapeDefaults1 = new HeaderShapeDefaults();
            Ovml.ShapeDefaults shapeDefaults1 = new Ovml.ShapeDefaults() { Extension = V.ExtensionHandlingBehaviorValues.Edit, MaxShapeId = 2049 };

            headerShapeDefaults1.Append(shapeDefaults1);

            FootnoteDocumentWideProperties footnoteDocumentWideProperties1 = new FootnoteDocumentWideProperties();
            FootnoteSpecialReference footnoteSpecialReference1 = new FootnoteSpecialReference() { Id = -1 };
            FootnoteSpecialReference footnoteSpecialReference2 = new FootnoteSpecialReference() { Id = 0 };

            footnoteDocumentWideProperties1.Append(footnoteSpecialReference1);
            footnoteDocumentWideProperties1.Append(footnoteSpecialReference2);

            EndnoteDocumentWideProperties endnoteDocumentWideProperties1 = new EndnoteDocumentWideProperties();
            EndnoteSpecialReference endnoteSpecialReference1 = new EndnoteSpecialReference() { Id = -1 };
            EndnoteSpecialReference endnoteSpecialReference2 = new EndnoteSpecialReference() { Id = 0 };

            endnoteDocumentWideProperties1.Append(endnoteSpecialReference1);
            endnoteDocumentWideProperties1.Append(endnoteSpecialReference2);

            Compatibility compatibility1 = new Compatibility();
            SpaceForUnderline spaceForUnderline1 = new SpaceForUnderline();
            BalanceSingleByteDoubleByteWidth balanceSingleByteDoubleByteWidth1 = new BalanceSingleByteDoubleByteWidth();
            DoNotLeaveBackslashAlone doNotLeaveBackslashAlone1 = new DoNotLeaveBackslashAlone();
            UnderlineTrailingSpaces underlineTrailingSpaces1 = new UnderlineTrailingSpaces();
            DoNotExpandShiftReturn doNotExpandShiftReturn1 = new DoNotExpandShiftReturn();
            AdjustLineHeightInTable adjustLineHeightInTable1 = new AdjustLineHeightInTable();
            UseFarEastLayout useFarEastLayout1 = new UseFarEastLayout();
            CompatibilitySetting compatibilitySetting1 = new CompatibilitySetting() { Name = CompatSettingNameValues.CompatibilityMode, Uri = "http://schemas.microsoft.com/office/word", Val = "15" };
            CompatibilitySetting compatibilitySetting2 = new CompatibilitySetting() { Name = CompatSettingNameValues.OverrideTableStyleFontSizeAndJustification, Uri = "http://schemas.microsoft.com/office/word", Val = "1" };
            CompatibilitySetting compatibilitySetting3 = new CompatibilitySetting() { Name = CompatSettingNameValues.EnableOpenTypeFeatures, Uri = "http://schemas.microsoft.com/office/word", Val = "1" };
            CompatibilitySetting compatibilitySetting4 = new CompatibilitySetting() { Name = CompatSettingNameValues.DoNotFlipMirrorIndents, Uri = "http://schemas.microsoft.com/office/word", Val = "1" };
            CompatibilitySetting compatibilitySetting5 = new CompatibilitySetting() { Name = CompatSettingNameValues.DifferentiateMultirowTableHeaders, Uri = "http://schemas.microsoft.com/office/word", Val = "1" };

            compatibility1.Append(spaceForUnderline1);
            compatibility1.Append(balanceSingleByteDoubleByteWidth1);
            compatibility1.Append(doNotLeaveBackslashAlone1);
            compatibility1.Append(underlineTrailingSpaces1);
            compatibility1.Append(doNotExpandShiftReturn1);
            compatibility1.Append(adjustLineHeightInTable1);
            compatibility1.Append(useFarEastLayout1);
            compatibility1.Append(compatibilitySetting1);
            compatibility1.Append(compatibilitySetting2);
            compatibility1.Append(compatibilitySetting3);
            compatibility1.Append(compatibilitySetting4);
            compatibility1.Append(compatibilitySetting5);

            Rsids rsids1 = new Rsids();
            RsidRoot rsidRoot1 = new RsidRoot() { Val = "009446D8" };
            Rsid rsid1 = new Rsid() { Val = "00000E1C" };
            Rsid rsid2 = new Rsid() { Val = "00003DC0" };
            Rsid rsid3 = new Rsid() { Val = "000275B2" };
            Rsid rsid4 = new Rsid() { Val = "00046D2C" };
            Rsid rsid5 = new Rsid() { Val = "000A213E" };
            Rsid rsid6 = new Rsid() { Val = "000B5BB8" };
            Rsid rsid7 = new Rsid() { Val = "000C5029" };
            Rsid rsid8 = new Rsid() { Val = "00124526" };
            Rsid rsid9 = new Rsid() { Val = "00127314" };
            Rsid rsid10 = new Rsid() { Val = "00134DB2" };
            Rsid rsid11 = new Rsid() { Val = "00156B7C" };
            Rsid rsid12 = new Rsid() { Val = "00165201" };
            Rsid rsid13 = new Rsid() { Val = "001743C8" };
            Rsid rsid14 = new Rsid() { Val = "001A11E4" };
            Rsid rsid15 = new Rsid() { Val = "001B238C" };
            Rsid rsid16 = new Rsid() { Val = "001D24A4" };
            Rsid rsid17 = new Rsid() { Val = "001E6C69" };
            Rsid rsid18 = new Rsid() { Val = "001F241C" };
            Rsid rsid19 = new Rsid() { Val = "00232EBB" };
            Rsid rsid20 = new Rsid() { Val = "0026480F" };
            Rsid rsid21 = new Rsid() { Val = "00267990" };
            Rsid rsid22 = new Rsid() { Val = "00277666" };
            Rsid rsid23 = new Rsid() { Val = "002836B8" };
            Rsid rsid24 = new Rsid() { Val = "00292599" };
            Rsid rsid25 = new Rsid() { Val = "002B0FD9" };
            Rsid rsid26 = new Rsid() { Val = "002C0C4A" };
            Rsid rsid27 = new Rsid() { Val = "002D3691" };
            Rsid rsid28 = new Rsid() { Val = "002E137D" };
            Rsid rsid29 = new Rsid() { Val = "002E1C1B" };
            Rsid rsid30 = new Rsid() { Val = "002F3A0D" };
            Rsid rsid31 = new Rsid() { Val = "00305AC1" };
            Rsid rsid32 = new Rsid() { Val = "00310F8D" };
            Rsid rsid33 = new Rsid() { Val = "003177A3" };
            Rsid rsid34 = new Rsid() { Val = "003823CD" };
            Rsid rsid35 = new Rsid() { Val = "003B02D4" };
            Rsid rsid36 = new Rsid() { Val = "003C4A95" };
            Rsid rsid37 = new Rsid() { Val = "003D3708" };
            Rsid rsid38 = new Rsid() { Val = "003E1B97" };
            Rsid rsid39 = new Rsid() { Val = "003F6860" };
            Rsid rsid40 = new Rsid() { Val = "003F7A75" };
            Rsid rsid41 = new Rsid() { Val = "00403E77" };
            Rsid rsid42 = new Rsid() { Val = "00417E2C" };
            Rsid rsid43 = new Rsid() { Val = "00434ADB" };
            Rsid rsid44 = new Rsid() { Val = "004518E0" };
            Rsid rsid45 = new Rsid() { Val = "00467DE2" };
            Rsid rsid46 = new Rsid() { Val = "0047548B" };
            Rsid rsid47 = new Rsid() { Val = "004C6AA7" };
            Rsid rsid48 = new Rsid() { Val = "004D2615" };
            Rsid rsid49 = new Rsid() { Val = "004D60B6" };
            Rsid rsid50 = new Rsid() { Val = "004D67C7" };
            Rsid rsid51 = new Rsid() { Val = "004E6F28" };
            Rsid rsid52 = new Rsid() { Val = "00506664" };
            Rsid rsid53 = new Rsid() { Val = "005118E8" };
            Rsid rsid54 = new Rsid() { Val = "0052122E" };
            Rsid rsid55 = new Rsid() { Val = "0054564C" };
            Rsid rsid56 = new Rsid() { Val = "0054593E" };
            Rsid rsid57 = new Rsid() { Val = "00550AA0" };
            Rsid rsid58 = new Rsid() { Val = "005601D7" };
            Rsid rsid59 = new Rsid() { Val = "0059148C" };
            Rsid rsid60 = new Rsid() { Val = "00594F7D" };
            Rsid rsid61 = new Rsid() { Val = "005A08D0" };
            Rsid rsid62 = new Rsid() { Val = "005B004F" };
            Rsid rsid63 = new Rsid() { Val = "005B5260" };
            Rsid rsid64 = new Rsid() { Val = "005C21DB" };
            Rsid rsid65 = new Rsid() { Val = "0063728F" };
            Rsid rsid66 = new Rsid() { Val = "00665E6B" };
            Rsid rsid67 = new Rsid() { Val = "00692A94" };
            Rsid rsid68 = new Rsid() { Val = "006B0FE7" };
            Rsid rsid69 = new Rsid() { Val = "006B2C44" };
            Rsid rsid70 = new Rsid() { Val = "006D233C" };
            Rsid rsid71 = new Rsid() { Val = "006D4248" };
            Rsid rsid72 = new Rsid() { Val = "006E017B" };
            Rsid rsid73 = new Rsid() { Val = "00701985" };
            Rsid rsid74 = new Rsid() { Val = "00715E68" };
            Rsid rsid75 = new Rsid() { Val = "00744157" };
            Rsid rsid76 = new Rsid() { Val = "00754BC3" };
            Rsid rsid77 = new Rsid() { Val = "007561BE" };
            Rsid rsid78 = new Rsid() { Val = "007663F0" };
            Rsid rsid79 = new Rsid() { Val = "00783011" };
            Rsid rsid80 = new Rsid() { Val = "00783ADE" };
            Rsid rsid81 = new Rsid() { Val = "00787C9A" };
            Rsid rsid82 = new Rsid() { Val = "007A678A" };
            Rsid rsid83 = new Rsid() { Val = "007E5337" };
            Rsid rsid84 = new Rsid() { Val = "00800A7E" };
            Rsid rsid85 = new Rsid() { Val = "0081551B" };
            Rsid rsid86 = new Rsid() { Val = "0084537D" };
            Rsid rsid87 = new Rsid() { Val = "008468F5" };
            Rsid rsid88 = new Rsid() { Val = "008570E8" };
            Rsid rsid89 = new Rsid() { Val = "00862279" };
            Rsid rsid90 = new Rsid() { Val = "0086416E" };
            Rsid rsid91 = new Rsid() { Val = "00870446" };
            Rsid rsid92 = new Rsid() { Val = "00883479" };
            Rsid rsid93 = new Rsid() { Val = "008A3667" };
            Rsid rsid94 = new Rsid() { Val = "008C59FA" };
            Rsid rsid95 = new Rsid() { Val = "008D7654" };
            Rsid rsid96 = new Rsid() { Val = "00933D40" };
            Rsid rsid97 = new Rsid() { Val = "00942281" };
            Rsid rsid98 = new Rsid() { Val = "009446D8" };
            Rsid rsid99 = new Rsid() { Val = "009732CB" };
            Rsid rsid100 = new Rsid() { Val = "00996BFB" };
            Rsid rsid101 = new Rsid() { Val = "00A219D4" };
            Rsid rsid102 = new Rsid() { Val = "00A30087" };
            Rsid rsid103 = new Rsid() { Val = "00A80B81" };
            Rsid rsid104 = new Rsid() { Val = "00A90780" };
            Rsid rsid105 = new Rsid() { Val = "00AD59C4" };
            Rsid rsid106 = new Rsid() { Val = "00AD64CE" };
            Rsid rsid107 = new Rsid() { Val = "00AE2E8A" };
            Rsid rsid108 = new Rsid() { Val = "00AE4558" };
            Rsid rsid109 = new Rsid() { Val = "00B1006B" };
            Rsid rsid110 = new Rsid() { Val = "00B12841" };
            Rsid rsid111 = new Rsid() { Val = "00B3150E" };
            Rsid rsid112 = new Rsid() { Val = "00B929C4" };
            Rsid rsid113 = new Rsid() { Val = "00BA6070" };
            Rsid rsid114 = new Rsid() { Val = "00BE1EF6" };
            Rsid rsid115 = new Rsid() { Val = "00BE7A30" };
            Rsid rsid116 = new Rsid() { Val = "00C20112" };
            Rsid rsid117 = new Rsid() { Val = "00C47143" };
            Rsid rsid118 = new Rsid() { Val = "00C72E09" };
            Rsid rsid119 = new Rsid() { Val = "00C761FE" };
            Rsid rsid120 = new Rsid() { Val = "00CA0A9D" };
            Rsid rsid121 = new Rsid() { Val = "00CA517A" };
            Rsid rsid122 = new Rsid() { Val = "00CD5A1A" };
            Rsid rsid123 = new Rsid() { Val = "00CF6585" };
            Rsid rsid124 = new Rsid() { Val = "00D513DA" };
            Rsid rsid125 = new Rsid() { Val = "00D928C5" };
            Rsid rsid126 = new Rsid() { Val = "00D96872" };
            Rsid rsid127 = new Rsid() { Val = "00DC4F59" };
            Rsid rsid128 = new Rsid() { Val = "00DC52C8" };
            Rsid rsid129 = new Rsid() { Val = "00DC6850" };
            Rsid rsid130 = new Rsid() { Val = "00E002CE" };
            Rsid rsid131 = new Rsid() { Val = "00E12065" };
            Rsid rsid132 = new Rsid() { Val = "00E1522A" };
            Rsid rsid133 = new Rsid() { Val = "00E4316D" };
            Rsid rsid134 = new Rsid() { Val = "00E433B6" };
            Rsid rsid135 = new Rsid() { Val = "00E6492E" };
            Rsid rsid136 = new Rsid() { Val = "00E65437" };
            Rsid rsid137 = new Rsid() { Val = "00E87F0F" };
            Rsid rsid138 = new Rsid() { Val = "00E94E4C" };
            Rsid rsid139 = new Rsid() { Val = "00EB28F3" };
            Rsid rsid140 = new Rsid() { Val = "00EB66F4" };
            Rsid rsid141 = new Rsid() { Val = "00EC0F7F" };
            Rsid rsid142 = new Rsid() { Val = "00EC5804" };
            Rsid rsid143 = new Rsid() { Val = "00ED7D92" };
            Rsid rsid144 = new Rsid() { Val = "00EF2164" };
            Rsid rsid145 = new Rsid() { Val = "00F1537C" };
            Rsid rsid146 = new Rsid() { Val = "00F17360" };
            Rsid rsid147 = new Rsid() { Val = "00F23CC8" };
            Rsid rsid148 = new Rsid() { Val = "00F30C5C" };
            Rsid rsid149 = new Rsid() { Val = "00F6304E" };
            Rsid rsid150 = new Rsid() { Val = "00F95246" };
            Rsid rsid151 = new Rsid() { Val = "00FA1A5C" };
            Rsid rsid152 = new Rsid() { Val = "00FA1EA6" };
            Rsid rsid153 = new Rsid() { Val = "00FA77B7" };
            Rsid rsid154 = new Rsid() { Val = "00FE6413" };
            Rsid rsid155 = new Rsid() { Val = "00FF0129" };
            Rsid rsid156 = new Rsid() { Val = "00FF14A8" };

            rsids1.Append(rsidRoot1);
            rsids1.Append(rsid1);
            rsids1.Append(rsid2);
            rsids1.Append(rsid3);
            rsids1.Append(rsid4);
            rsids1.Append(rsid5);
            rsids1.Append(rsid6);
            rsids1.Append(rsid7);
            rsids1.Append(rsid8);
            rsids1.Append(rsid9);
            rsids1.Append(rsid10);
            rsids1.Append(rsid11);
            rsids1.Append(rsid12);
            rsids1.Append(rsid13);
            rsids1.Append(rsid14);
            rsids1.Append(rsid15);
            rsids1.Append(rsid16);
            rsids1.Append(rsid17);
            rsids1.Append(rsid18);
            rsids1.Append(rsid19);
            rsids1.Append(rsid20);
            rsids1.Append(rsid21);
            rsids1.Append(rsid22);
            rsids1.Append(rsid23);
            rsids1.Append(rsid24);
            rsids1.Append(rsid25);
            rsids1.Append(rsid26);
            rsids1.Append(rsid27);
            rsids1.Append(rsid28);
            rsids1.Append(rsid29);
            rsids1.Append(rsid30);
            rsids1.Append(rsid31);
            rsids1.Append(rsid32);
            rsids1.Append(rsid33);
            rsids1.Append(rsid34);
            rsids1.Append(rsid35);
            rsids1.Append(rsid36);
            rsids1.Append(rsid37);
            rsids1.Append(rsid38);
            rsids1.Append(rsid39);
            rsids1.Append(rsid40);
            rsids1.Append(rsid41);
            rsids1.Append(rsid42);
            rsids1.Append(rsid43);
            rsids1.Append(rsid44);
            rsids1.Append(rsid45);
            rsids1.Append(rsid46);
            rsids1.Append(rsid47);
            rsids1.Append(rsid48);
            rsids1.Append(rsid49);
            rsids1.Append(rsid50);
            rsids1.Append(rsid51);
            rsids1.Append(rsid52);
            rsids1.Append(rsid53);
            rsids1.Append(rsid54);
            rsids1.Append(rsid55);
            rsids1.Append(rsid56);
            rsids1.Append(rsid57);
            rsids1.Append(rsid58);
            rsids1.Append(rsid59);
            rsids1.Append(rsid60);
            rsids1.Append(rsid61);
            rsids1.Append(rsid62);
            rsids1.Append(rsid63);
            rsids1.Append(rsid64);
            rsids1.Append(rsid65);
            rsids1.Append(rsid66);
            rsids1.Append(rsid67);
            rsids1.Append(rsid68);
            rsids1.Append(rsid69);
            rsids1.Append(rsid70);
            rsids1.Append(rsid71);
            rsids1.Append(rsid72);
            rsids1.Append(rsid73);
            rsids1.Append(rsid74);
            rsids1.Append(rsid75);
            rsids1.Append(rsid76);
            rsids1.Append(rsid77);
            rsids1.Append(rsid78);
            rsids1.Append(rsid79);
            rsids1.Append(rsid80);
            rsids1.Append(rsid81);
            rsids1.Append(rsid82);
            rsids1.Append(rsid83);
            rsids1.Append(rsid84);
            rsids1.Append(rsid85);
            rsids1.Append(rsid86);
            rsids1.Append(rsid87);
            rsids1.Append(rsid88);
            rsids1.Append(rsid89);
            rsids1.Append(rsid90);
            rsids1.Append(rsid91);
            rsids1.Append(rsid92);
            rsids1.Append(rsid93);
            rsids1.Append(rsid94);
            rsids1.Append(rsid95);
            rsids1.Append(rsid96);
            rsids1.Append(rsid97);
            rsids1.Append(rsid98);
            rsids1.Append(rsid99);
            rsids1.Append(rsid100);
            rsids1.Append(rsid101);
            rsids1.Append(rsid102);
            rsids1.Append(rsid103);
            rsids1.Append(rsid104);
            rsids1.Append(rsid105);
            rsids1.Append(rsid106);
            rsids1.Append(rsid107);
            rsids1.Append(rsid108);
            rsids1.Append(rsid109);
            rsids1.Append(rsid110);
            rsids1.Append(rsid111);
            rsids1.Append(rsid112);
            rsids1.Append(rsid113);
            rsids1.Append(rsid114);
            rsids1.Append(rsid115);
            rsids1.Append(rsid116);
            rsids1.Append(rsid117);
            rsids1.Append(rsid118);
            rsids1.Append(rsid119);
            rsids1.Append(rsid120);
            rsids1.Append(rsid121);
            rsids1.Append(rsid122);
            rsids1.Append(rsid123);
            rsids1.Append(rsid124);
            rsids1.Append(rsid125);
            rsids1.Append(rsid126);
            rsids1.Append(rsid127);
            rsids1.Append(rsid128);
            rsids1.Append(rsid129);
            rsids1.Append(rsid130);
            rsids1.Append(rsid131);
            rsids1.Append(rsid132);
            rsids1.Append(rsid133);
            rsids1.Append(rsid134);
            rsids1.Append(rsid135);
            rsids1.Append(rsid136);
            rsids1.Append(rsid137);
            rsids1.Append(rsid138);
            rsids1.Append(rsid139);
            rsids1.Append(rsid140);
            rsids1.Append(rsid141);
            rsids1.Append(rsid142);
            rsids1.Append(rsid143);
            rsids1.Append(rsid144);
            rsids1.Append(rsid145);
            rsids1.Append(rsid146);
            rsids1.Append(rsid147);
            rsids1.Append(rsid148);
            rsids1.Append(rsid149);
            rsids1.Append(rsid150);
            rsids1.Append(rsid151);
            rsids1.Append(rsid152);
            rsids1.Append(rsid153);
            rsids1.Append(rsid154);
            rsids1.Append(rsid155);
            rsids1.Append(rsid156);

            M.MathProperties mathProperties1 = new M.MathProperties();
            M.MathFont mathFont1 = new M.MathFont() { Val = "Cambria Math" };
            M.BreakBinary breakBinary1 = new M.BreakBinary() { Val = M.BreakBinaryOperatorValues.Before };
            M.BreakBinarySubtraction breakBinarySubtraction1 = new M.BreakBinarySubtraction() { Val = M.BreakBinarySubtractionValues.MinusMinus };
            M.SmallFraction smallFraction1 = new M.SmallFraction() { Val = M.BooleanValues.Zero };
            M.DisplayDefaults displayDefaults1 = new M.DisplayDefaults();
            M.LeftMargin leftMargin1 = new M.LeftMargin() { Val = (UInt32Value)0U };
            M.RightMargin rightMargin1 = new M.RightMargin() { Val = (UInt32Value)0U };
            M.DefaultJustification defaultJustification1 = new M.DefaultJustification() { Val = M.JustificationValues.CenterGroup };
            M.WrapIndent wrapIndent1 = new M.WrapIndent() { Val = (UInt32Value)1440U };
            M.IntegralLimitLocation integralLimitLocation1 = new M.IntegralLimitLocation() { Val = M.LimitLocationValues.SubscriptSuperscript };
            M.NaryLimitLocation naryLimitLocation1 = new M.NaryLimitLocation() { Val = M.LimitLocationValues.UnderOver };

            mathProperties1.Append(mathFont1);
            mathProperties1.Append(breakBinary1);
            mathProperties1.Append(breakBinarySubtraction1);
            mathProperties1.Append(smallFraction1);
            mathProperties1.Append(displayDefaults1);
            mathProperties1.Append(leftMargin1);
            mathProperties1.Append(rightMargin1);
            mathProperties1.Append(defaultJustification1);
            mathProperties1.Append(wrapIndent1);
            mathProperties1.Append(integralLimitLocation1);
            mathProperties1.Append(naryLimitLocation1);
            ThemeFontLanguages themeFontLanguages1 = new ThemeFontLanguages() { Val = "en-US", EastAsia = "zh-CN" };
            ColorSchemeMapping colorSchemeMapping1 = new ColorSchemeMapping() { Background1 = ColorSchemeIndexValues.Light1, Text1 = ColorSchemeIndexValues.Dark1, Background2 = ColorSchemeIndexValues.Light2, Text2 = ColorSchemeIndexValues.Dark2, Accent1 = ColorSchemeIndexValues.Accent1, Accent2 = ColorSchemeIndexValues.Accent2, Accent3 = ColorSchemeIndexValues.Accent3, Accent4 = ColorSchemeIndexValues.Accent4, Accent5 = ColorSchemeIndexValues.Accent5, Accent6 = ColorSchemeIndexValues.Accent6, Hyperlink = ColorSchemeIndexValues.Hyperlink, FollowedHyperlink = ColorSchemeIndexValues.FollowedHyperlink };

            ShapeDefaults shapeDefaults2 = new ShapeDefaults();
            Ovml.ShapeDefaults shapeDefaults3 = new Ovml.ShapeDefaults() { Extension = V.ExtensionHandlingBehaviorValues.Edit, MaxShapeId = 2049 };

            Ovml.ShapeLayout shapeLayout1 = new Ovml.ShapeLayout() { Extension = V.ExtensionHandlingBehaviorValues.Edit };
            Ovml.ShapeIdMap shapeIdMap1 = new Ovml.ShapeIdMap() { Extension = V.ExtensionHandlingBehaviorValues.Edit, Data = "1" };

            shapeLayout1.Append(shapeIdMap1);

            shapeDefaults2.Append(shapeDefaults3);
            shapeDefaults2.Append(shapeLayout1);
            DecimalSymbol decimalSymbol1 = new DecimalSymbol() { Val = "." };
            ListSeparator listSeparator1 = new ListSeparator() { Val = "," };
            W15.ChartTrackingRefBased chartTrackingRefBased1 = new W15.ChartTrackingRefBased();
            W15.PersistentDocumentId persistentDocumentId1 = new W15.PersistentDocumentId() { Val = "{FBB28D33-AE74-477E-BB4F-B17128D70046}" };

            settings1.Append(zoom1);
            settings1.Append(bordersDoNotSurroundHeader1);
            settings1.Append(bordersDoNotSurroundFooter1);
            settings1.Append(attachedTemplate1);
            settings1.Append(defaultTabStop1);
            settings1.Append(drawingGridVerticalSpacing1);
            settings1.Append(displayHorizontalDrawingGrid1);
            settings1.Append(displayVerticalDrawingGrid1);
            settings1.Append(characterSpacingControl1);
            settings1.Append(headerShapeDefaults1);
            settings1.Append(footnoteDocumentWideProperties1);
            settings1.Append(endnoteDocumentWideProperties1);
            settings1.Append(compatibility1);
            settings1.Append(rsids1);
            settings1.Append(mathProperties1);
            settings1.Append(themeFontLanguages1);
            settings1.Append(colorSchemeMapping1);
            settings1.Append(shapeDefaults2);
            settings1.Append(decimalSymbol1);
            settings1.Append(listSeparator1);
            settings1.Append(chartTrackingRefBased1);
            settings1.Append(persistentDocumentId1);

            documentSettingsPart1.Settings = settings1;
        }
        // Generates content of documentSettingsPart1.
        private void GenerateDocumentSettingsPart1Content(DocumentSettingsPart documentSettingsPart1)
        {
            Settings settings1 = new Settings();
            Zoom zoom1 = new Zoom() { Percent = "100" };
            AttachedTemplate attachedTemplate1 = new AttachedTemplate() { Id = "rId1" };
            LinkStyles linkStyles1 = new LinkStyles();
            DefaultTabStop defaultTabStop1 = new DefaultTabStop() { Val = 720 };
            HyphenationZone hyphenationZone1 = new HyphenationZone() { Val = "425" };
            NoPunctuationKerning noPunctuationKerning1 = new NoPunctuationKerning();
            CharacterSpacingControl characterSpacingControl1 = new CharacterSpacingControl() { Val = CharacterSpacingValues.DoNotCompress };
            DoNotValidateAgainstSchema doNotValidateAgainstSchema1 = new DoNotValidateAgainstSchema();
            SaveInvalidXml saveInvalidXml1 = new SaveInvalidXml();
            IgnoreMixedContent ignoreMixedContent1 = new IgnoreMixedContent();

            HeaderShapeDefaults headerShapeDefaults1 = new HeaderShapeDefaults();
            Ovml.ShapeDefaults shapeDefaults1 = new Ovml.ShapeDefaults() { Extension = V.ExtensionHandlingBehaviorValues.Edit, MaxShapeId = 300034 };

            headerShapeDefaults1.Append(shapeDefaults1);

            FootnoteDocumentWideProperties footnoteDocumentWideProperties1 = new FootnoteDocumentWideProperties();
            FootnoteSpecialReference footnoteSpecialReference1 = new FootnoteSpecialReference() { Id = -1 };
            FootnoteSpecialReference footnoteSpecialReference2 = new FootnoteSpecialReference() { Id = 0 };

            footnoteDocumentWideProperties1.Append(footnoteSpecialReference1);
            footnoteDocumentWideProperties1.Append(footnoteSpecialReference2);

            EndnoteDocumentWideProperties endnoteDocumentWideProperties1 = new EndnoteDocumentWideProperties();
            EndnoteSpecialReference endnoteSpecialReference1 = new EndnoteSpecialReference() { Id = -1 };
            EndnoteSpecialReference endnoteSpecialReference2 = new EndnoteSpecialReference() { Id = 0 };

            endnoteDocumentWideProperties1.Append(endnoteSpecialReference1);
            endnoteDocumentWideProperties1.Append(endnoteSpecialReference2);

            Compatibility compatibility1 = new Compatibility();
            UseFarEastLayout useFarEastLayout1 = new UseFarEastLayout();

            compatibility1.Append(useFarEastLayout1);

            Rsids rsids1 = new Rsids();
            RsidRoot rsidRoot1 = new RsidRoot() { Val = "002E7D22" };
            Rsid rsid1 = new Rsid() { Val = "00000151" };
            Rsid rsid2 = new Rsid() { Val = "0000036F" };
            Rsid rsid3 = new Rsid() { Val = "000107CA" };
            Rsid rsid4 = new Rsid() { Val = "00011A83" };
            Rsid rsid5 = new Rsid() { Val = "00026250" };
            Rsid rsid6 = new Rsid() { Val = "0002709C" };
            Rsid rsid7 = new Rsid() { Val = "00033A61" };
            Rsid rsid8 = new Rsid() { Val = "000369F7" };
            Rsid rsid9 = new Rsid() { Val = "00037233" };
            Rsid rsid10 = new Rsid() { Val = "000432BA" };
            Rsid rsid11 = new Rsid() { Val = "00046BAE" };
            Rsid rsid12 = new Rsid() { Val = "00050CB1" };
            Rsid rsid13 = new Rsid() { Val = "00055488" };
            Rsid rsid14 = new Rsid() { Val = "00056308" };
            Rsid rsid15 = new Rsid() { Val = "00056347" };
            Rsid rsid16 = new Rsid() { Val = "00067CFE" };
            Rsid rsid17 = new Rsid() { Val = "00072CF0" };
            Rsid rsid18 = new Rsid() { Val = "00090FFC" };
            Rsid rsid19 = new Rsid() { Val = "000A24FF" };
            Rsid rsid20 = new Rsid() { Val = "000A318E" };
            Rsid rsid21 = new Rsid() { Val = "000A5DCE" };
            Rsid rsid22 = new Rsid() { Val = "000A6BF0" };
            Rsid rsid23 = new Rsid() { Val = "000A778A" };
            Rsid rsid24 = new Rsid() { Val = "000A7D4C" };
            Rsid rsid25 = new Rsid() { Val = "000B0A8A" };
            Rsid rsid26 = new Rsid() { Val = "000B25F2" };
            Rsid rsid27 = new Rsid() { Val = "000B5DD7" };
            Rsid rsid28 = new Rsid() { Val = "000C0418" };
            Rsid rsid29 = new Rsid() { Val = "000C29E0" };
            Rsid rsid30 = new Rsid() { Val = "000C42AA" };
            Rsid rsid31 = new Rsid() { Val = "000C4F36" };
            Rsid rsid32 = new Rsid() { Val = "000D1AC7" };
            Rsid rsid33 = new Rsid() { Val = "000D6093" };
            Rsid rsid34 = new Rsid() { Val = "000E1B96" };
            Rsid rsid35 = new Rsid() { Val = "000E2EEF" };
            Rsid rsid36 = new Rsid() { Val = "000E365D" };
            Rsid rsid37 = new Rsid() { Val = "000E5A65" };
            Rsid rsid38 = new Rsid() { Val = "000E62B4" };
            Rsid rsid39 = new Rsid() { Val = "000F60EB" };
            Rsid rsid40 = new Rsid() { Val = "000F68FD" };
            Rsid rsid41 = new Rsid() { Val = "00100B85" };
            Rsid rsid42 = new Rsid() { Val = "00103C4D" };
            Rsid rsid43 = new Rsid() { Val = "0010766E" };
            Rsid rsid44 = new Rsid() { Val = "00113178" };
            Rsid rsid45 = new Rsid() { Val = "0012032A" };
            Rsid rsid46 = new Rsid() { Val = "00121411" };
            Rsid rsid47 = new Rsid() { Val = "001255B1" };
            Rsid rsid48 = new Rsid() { Val = "0013124D" };
            Rsid rsid49 = new Rsid() { Val = "001357A3" };
            Rsid rsid50 = new Rsid() { Val = "00136DF8" };
            Rsid rsid51 = new Rsid() { Val = "00140622" };
            Rsid rsid52 = new Rsid() { Val = "00141D32" };
            Rsid rsid53 = new Rsid() { Val = "00150E17" };
            Rsid rsid54 = new Rsid() { Val = "00151C60" };
            Rsid rsid55 = new Rsid() { Val = "00156A9E" };
            Rsid rsid56 = new Rsid() { Val = "00157D8A" };
            Rsid rsid57 = new Rsid() { Val = "001717CD" };
            Rsid rsid58 = new Rsid() { Val = "001777F8" };
            Rsid rsid59 = new Rsid() { Val = "00185AFD" };
            Rsid rsid60 = new Rsid() { Val = "00187ACA" };
            Rsid rsid61 = new Rsid() { Val = "0019393C" };
            Rsid rsid62 = new Rsid() { Val = "00194B6D" };
            Rsid rsid63 = new Rsid() { Val = "00195CE8" };
            Rsid rsid64 = new Rsid() { Val = "00196E39" };
            Rsid rsid65 = new Rsid() { Val = "001974FE" };
            Rsid rsid66 = new Rsid() { Val = "001A0A63" };
            Rsid rsid67 = new Rsid() { Val = "001A4082" };
            Rsid rsid68 = new Rsid() { Val = "001A67D6" };
            Rsid rsid69 = new Rsid() { Val = "001B011D" };
            Rsid rsid70 = new Rsid() { Val = "001B225F" };
            Rsid rsid71 = new Rsid() { Val = "001B6F6C" };
            Rsid rsid72 = new Rsid() { Val = "001B746B" };
            Rsid rsid73 = new Rsid() { Val = "001C4579" };
            Rsid rsid74 = new Rsid() { Val = "001D5E74" };
            Rsid rsid75 = new Rsid() { Val = "001D60A9" };
            Rsid rsid76 = new Rsid() { Val = "001D6F62" };
            Rsid rsid77 = new Rsid() { Val = "001E724B" };
            Rsid rsid78 = new Rsid() { Val = "001F7499" };
            Rsid rsid79 = new Rsid() { Val = "002058A3" };
            Rsid rsid80 = new Rsid() { Val = "00206CCC" };
            Rsid rsid81 = new Rsid() { Val = "00216E92" };
            Rsid rsid82 = new Rsid() { Val = "00222633" };
            Rsid rsid83 = new Rsid() { Val = "0022367F" };
            Rsid rsid84 = new Rsid() { Val = "00227F18" };
            Rsid rsid85 = new Rsid() { Val = "00233025" };
            Rsid rsid86 = new Rsid() { Val = "00233DD2" };
            Rsid rsid87 = new Rsid() { Val = "00240AED" };
            Rsid rsid88 = new Rsid() { Val = "00243071" };
            Rsid rsid89 = new Rsid() { Val = "00244BC4" };
            Rsid rsid90 = new Rsid() { Val = "002462E2" };
            Rsid rsid91 = new Rsid() { Val = "002509D3" };
            Rsid rsid92 = new Rsid() { Val = "00256073" };
            Rsid rsid93 = new Rsid() { Val = "002614AB" };
            Rsid rsid94 = new Rsid() { Val = "00261E4D" };
            Rsid rsid95 = new Rsid() { Val = "0026354B" };
            Rsid rsid96 = new Rsid() { Val = "00264CFB" };
            Rsid rsid97 = new Rsid() { Val = "00267B3B" };
            Rsid rsid98 = new Rsid() { Val = "00272AD9" };
            Rsid rsid99 = new Rsid() { Val = "00273990" };
            Rsid rsid100 = new Rsid() { Val = "00275427" };
            Rsid rsid101 = new Rsid() { Val = "00280514" };
            Rsid rsid102 = new Rsid() { Val = "002825BD" };
            Rsid rsid103 = new Rsid() { Val = "00282F5E" };
            Rsid rsid104 = new Rsid() { Val = "002836D3" };
            Rsid rsid105 = new Rsid() { Val = "00283CC4" };
            Rsid rsid106 = new Rsid() { Val = "00292192" };
            Rsid rsid107 = new Rsid() { Val = "00295BC7" };
            Rsid rsid108 = new Rsid() { Val = "002A248B" };
            Rsid rsid109 = new Rsid() { Val = "002A33EC" };
            Rsid rsid110 = new Rsid() { Val = "002A4E0E" };
            Rsid rsid111 = new Rsid() { Val = "002A5362" };
            Rsid rsid112 = new Rsid() { Val = "002A7539" };
            Rsid rsid113 = new Rsid() { Val = "002B0C9D" };
            Rsid rsid114 = new Rsid() { Val = "002B7BE9" };
            Rsid rsid115 = new Rsid() { Val = "002C2313" };
            Rsid rsid116 = new Rsid() { Val = "002C57EF" };
            Rsid rsid117 = new Rsid() { Val = "002D3F1B" };
            Rsid rsid118 = new Rsid() { Val = "002D5864" };
            Rsid rsid119 = new Rsid() { Val = "002D5BB8" };
            Rsid rsid120 = new Rsid() { Val = "002E1DC5" };
            Rsid rsid121 = new Rsid() { Val = "002E32B1" };
            Rsid rsid122 = new Rsid() { Val = "002E4819" };
            Rsid rsid123 = new Rsid() { Val = "002E5FC9" };
            Rsid rsid124 = new Rsid() { Val = "002E707E" };
            Rsid rsid125 = new Rsid() { Val = "002E7D22" };
            Rsid rsid126 = new Rsid() { Val = "003000C4" };
            Rsid rsid127 = new Rsid() { Val = "0031558F" };
            Rsid rsid128 = new Rsid() { Val = "00317CC3" };
            Rsid rsid129 = new Rsid() { Val = "00336490" };
            Rsid rsid130 = new Rsid() { Val = "00336875" };
            Rsid rsid131 = new Rsid() { Val = "0034101A" };
            Rsid rsid132 = new Rsid() { Val = "00344459" };
            Rsid rsid133 = new Rsid() { Val = "00354726" };
            Rsid rsid134 = new Rsid() { Val = "00356266" };
            Rsid rsid135 = new Rsid() { Val = "00374165" };
            Rsid rsid136 = new Rsid() { Val = "00375BA9" };
            Rsid rsid137 = new Rsid() { Val = "00381D4A" };
            Rsid rsid138 = new Rsid() { Val = "00385C36" };
            Rsid rsid139 = new Rsid() { Val = "00387921" };
            Rsid rsid140 = new Rsid() { Val = "003907B3" };
            Rsid rsid141 = new Rsid() { Val = "003924C4" };
            Rsid rsid142 = new Rsid() { Val = "00397A9E" };
            Rsid rsid143 = new Rsid() { Val = "003C2666" };
            Rsid rsid144 = new Rsid() { Val = "003C5F5D" };
            Rsid rsid145 = new Rsid() { Val = "003C6DE9" };
            Rsid rsid146 = new Rsid() { Val = "003D7741" };
            Rsid rsid147 = new Rsid() { Val = "003D786B" };
            Rsid rsid148 = new Rsid() { Val = "003E0EAC" };
            Rsid rsid149 = new Rsid() { Val = "003E4D99" };
            Rsid rsid150 = new Rsid() { Val = "003F0DD8" };
            Rsid rsid151 = new Rsid() { Val = "003F1967" };
            Rsid rsid152 = new Rsid() { Val = "003F1E87" };
            Rsid rsid153 = new Rsid() { Val = "003F2779" };
            Rsid rsid154 = new Rsid() { Val = "00401509" };
            Rsid rsid155 = new Rsid() { Val = "00413F24" };
            Rsid rsid156 = new Rsid() { Val = "00417B92" };
            Rsid rsid157 = new Rsid() { Val = "00417CB6" };
            Rsid rsid158 = new Rsid() { Val = "00423094" };
            Rsid rsid159 = new Rsid() { Val = "00430E1B" };
            Rsid rsid160 = new Rsid() { Val = "00432185" };
            Rsid rsid161 = new Rsid() { Val = "004427CC" };
            Rsid rsid162 = new Rsid() { Val = "004431D7" };
            Rsid rsid163 = new Rsid() { Val = "004438D9" };
            Rsid rsid164 = new Rsid() { Val = "00443A55" };
            Rsid rsid165 = new Rsid() { Val = "00443CD0" };
            Rsid rsid166 = new Rsid() { Val = "00444A32" };
            Rsid rsid167 = new Rsid() { Val = "00447118" };
            Rsid rsid168 = new Rsid() { Val = "00451171" };
            Rsid rsid169 = new Rsid() { Val = "004522C9" };
            Rsid rsid170 = new Rsid() { Val = "00453E48" };
            Rsid rsid171 = new Rsid() { Val = "00456F84" };
            Rsid rsid172 = new Rsid() { Val = "00461D37" };
            Rsid rsid173 = new Rsid() { Val = "00464492" };
            Rsid rsid174 = new Rsid() { Val = "004657C1" };
            Rsid rsid175 = new Rsid() { Val = "00466898" };
            Rsid rsid176 = new Rsid() { Val = "00472DEA" };
            Rsid rsid177 = new Rsid() { Val = "004805C1" };
            Rsid rsid178 = new Rsid() { Val = "004826CB" };
            Rsid rsid179 = new Rsid() { Val = "0049162E" };
            Rsid rsid180 = new Rsid() { Val = "00495D69" };
            Rsid rsid181 = new Rsid() { Val = "004A5AE6" };
            Rsid rsid182 = new Rsid() { Val = "004A6E9F" };
            Rsid rsid183 = new Rsid() { Val = "004A7F93" };
            Rsid rsid184 = new Rsid() { Val = "004B2B7F" };
            Rsid rsid185 = new Rsid() { Val = "004C0DA7" };
            Rsid rsid186 = new Rsid() { Val = "004C4687" };
            Rsid rsid187 = new Rsid() { Val = "004C7C60" };
            Rsid rsid188 = new Rsid() { Val = "004D12BE" };
            Rsid rsid189 = new Rsid() { Val = "004D5ECC" };
            Rsid rsid190 = new Rsid() { Val = "004E16FD" };
            Rsid rsid191 = new Rsid() { Val = "004E195A" };
            Rsid rsid192 = new Rsid() { Val = "004E54D9" };
            Rsid rsid193 = new Rsid() { Val = "004E7907" };
            Rsid rsid194 = new Rsid() { Val = "004F2494" };
            Rsid rsid195 = new Rsid() { Val = "004F2A92" };
            Rsid rsid196 = new Rsid() { Val = "00506462" };
            Rsid rsid197 = new Rsid() { Val = "00514769" };
            Rsid rsid198 = new Rsid() { Val = "00517D57" };
            Rsid rsid199 = new Rsid() { Val = "00523FC2" };
            Rsid rsid200 = new Rsid() { Val = "00524AA7" };
            Rsid rsid201 = new Rsid() { Val = "00532951" };
            Rsid rsid202 = new Rsid() { Val = "00535256" };
            Rsid rsid203 = new Rsid() { Val = "00544156" };
            Rsid rsid204 = new Rsid() { Val = "00545261" };
            Rsid rsid205 = new Rsid() { Val = "00547DDD" };
            Rsid rsid206 = new Rsid() { Val = "005536AE" };
            Rsid rsid207 = new Rsid() { Val = "00554657" };
            Rsid rsid208 = new Rsid() { Val = "005546F4" };
            Rsid rsid209 = new Rsid() { Val = "00560517" };
            Rsid rsid210 = new Rsid() { Val = "00561A98" };
            Rsid rsid211 = new Rsid() { Val = "005623FA" };
            Rsid rsid212 = new Rsid() { Val = "00562F9B" };
            Rsid rsid213 = new Rsid() { Val = "00566334" };
            Rsid rsid214 = new Rsid() { Val = "00572029" };
            Rsid rsid215 = new Rsid() { Val = "00574E3B" };
            Rsid rsid216 = new Rsid() { Val = "005754DB" };
            Rsid rsid217 = new Rsid() { Val = "00583853" };
            Rsid rsid218 = new Rsid() { Val = "00583E34" };
            Rsid rsid219 = new Rsid() { Val = "00584020" };
            Rsid rsid220 = new Rsid() { Val = "00592E66" };
            Rsid rsid221 = new Rsid() { Val = "00594B09" };
            Rsid rsid222 = new Rsid() { Val = "005A4976" };
            Rsid rsid223 = new Rsid() { Val = "005A4CCC" };
            Rsid rsid224 = new Rsid() { Val = "005A4E70" };
            Rsid rsid225 = new Rsid() { Val = "005A6F62" };
            Rsid rsid226 = new Rsid() { Val = "005B5C7C" };
            Rsid rsid227 = new Rsid() { Val = "005B7379" };
            Rsid rsid228 = new Rsid() { Val = "005C5D0D" };
            Rsid rsid229 = new Rsid() { Val = "005C5E18" };
            Rsid rsid230 = new Rsid() { Val = "005C722F" };
            Rsid rsid231 = new Rsid() { Val = "005D27DE" };
            Rsid rsid232 = new Rsid() { Val = "005D5D40" };
            Rsid rsid233 = new Rsid() { Val = "005D7E7A" };
            Rsid rsid234 = new Rsid() { Val = "005E40AC" };
            Rsid rsid235 = new Rsid() { Val = "005F2848" };
            Rsid rsid236 = new Rsid() { Val = "005F4DB9" };
            Rsid rsid237 = new Rsid() { Val = "005F6B60" };
            Rsid rsid238 = new Rsid() { Val = "006209F6" };
            Rsid rsid239 = new Rsid() { Val = "006248C1" };
            Rsid rsid240 = new Rsid() { Val = "0063624F" };
            Rsid rsid241 = new Rsid() { Val = "0065191A" };
            Rsid rsid242 = new Rsid() { Val = "00660821" };
            Rsid rsid243 = new Rsid() { Val = "00675ED0" };
            Rsid rsid244 = new Rsid() { Val = "00681EB3" };
            Rsid rsid245 = new Rsid() { Val = "006862EE" };
            Rsid rsid246 = new Rsid() { Val = "0069278B" };
            Rsid rsid247 = new Rsid() { Val = "006A0B1E" };
            Rsid rsid248 = new Rsid() { Val = "006A58D3" };
            Rsid rsid249 = new Rsid() { Val = "006B1D99" };
            Rsid rsid250 = new Rsid() { Val = "006D1BD8" };
            Rsid rsid251 = new Rsid() { Val = "006D2E84" };
            Rsid rsid252 = new Rsid() { Val = "006D39A0" };
            Rsid rsid253 = new Rsid() { Val = "006D6972" };
            Rsid rsid254 = new Rsid() { Val = "006E1177" };
            Rsid rsid255 = new Rsid() { Val = "006E384B" };
            Rsid rsid256 = new Rsid() { Val = "006E5BF6" };
            Rsid rsid257 = new Rsid() { Val = "006E6F86" };
            Rsid rsid258 = new Rsid() { Val = "006F02A4" };
            Rsid rsid259 = new Rsid() { Val = "006F57DE" };
            Rsid rsid260 = new Rsid() { Val = "006F58EB" };
            Rsid rsid261 = new Rsid() { Val = "006F6E20" };
            Rsid rsid262 = new Rsid() { Val = "006F74B4" };
            Rsid rsid263 = new Rsid() { Val = "00700510" };
            Rsid rsid264 = new Rsid() { Val = "00703676" };
            Rsid rsid265 = new Rsid() { Val = "00707FFA" };
            Rsid rsid266 = new Rsid() { Val = "00713208" };
            Rsid rsid267 = new Rsid() { Val = "007171C9" };
            Rsid rsid268 = new Rsid() { Val = "007247F0" };
            Rsid rsid269 = new Rsid() { Val = "00731EBE" };
            Rsid rsid270 = new Rsid() { Val = "0073257C" };
            Rsid rsid271 = new Rsid() { Val = "00740A1C" };
            Rsid rsid272 = new Rsid() { Val = "00751786" };
            Rsid rsid273 = new Rsid() { Val = "00751A3A" };
            Rsid rsid274 = new Rsid() { Val = "00751D5C" };
            Rsid rsid275 = new Rsid() { Val = "00753A74" };
            Rsid rsid276 = new Rsid() { Val = "00754A89" };
            Rsid rsid277 = new Rsid() { Val = "00761A8E" };
            Rsid rsid278 = new Rsid() { Val = "007643CF" };
            Rsid rsid279 = new Rsid() { Val = "00782598" };
            Rsid rsid280 = new Rsid() { Val = "0078481C" };
            Rsid rsid281 = new Rsid() { Val = "0079064C" };
            Rsid rsid282 = new Rsid() { Val = "007A0670" };
            Rsid rsid283 = new Rsid() { Val = "007A234D" };
            Rsid rsid284 = new Rsid() { Val = "007A2948" };
            Rsid rsid285 = new Rsid() { Val = "007A41D7" };
            Rsid rsid286 = new Rsid() { Val = "007B0BC0" };
            Rsid rsid287 = new Rsid() { Val = "007B2876" };
            Rsid rsid288 = new Rsid() { Val = "007B6346" };
            Rsid rsid289 = new Rsid() { Val = "007B661A" };
            Rsid rsid290 = new Rsid() { Val = "007B66F2" };
            Rsid rsid291 = new Rsid() { Val = "007B7BF0" };
            Rsid rsid292 = new Rsid() { Val = "007C1300" };
            Rsid rsid293 = new Rsid() { Val = "007C34CD" };
            Rsid rsid294 = new Rsid() { Val = "007C3DB4" };
            Rsid rsid295 = new Rsid() { Val = "007C4997" };
            Rsid rsid296 = new Rsid() { Val = "007C6A01" };
            Rsid rsid297 = new Rsid() { Val = "007C6AF0" };
            Rsid rsid298 = new Rsid() { Val = "007D0EFC" };
            Rsid rsid299 = new Rsid() { Val = "007D64BE" };
            Rsid rsid300 = new Rsid() { Val = "007E1E2F" };
            Rsid rsid301 = new Rsid() { Val = "007E6AA4" };
            Rsid rsid302 = new Rsid() { Val = "007E7586" };
            Rsid rsid303 = new Rsid() { Val = "008154D4" };
            Rsid rsid304 = new Rsid() { Val = "0082549B" };
            Rsid rsid305 = new Rsid() { Val = "008278CF" };
            Rsid rsid306 = new Rsid() { Val = "0083140B" };
            Rsid rsid307 = new Rsid() { Val = "00835077" };
            Rsid rsid308 = new Rsid() { Val = "00837232" };
            Rsid rsid309 = new Rsid() { Val = "00837AE4" };
            Rsid rsid310 = new Rsid() { Val = "008439F9" };
            Rsid rsid311 = new Rsid() { Val = "00850F31" };
            Rsid rsid312 = new Rsid() { Val = "00851D16" };
            Rsid rsid313 = new Rsid() { Val = "00852F72" };
            Rsid rsid314 = new Rsid() { Val = "00855B1B" };
            Rsid rsid315 = new Rsid() { Val = "008602C0" };
            Rsid rsid316 = new Rsid() { Val = "00860BAA" };
            Rsid rsid317 = new Rsid() { Val = "00862EA1" };
            Rsid rsid318 = new Rsid() { Val = "0086518C" };
            Rsid rsid319 = new Rsid() { Val = "00871C48" };
            Rsid rsid320 = new Rsid() { Val = "00872DEA" };
            Rsid rsid321 = new Rsid() { Val = "008737BB" };
            Rsid rsid322 = new Rsid() { Val = "00880A12" };
            Rsid rsid323 = new Rsid() { Val = "0088564B" };
            Rsid rsid324 = new Rsid() { Val = "00890BFC" };
            Rsid rsid325 = new Rsid() { Val = "00894D97" };
            Rsid rsid326 = new Rsid() { Val = "00897ECC" };
            Rsid rsid327 = new Rsid() { Val = "008A25E5" };
            Rsid rsid328 = new Rsid() { Val = "008B2B2F" };
            Rsid rsid329 = new Rsid() { Val = "008B419B" };
            Rsid rsid330 = new Rsid() { Val = "008B561B" };
            Rsid rsid331 = new Rsid() { Val = "008C067B" };
            Rsid rsid332 = new Rsid() { Val = "008C2D52" };
            Rsid rsid333 = new Rsid() { Val = "008C4316" };
            Rsid rsid334 = new Rsid() { Val = "008D2C48" };
            Rsid rsid335 = new Rsid() { Val = "008D69D4" };
            Rsid rsid336 = new Rsid() { Val = "008D6C0E" };
            Rsid rsid337 = new Rsid() { Val = "008E00D5" };
            Rsid rsid338 = new Rsid() { Val = "008F2CC8" };
            Rsid rsid339 = new Rsid() { Val = "00902E88" };
            Rsid rsid340 = new Rsid() { Val = "00913955" };
            Rsid rsid341 = new Rsid() { Val = "00915758" };
            Rsid rsid342 = new Rsid() { Val = "009166B9" };
            Rsid rsid343 = new Rsid() { Val = "00934E6E" };
            Rsid rsid344 = new Rsid() { Val = "00937F8E" };
            Rsid rsid345 = new Rsid() { Val = "00940CCD" };
            Rsid rsid346 = new Rsid() { Val = "0094125B" };
            Rsid rsid347 = new Rsid() { Val = "00944624" };
            Rsid rsid348 = new Rsid() { Val = "009505D2" };
            Rsid rsid349 = new Rsid() { Val = "009527BD" };
            Rsid rsid350 = new Rsid() { Val = "00957E57" };
            Rsid rsid351 = new Rsid() { Val = "00965C1D" };
            Rsid rsid352 = new Rsid() { Val = "00983F27" };
            Rsid rsid353 = new Rsid() { Val = "009A4C13" };
            Rsid rsid354 = new Rsid() { Val = "009A55D5" };
            Rsid rsid355 = new Rsid() { Val = "009A6239" };
            Rsid rsid356 = new Rsid() { Val = "009A6370" };
            Rsid rsid357 = new Rsid() { Val = "009B6613" };
            Rsid rsid358 = new Rsid() { Val = "009C6FC7" };
            Rsid rsid359 = new Rsid() { Val = "009E2BFE" };
            Rsid rsid360 = new Rsid() { Val = "009E5742" };
            Rsid rsid361 = new Rsid() { Val = "009E5D63" };
            Rsid rsid362 = new Rsid() { Val = "009E5E64" };
            Rsid rsid363 = new Rsid() { Val = "009F02AD" };
            Rsid rsid364 = new Rsid() { Val = "009F0608" };
            Rsid rsid365 = new Rsid() { Val = "009F0B75" };
            Rsid rsid366 = new Rsid() { Val = "009F3BBF" };
            Rsid rsid367 = new Rsid() { Val = "009F453D" };
            Rsid rsid368 = new Rsid() { Val = "009F47A3" };
            Rsid rsid369 = new Rsid() { Val = "009F7E7F" };
            Rsid rsid370 = new Rsid() { Val = "00A129B7" };
            Rsid rsid371 = new Rsid() { Val = "00A15F1D" };
            Rsid rsid372 = new Rsid() { Val = "00A20A5F" };
            Rsid rsid373 = new Rsid() { Val = "00A21AB2" };
            Rsid rsid374 = new Rsid() { Val = "00A22E79" };
            Rsid rsid375 = new Rsid() { Val = "00A241C0" };
            Rsid rsid376 = new Rsid() { Val = "00A27025" };
            Rsid rsid377 = new Rsid() { Val = "00A3564C" };
            Rsid rsid378 = new Rsid() { Val = "00A41F12" };
            Rsid rsid379 = new Rsid() { Val = "00A53072" };
            Rsid rsid380 = new Rsid() { Val = "00A6171D" };
            Rsid rsid381 = new Rsid() { Val = "00A62399" };
            Rsid rsid382 = new Rsid() { Val = "00A65073" };
            Rsid rsid383 = new Rsid() { Val = "00A747BB" };
            Rsid rsid384 = new Rsid() { Val = "00A75BDE" };
            Rsid rsid385 = new Rsid() { Val = "00A7674D" };
            Rsid rsid386 = new Rsid() { Val = "00A77710" };
            Rsid rsid387 = new Rsid() { Val = "00A82025" };
            Rsid rsid388 = new Rsid() { Val = "00A8638E" };
            Rsid rsid389 = new Rsid() { Val = "00A918FB" };
            Rsid rsid390 = new Rsid() { Val = "00A921AB" };
            Rsid rsid391 = new Rsid() { Val = "00A935F6" };
            Rsid rsid392 = new Rsid() { Val = "00AA0A1A" };
            Rsid rsid393 = new Rsid() { Val = "00AA6279" };
            Rsid rsid394 = new Rsid() { Val = "00AB1206" };
            Rsid rsid395 = new Rsid() { Val = "00AB318F" };
            Rsid rsid396 = new Rsid() { Val = "00AB3D48" };
            Rsid rsid397 = new Rsid() { Val = "00AB4921" };
            Rsid rsid398 = new Rsid() { Val = "00AB5753" };
            Rsid rsid399 = new Rsid() { Val = "00AC0771" };
            Rsid rsid400 = new Rsid() { Val = "00AC1437" };
            Rsid rsid401 = new Rsid() { Val = "00AC1B75" };
            Rsid rsid402 = new Rsid() { Val = "00AD0D68" };
            Rsid rsid403 = new Rsid() { Val = "00AD1EF0" };
            Rsid rsid404 = new Rsid() { Val = "00AD5D8C" };
            Rsid rsid405 = new Rsid() { Val = "00AD5E16" };
            Rsid rsid406 = new Rsid() { Val = "00AD61F0" };
            Rsid rsid407 = new Rsid() { Val = "00AD6EBD" };
            Rsid rsid408 = new Rsid() { Val = "00AE3C1A" };
            Rsid rsid409 = new Rsid() { Val = "00AF0136" };
            Rsid rsid410 = new Rsid() { Val = "00AF598C" };
            Rsid rsid411 = new Rsid() { Val = "00AF701E" };
            Rsid rsid412 = new Rsid() { Val = "00AF7795" };
            Rsid rsid413 = new Rsid() { Val = "00B02C12" };
            Rsid rsid414 = new Rsid() { Val = "00B03AFD" };
            Rsid rsid415 = new Rsid() { Val = "00B0579B" };
            Rsid rsid416 = new Rsid() { Val = "00B062C8" };
            Rsid rsid417 = new Rsid() { Val = "00B105DC" };
            Rsid rsid418 = new Rsid() { Val = "00B14BDB" };
            Rsid rsid419 = new Rsid() { Val = "00B21366" };
            Rsid rsid420 = new Rsid() { Val = "00B33F8A" };
            Rsid rsid421 = new Rsid() { Val = "00B354C8" };
            Rsid rsid422 = new Rsid() { Val = "00B401C3" };
            Rsid rsid423 = new Rsid() { Val = "00B41D00" };
            Rsid rsid424 = new Rsid() { Val = "00B62341" };
            Rsid rsid425 = new Rsid() { Val = "00B64DAD" };
            Rsid rsid426 = new Rsid() { Val = "00B67E72" };
            Rsid rsid427 = new Rsid() { Val = "00B70A98" };
            Rsid rsid428 = new Rsid() { Val = "00B72CF9" };
            Rsid rsid429 = new Rsid() { Val = "00B72E61" };
            Rsid rsid430 = new Rsid() { Val = "00B75F5F" };
            Rsid rsid431 = new Rsid() { Val = "00B80285" };
            Rsid rsid432 = new Rsid() { Val = "00B900F7" };
            Rsid rsid433 = new Rsid() { Val = "00B95F6C" };
            Rsid rsid434 = new Rsid() { Val = "00B97B60" };
            Rsid rsid435 = new Rsid() { Val = "00BA224B" };
            Rsid rsid436 = new Rsid() { Val = "00BA33DE" };
            Rsid rsid437 = new Rsid() { Val = "00BA36E7" };
            Rsid rsid438 = new Rsid() { Val = "00BA543D" };
            Rsid rsid439 = new Rsid() { Val = "00BA5E83" };
            Rsid rsid440 = new Rsid() { Val = "00BA679D" };
            Rsid rsid441 = new Rsid() { Val = "00BA6DC3" };
            Rsid rsid442 = new Rsid() { Val = "00BA7E3F" };
            Rsid rsid443 = new Rsid() { Val = "00BB0D74" };
            Rsid rsid444 = new Rsid() { Val = "00BB40B9" };
            Rsid rsid445 = new Rsid() { Val = "00BB5522" };
            Rsid rsid446 = new Rsid() { Val = "00BB5D40" };
            Rsid rsid447 = new Rsid() { Val = "00BC106F" };
            Rsid rsid448 = new Rsid() { Val = "00BC4CAC" };
            Rsid rsid449 = new Rsid() { Val = "00BE25CC" };
            Rsid rsid450 = new Rsid() { Val = "00BE574F" };
            Rsid rsid451 = new Rsid() { Val = "00BF66F3" };
            Rsid rsid452 = new Rsid() { Val = "00BF6F89" };
            Rsid rsid453 = new Rsid() { Val = "00C01F31" };
            Rsid rsid454 = new Rsid() { Val = "00C03444" };
            Rsid rsid455 = new Rsid() { Val = "00C04CE0" };
            Rsid rsid456 = new Rsid() { Val = "00C062F9" };
            Rsid rsid457 = new Rsid() { Val = "00C1094B" };
            Rsid rsid458 = new Rsid() { Val = "00C166F8" };
            Rsid rsid459 = new Rsid() { Val = "00C24508" };
            Rsid rsid460 = new Rsid() { Val = "00C27D0F" };
            Rsid rsid461 = new Rsid() { Val = "00C31288" };
            Rsid rsid462 = new Rsid() { Val = "00C32704" };
            Rsid rsid463 = new Rsid() { Val = "00C33CF0" };
            Rsid rsid464 = new Rsid() { Val = "00C41ABA" };
            Rsid rsid465 = new Rsid() { Val = "00C44584" };
            Rsid rsid466 = new Rsid() { Val = "00C4492A" };
            Rsid rsid467 = new Rsid() { Val = "00C47206" };
            Rsid rsid468 = new Rsid() { Val = "00C6049A" };
            Rsid rsid469 = new Rsid() { Val = "00C62467" };
            Rsid rsid470 = new Rsid() { Val = "00C704CB" };
            Rsid rsid471 = new Rsid() { Val = "00C71CC7" };
            Rsid rsid472 = new Rsid() { Val = "00C7570A" };
            Rsid rsid473 = new Rsid() { Val = "00C803F9" };
            Rsid rsid474 = new Rsid() { Val = "00C82A8F" };
            Rsid rsid475 = new Rsid() { Val = "00C8492B" };
            Rsid rsid476 = new Rsid() { Val = "00C86FD9" };
            Rsid rsid477 = new Rsid() { Val = "00C913B8" };
            Rsid rsid478 = new Rsid() { Val = "00C91FAF" };
            Rsid rsid479 = new Rsid() { Val = "00CA34E5" };
            Rsid rsid480 = new Rsid() { Val = "00CA68C1" };
            Rsid rsid481 = new Rsid() { Val = "00CA7AED" };
            Rsid rsid482 = new Rsid() { Val = "00CB005B" };
            Rsid rsid483 = new Rsid() { Val = "00CB3330" };
            Rsid rsid484 = new Rsid() { Val = "00CB77EF" };
            Rsid rsid485 = new Rsid() { Val = "00CB7FBF" };
            Rsid rsid486 = new Rsid() { Val = "00CC0E6F" };
            Rsid rsid487 = new Rsid() { Val = "00CC2476" };
            Rsid rsid488 = new Rsid() { Val = "00CC46B9" };
            Rsid rsid489 = new Rsid() { Val = "00CD3A9B" };
            Rsid rsid490 = new Rsid() { Val = "00CD57B8" };
            Rsid rsid491 = new Rsid() { Val = "00CE0591" };
            Rsid rsid492 = new Rsid() { Val = "00CE06F6" };
            Rsid rsid493 = new Rsid() { Val = "00CE60E8" };
            Rsid rsid494 = new Rsid() { Val = "00CE7054" };
            Rsid rsid495 = new Rsid() { Val = "00CF0CEB" };
            Rsid rsid496 = new Rsid() { Val = "00CF67E9" };
            Rsid rsid497 = new Rsid() { Val = "00D03B21" };
            Rsid rsid498 = new Rsid() { Val = "00D11E55" };
            Rsid rsid499 = new Rsid() { Val = "00D2246F" };
            Rsid rsid500 = new Rsid() { Val = "00D232C4" };
            Rsid rsid501 = new Rsid() { Val = "00D23A7D" };
            Rsid rsid502 = new Rsid() { Val = "00D412D1" };
            Rsid rsid503 = new Rsid() { Val = "00D42739" };
            Rsid rsid504 = new Rsid() { Val = "00D45D2A" };
            Rsid rsid505 = new Rsid() { Val = "00D525A8" };
            Rsid rsid506 = new Rsid() { Val = "00D52961" };
            Rsid rsid507 = new Rsid() { Val = "00D53395" };
            Rsid rsid508 = new Rsid() { Val = "00D56C12" };
            Rsid rsid509 = new Rsid() { Val = "00D60895" };
            Rsid rsid510 = new Rsid() { Val = "00D62CD3" };
            Rsid rsid511 = new Rsid() { Val = "00D6522A" };
            Rsid rsid512 = new Rsid() { Val = "00D65F6F" };
            Rsid rsid513 = new Rsid() { Val = "00D70F0E" };
            Rsid rsid514 = new Rsid() { Val = "00D80B9E" };
            Rsid rsid515 = new Rsid() { Val = "00D83EDC" };
            Rsid rsid516 = new Rsid() { Val = "00D928EF" };
            Rsid rsid517 = new Rsid() { Val = "00D944B2" };
            Rsid rsid518 = new Rsid() { Val = "00D948F5" };
            Rsid rsid519 = new Rsid() { Val = "00D96806" };
            Rsid rsid520 = new Rsid() { Val = "00DB4ADC" };
            Rsid rsid521 = new Rsid() { Val = "00DC3ED5" };
            Rsid rsid522 = new Rsid() { Val = "00DD1EE3" };
            Rsid rsid523 = new Rsid() { Val = "00DD5BAE" };
            Rsid rsid524 = new Rsid() { Val = "00DD718E" };
            Rsid rsid525 = new Rsid() { Val = "00DE0ED8" };
            Rsid rsid526 = new Rsid() { Val = "00DE1401" };
            Rsid rsid527 = new Rsid() { Val = "00DE345E" };
            Rsid rsid528 = new Rsid() { Val = "00DE549B" };
            Rsid rsid529 = new Rsid() { Val = "00DE5857" };
            Rsid rsid530 = new Rsid() { Val = "00DE78CB" };
            Rsid rsid531 = new Rsid() { Val = "00DF14E1" };
            Rsid rsid532 = new Rsid() { Val = "00DF50CA" };
            Rsid rsid533 = new Rsid() { Val = "00DF71F8" };
            Rsid rsid534 = new Rsid() { Val = "00DF7A1D" };
            Rsid rsid535 = new Rsid() { Val = "00E01429" };
            Rsid rsid536 = new Rsid() { Val = "00E0169F" };
            Rsid rsid537 = new Rsid() { Val = "00E0607E" };
            Rsid rsid538 = new Rsid() { Val = "00E12034" };
            Rsid rsid539 = new Rsid() { Val = "00E1250A" };
            Rsid rsid540 = new Rsid() { Val = "00E23707" };
            Rsid rsid541 = new Rsid() { Val = "00E23AC5" };
            Rsid rsid542 = new Rsid() { Val = "00E23B0A" };
            Rsid rsid543 = new Rsid() { Val = "00E24E56" };
            Rsid rsid544 = new Rsid() { Val = "00E27210" };
            Rsid rsid545 = new Rsid() { Val = "00E31290" };
            Rsid rsid546 = new Rsid() { Val = "00E3130B" };
            Rsid rsid547 = new Rsid() { Val = "00E31C6F" };
            Rsid rsid548 = new Rsid() { Val = "00E32064" };
            Rsid rsid549 = new Rsid() { Val = "00E340CC" };
            Rsid rsid550 = new Rsid() { Val = "00E461C6" };
            Rsid rsid551 = new Rsid() { Val = "00E51784" };
            Rsid rsid552 = new Rsid() { Val = "00E55B54" };
            Rsid rsid553 = new Rsid() { Val = "00E560D4" };
            Rsid rsid554 = new Rsid() { Val = "00E61216" };
            Rsid rsid555 = new Rsid() { Val = "00E61BC8" };
            Rsid rsid556 = new Rsid() { Val = "00E6525C" };
            Rsid rsid557 = new Rsid() { Val = "00E70E3A" };
            Rsid rsid558 = new Rsid() { Val = "00E714A6" };
            Rsid rsid559 = new Rsid() { Val = "00E745A0" };
            Rsid rsid560 = new Rsid() { Val = "00E75E67" };
            Rsid rsid561 = new Rsid() { Val = "00E76728" };
            Rsid rsid562 = new Rsid() { Val = "00E85D8A" };
            Rsid rsid563 = new Rsid() { Val = "00EB02A3" };
            Rsid rsid564 = new Rsid() { Val = "00EB135B" };
            Rsid rsid565 = new Rsid() { Val = "00EB4A0C" };
            Rsid rsid566 = new Rsid() { Val = "00EB61FB" };
            Rsid rsid567 = new Rsid() { Val = "00ED3794" };
            Rsid rsid568 = new Rsid() { Val = "00ED7CA9" };
            Rsid rsid569 = new Rsid() { Val = "00EE2379" };
            Rsid rsid570 = new Rsid() { Val = "00EE7B69" };
            Rsid rsid571 = new Rsid() { Val = "00F02BCF" };
            Rsid rsid572 = new Rsid() { Val = "00F04EF5" };
            Rsid rsid573 = new Rsid() { Val = "00F1393E" };
            Rsid rsid574 = new Rsid() { Val = "00F22E15" };
            Rsid rsid575 = new Rsid() { Val = "00F23038" };
            Rsid rsid576 = new Rsid() { Val = "00F235A9" };
            Rsid rsid577 = new Rsid() { Val = "00F31361" };
            Rsid rsid578 = new Rsid() { Val = "00F31DFE" };
            Rsid rsid579 = new Rsid() { Val = "00F32438" };
            Rsid rsid580 = new Rsid() { Val = "00F342A0" };
            Rsid rsid581 = new Rsid() { Val = "00F34666" };
            Rsid rsid582 = new Rsid() { Val = "00F378DE" };
            Rsid rsid583 = new Rsid() { Val = "00F40AED" };
            Rsid rsid584 = new Rsid() { Val = "00F43E8A" };
            Rsid rsid585 = new Rsid() { Val = "00F561B1" };
            Rsid rsid586 = new Rsid() { Val = "00F617B8" };
            Rsid rsid587 = new Rsid() { Val = "00F61A04" };
            Rsid rsid588 = new Rsid() { Val = "00F66B7D" };
            Rsid rsid589 = new Rsid() { Val = "00F7153C" };
            Rsid rsid590 = new Rsid() { Val = "00F723D6" };
            Rsid rsid591 = new Rsid() { Val = "00F77926" };
            Rsid rsid592 = new Rsid() { Val = "00F8047A" };
            Rsid rsid593 = new Rsid() { Val = "00F811E2" };
            Rsid rsid594 = new Rsid() { Val = "00F83E0C" };
            Rsid rsid595 = new Rsid() { Val = "00F85916" };
            Rsid rsid596 = new Rsid() { Val = "00F90086" };
            Rsid rsid597 = new Rsid() { Val = "00F97D85" };
            Rsid rsid598 = new Rsid() { Val = "00FA196D" };
            Rsid rsid599 = new Rsid() { Val = "00FA3E05" };
            Rsid rsid600 = new Rsid() { Val = "00FA773F" };
            Rsid rsid601 = new Rsid() { Val = "00FA79D4" };
            Rsid rsid602 = new Rsid() { Val = "00FB4196" };
            Rsid rsid603 = new Rsid() { Val = "00FB4EAB" };
            Rsid rsid604 = new Rsid() { Val = "00FB6AB0" };
            Rsid rsid605 = new Rsid() { Val = "00FB6E9A" };
            Rsid rsid606 = new Rsid() { Val = "00FC0F0D" };
            Rsid rsid607 = new Rsid() { Val = "00FC430A" };
            Rsid rsid608 = new Rsid() { Val = "00FC4A2D" };
            Rsid rsid609 = new Rsid() { Val = "00FC5AC6" };
            Rsid rsid610 = new Rsid() { Val = "00FD3FAA" };
            Rsid rsid611 = new Rsid() { Val = "00FD741A" };
            Rsid rsid612 = new Rsid() { Val = "00FE5962" };
            Rsid rsid613 = new Rsid() { Val = "00FF1CD4" };
            Rsid rsid614 = new Rsid() { Val = "00FF61CB" };

            rsids1.Append(rsidRoot1);
            rsids1.Append(rsid1);
            rsids1.Append(rsid2);
            rsids1.Append(rsid3);
            rsids1.Append(rsid4);
            rsids1.Append(rsid5);
            rsids1.Append(rsid6);
            rsids1.Append(rsid7);
            rsids1.Append(rsid8);
            rsids1.Append(rsid9);
            rsids1.Append(rsid10);
            rsids1.Append(rsid11);
            rsids1.Append(rsid12);
            rsids1.Append(rsid13);
            rsids1.Append(rsid14);
            rsids1.Append(rsid15);
            rsids1.Append(rsid16);
            rsids1.Append(rsid17);
            rsids1.Append(rsid18);
            rsids1.Append(rsid19);
            rsids1.Append(rsid20);
            rsids1.Append(rsid21);
            rsids1.Append(rsid22);
            rsids1.Append(rsid23);
            rsids1.Append(rsid24);
            rsids1.Append(rsid25);
            rsids1.Append(rsid26);
            rsids1.Append(rsid27);
            rsids1.Append(rsid28);
            rsids1.Append(rsid29);
            rsids1.Append(rsid30);
            rsids1.Append(rsid31);
            rsids1.Append(rsid32);
            rsids1.Append(rsid33);
            rsids1.Append(rsid34);
            rsids1.Append(rsid35);
            rsids1.Append(rsid36);
            rsids1.Append(rsid37);
            rsids1.Append(rsid38);
            rsids1.Append(rsid39);
            rsids1.Append(rsid40);
            rsids1.Append(rsid41);
            rsids1.Append(rsid42);
            rsids1.Append(rsid43);
            rsids1.Append(rsid44);
            rsids1.Append(rsid45);
            rsids1.Append(rsid46);
            rsids1.Append(rsid47);
            rsids1.Append(rsid48);
            rsids1.Append(rsid49);
            rsids1.Append(rsid50);
            rsids1.Append(rsid51);
            rsids1.Append(rsid52);
            rsids1.Append(rsid53);
            rsids1.Append(rsid54);
            rsids1.Append(rsid55);
            rsids1.Append(rsid56);
            rsids1.Append(rsid57);
            rsids1.Append(rsid58);
            rsids1.Append(rsid59);
            rsids1.Append(rsid60);
            rsids1.Append(rsid61);
            rsids1.Append(rsid62);
            rsids1.Append(rsid63);
            rsids1.Append(rsid64);
            rsids1.Append(rsid65);
            rsids1.Append(rsid66);
            rsids1.Append(rsid67);
            rsids1.Append(rsid68);
            rsids1.Append(rsid69);
            rsids1.Append(rsid70);
            rsids1.Append(rsid71);
            rsids1.Append(rsid72);
            rsids1.Append(rsid73);
            rsids1.Append(rsid74);
            rsids1.Append(rsid75);
            rsids1.Append(rsid76);
            rsids1.Append(rsid77);
            rsids1.Append(rsid78);
            rsids1.Append(rsid79);
            rsids1.Append(rsid80);
            rsids1.Append(rsid81);
            rsids1.Append(rsid82);
            rsids1.Append(rsid83);
            rsids1.Append(rsid84);
            rsids1.Append(rsid85);
            rsids1.Append(rsid86);
            rsids1.Append(rsid87);
            rsids1.Append(rsid88);
            rsids1.Append(rsid89);
            rsids1.Append(rsid90);
            rsids1.Append(rsid91);
            rsids1.Append(rsid92);
            rsids1.Append(rsid93);
            rsids1.Append(rsid94);
            rsids1.Append(rsid95);
            rsids1.Append(rsid96);
            rsids1.Append(rsid97);
            rsids1.Append(rsid98);
            rsids1.Append(rsid99);
            rsids1.Append(rsid100);
            rsids1.Append(rsid101);
            rsids1.Append(rsid102);
            rsids1.Append(rsid103);
            rsids1.Append(rsid104);
            rsids1.Append(rsid105);
            rsids1.Append(rsid106);
            rsids1.Append(rsid107);
            rsids1.Append(rsid108);
            rsids1.Append(rsid109);
            rsids1.Append(rsid110);
            rsids1.Append(rsid111);
            rsids1.Append(rsid112);
            rsids1.Append(rsid113);
            rsids1.Append(rsid114);
            rsids1.Append(rsid115);
            rsids1.Append(rsid116);
            rsids1.Append(rsid117);
            rsids1.Append(rsid118);
            rsids1.Append(rsid119);
            rsids1.Append(rsid120);
            rsids1.Append(rsid121);
            rsids1.Append(rsid122);
            rsids1.Append(rsid123);
            rsids1.Append(rsid124);
            rsids1.Append(rsid125);
            rsids1.Append(rsid126);
            rsids1.Append(rsid127);
            rsids1.Append(rsid128);
            rsids1.Append(rsid129);
            rsids1.Append(rsid130);
            rsids1.Append(rsid131);
            rsids1.Append(rsid132);
            rsids1.Append(rsid133);
            rsids1.Append(rsid134);
            rsids1.Append(rsid135);
            rsids1.Append(rsid136);
            rsids1.Append(rsid137);
            rsids1.Append(rsid138);
            rsids1.Append(rsid139);
            rsids1.Append(rsid140);
            rsids1.Append(rsid141);
            rsids1.Append(rsid142);
            rsids1.Append(rsid143);
            rsids1.Append(rsid144);
            rsids1.Append(rsid145);
            rsids1.Append(rsid146);
            rsids1.Append(rsid147);
            rsids1.Append(rsid148);
            rsids1.Append(rsid149);
            rsids1.Append(rsid150);
            rsids1.Append(rsid151);
            rsids1.Append(rsid152);
            rsids1.Append(rsid153);
            rsids1.Append(rsid154);
            rsids1.Append(rsid155);
            rsids1.Append(rsid156);
            rsids1.Append(rsid157);
            rsids1.Append(rsid158);
            rsids1.Append(rsid159);
            rsids1.Append(rsid160);
            rsids1.Append(rsid161);
            rsids1.Append(rsid162);
            rsids1.Append(rsid163);
            rsids1.Append(rsid164);
            rsids1.Append(rsid165);
            rsids1.Append(rsid166);
            rsids1.Append(rsid167);
            rsids1.Append(rsid168);
            rsids1.Append(rsid169);
            rsids1.Append(rsid170);
            rsids1.Append(rsid171);
            rsids1.Append(rsid172);
            rsids1.Append(rsid173);
            rsids1.Append(rsid174);
            rsids1.Append(rsid175);
            rsids1.Append(rsid176);
            rsids1.Append(rsid177);
            rsids1.Append(rsid178);
            rsids1.Append(rsid179);
            rsids1.Append(rsid180);
            rsids1.Append(rsid181);
            rsids1.Append(rsid182);
            rsids1.Append(rsid183);
            rsids1.Append(rsid184);
            rsids1.Append(rsid185);
            rsids1.Append(rsid186);
            rsids1.Append(rsid187);
            rsids1.Append(rsid188);
            rsids1.Append(rsid189);
            rsids1.Append(rsid190);
            rsids1.Append(rsid191);
            rsids1.Append(rsid192);
            rsids1.Append(rsid193);
            rsids1.Append(rsid194);
            rsids1.Append(rsid195);
            rsids1.Append(rsid196);
            rsids1.Append(rsid197);
            rsids1.Append(rsid198);
            rsids1.Append(rsid199);
            rsids1.Append(rsid200);
            rsids1.Append(rsid201);
            rsids1.Append(rsid202);
            rsids1.Append(rsid203);
            rsids1.Append(rsid204);
            rsids1.Append(rsid205);
            rsids1.Append(rsid206);
            rsids1.Append(rsid207);
            rsids1.Append(rsid208);
            rsids1.Append(rsid209);
            rsids1.Append(rsid210);
            rsids1.Append(rsid211);
            rsids1.Append(rsid212);
            rsids1.Append(rsid213);
            rsids1.Append(rsid214);
            rsids1.Append(rsid215);
            rsids1.Append(rsid216);
            rsids1.Append(rsid217);
            rsids1.Append(rsid218);
            rsids1.Append(rsid219);
            rsids1.Append(rsid220);
            rsids1.Append(rsid221);
            rsids1.Append(rsid222);
            rsids1.Append(rsid223);
            rsids1.Append(rsid224);
            rsids1.Append(rsid225);
            rsids1.Append(rsid226);
            rsids1.Append(rsid227);
            rsids1.Append(rsid228);
            rsids1.Append(rsid229);
            rsids1.Append(rsid230);
            rsids1.Append(rsid231);
            rsids1.Append(rsid232);
            rsids1.Append(rsid233);
            rsids1.Append(rsid234);
            rsids1.Append(rsid235);
            rsids1.Append(rsid236);
            rsids1.Append(rsid237);
            rsids1.Append(rsid238);
            rsids1.Append(rsid239);
            rsids1.Append(rsid240);
            rsids1.Append(rsid241);
            rsids1.Append(rsid242);
            rsids1.Append(rsid243);
            rsids1.Append(rsid244);
            rsids1.Append(rsid245);
            rsids1.Append(rsid246);
            rsids1.Append(rsid247);
            rsids1.Append(rsid248);
            rsids1.Append(rsid249);
            rsids1.Append(rsid250);
            rsids1.Append(rsid251);
            rsids1.Append(rsid252);
            rsids1.Append(rsid253);
            rsids1.Append(rsid254);
            rsids1.Append(rsid255);
            rsids1.Append(rsid256);
            rsids1.Append(rsid257);
            rsids1.Append(rsid258);
            rsids1.Append(rsid259);
            rsids1.Append(rsid260);
            rsids1.Append(rsid261);
            rsids1.Append(rsid262);
            rsids1.Append(rsid263);
            rsids1.Append(rsid264);
            rsids1.Append(rsid265);
            rsids1.Append(rsid266);
            rsids1.Append(rsid267);
            rsids1.Append(rsid268);
            rsids1.Append(rsid269);
            rsids1.Append(rsid270);
            rsids1.Append(rsid271);
            rsids1.Append(rsid272);
            rsids1.Append(rsid273);
            rsids1.Append(rsid274);
            rsids1.Append(rsid275);
            rsids1.Append(rsid276);
            rsids1.Append(rsid277);
            rsids1.Append(rsid278);
            rsids1.Append(rsid279);
            rsids1.Append(rsid280);
            rsids1.Append(rsid281);
            rsids1.Append(rsid282);
            rsids1.Append(rsid283);
            rsids1.Append(rsid284);
            rsids1.Append(rsid285);
            rsids1.Append(rsid286);
            rsids1.Append(rsid287);
            rsids1.Append(rsid288);
            rsids1.Append(rsid289);
            rsids1.Append(rsid290);
            rsids1.Append(rsid291);
            rsids1.Append(rsid292);
            rsids1.Append(rsid293);
            rsids1.Append(rsid294);
            rsids1.Append(rsid295);
            rsids1.Append(rsid296);
            rsids1.Append(rsid297);
            rsids1.Append(rsid298);
            rsids1.Append(rsid299);
            rsids1.Append(rsid300);
            rsids1.Append(rsid301);
            rsids1.Append(rsid302);
            rsids1.Append(rsid303);
            rsids1.Append(rsid304);
            rsids1.Append(rsid305);
            rsids1.Append(rsid306);
            rsids1.Append(rsid307);
            rsids1.Append(rsid308);
            rsids1.Append(rsid309);
            rsids1.Append(rsid310);
            rsids1.Append(rsid311);
            rsids1.Append(rsid312);
            rsids1.Append(rsid313);
            rsids1.Append(rsid314);
            rsids1.Append(rsid315);
            rsids1.Append(rsid316);
            rsids1.Append(rsid317);
            rsids1.Append(rsid318);
            rsids1.Append(rsid319);
            rsids1.Append(rsid320);
            rsids1.Append(rsid321);
            rsids1.Append(rsid322);
            rsids1.Append(rsid323);
            rsids1.Append(rsid324);
            rsids1.Append(rsid325);
            rsids1.Append(rsid326);
            rsids1.Append(rsid327);
            rsids1.Append(rsid328);
            rsids1.Append(rsid329);
            rsids1.Append(rsid330);
            rsids1.Append(rsid331);
            rsids1.Append(rsid332);
            rsids1.Append(rsid333);
            rsids1.Append(rsid334);
            rsids1.Append(rsid335);
            rsids1.Append(rsid336);
            rsids1.Append(rsid337);
            rsids1.Append(rsid338);
            rsids1.Append(rsid339);
            rsids1.Append(rsid340);
            rsids1.Append(rsid341);
            rsids1.Append(rsid342);
            rsids1.Append(rsid343);
            rsids1.Append(rsid344);
            rsids1.Append(rsid345);
            rsids1.Append(rsid346);
            rsids1.Append(rsid347);
            rsids1.Append(rsid348);
            rsids1.Append(rsid349);
            rsids1.Append(rsid350);
            rsids1.Append(rsid351);
            rsids1.Append(rsid352);
            rsids1.Append(rsid353);
            rsids1.Append(rsid354);
            rsids1.Append(rsid355);
            rsids1.Append(rsid356);
            rsids1.Append(rsid357);
            rsids1.Append(rsid358);
            rsids1.Append(rsid359);
            rsids1.Append(rsid360);
            rsids1.Append(rsid361);
            rsids1.Append(rsid362);
            rsids1.Append(rsid363);
            rsids1.Append(rsid364);
            rsids1.Append(rsid365);
            rsids1.Append(rsid366);
            rsids1.Append(rsid367);
            rsids1.Append(rsid368);
            rsids1.Append(rsid369);
            rsids1.Append(rsid370);
            rsids1.Append(rsid371);
            rsids1.Append(rsid372);
            rsids1.Append(rsid373);
            rsids1.Append(rsid374);
            rsids1.Append(rsid375);
            rsids1.Append(rsid376);
            rsids1.Append(rsid377);
            rsids1.Append(rsid378);
            rsids1.Append(rsid379);
            rsids1.Append(rsid380);
            rsids1.Append(rsid381);
            rsids1.Append(rsid382);
            rsids1.Append(rsid383);
            rsids1.Append(rsid384);
            rsids1.Append(rsid385);
            rsids1.Append(rsid386);
            rsids1.Append(rsid387);
            rsids1.Append(rsid388);
            rsids1.Append(rsid389);
            rsids1.Append(rsid390);
            rsids1.Append(rsid391);
            rsids1.Append(rsid392);
            rsids1.Append(rsid393);
            rsids1.Append(rsid394);
            rsids1.Append(rsid395);
            rsids1.Append(rsid396);
            rsids1.Append(rsid397);
            rsids1.Append(rsid398);
            rsids1.Append(rsid399);
            rsids1.Append(rsid400);
            rsids1.Append(rsid401);
            rsids1.Append(rsid402);
            rsids1.Append(rsid403);
            rsids1.Append(rsid404);
            rsids1.Append(rsid405);
            rsids1.Append(rsid406);
            rsids1.Append(rsid407);
            rsids1.Append(rsid408);
            rsids1.Append(rsid409);
            rsids1.Append(rsid410);
            rsids1.Append(rsid411);
            rsids1.Append(rsid412);
            rsids1.Append(rsid413);
            rsids1.Append(rsid414);
            rsids1.Append(rsid415);
            rsids1.Append(rsid416);
            rsids1.Append(rsid417);
            rsids1.Append(rsid418);
            rsids1.Append(rsid419);
            rsids1.Append(rsid420);
            rsids1.Append(rsid421);
            rsids1.Append(rsid422);
            rsids1.Append(rsid423);
            rsids1.Append(rsid424);
            rsids1.Append(rsid425);
            rsids1.Append(rsid426);
            rsids1.Append(rsid427);
            rsids1.Append(rsid428);
            rsids1.Append(rsid429);
            rsids1.Append(rsid430);
            rsids1.Append(rsid431);
            rsids1.Append(rsid432);
            rsids1.Append(rsid433);
            rsids1.Append(rsid434);
            rsids1.Append(rsid435);
            rsids1.Append(rsid436);
            rsids1.Append(rsid437);
            rsids1.Append(rsid438);
            rsids1.Append(rsid439);
            rsids1.Append(rsid440);
            rsids1.Append(rsid441);
            rsids1.Append(rsid442);
            rsids1.Append(rsid443);
            rsids1.Append(rsid444);
            rsids1.Append(rsid445);
            rsids1.Append(rsid446);
            rsids1.Append(rsid447);
            rsids1.Append(rsid448);
            rsids1.Append(rsid449);
            rsids1.Append(rsid450);
            rsids1.Append(rsid451);
            rsids1.Append(rsid452);
            rsids1.Append(rsid453);
            rsids1.Append(rsid454);
            rsids1.Append(rsid455);
            rsids1.Append(rsid456);
            rsids1.Append(rsid457);
            rsids1.Append(rsid458);
            rsids1.Append(rsid459);
            rsids1.Append(rsid460);
            rsids1.Append(rsid461);
            rsids1.Append(rsid462);
            rsids1.Append(rsid463);
            rsids1.Append(rsid464);
            rsids1.Append(rsid465);
            rsids1.Append(rsid466);
            rsids1.Append(rsid467);
            rsids1.Append(rsid468);
            rsids1.Append(rsid469);
            rsids1.Append(rsid470);
            rsids1.Append(rsid471);
            rsids1.Append(rsid472);
            rsids1.Append(rsid473);
            rsids1.Append(rsid474);
            rsids1.Append(rsid475);
            rsids1.Append(rsid476);
            rsids1.Append(rsid477);
            rsids1.Append(rsid478);
            rsids1.Append(rsid479);
            rsids1.Append(rsid480);
            rsids1.Append(rsid481);
            rsids1.Append(rsid482);
            rsids1.Append(rsid483);
            rsids1.Append(rsid484);
            rsids1.Append(rsid485);
            rsids1.Append(rsid486);
            rsids1.Append(rsid487);
            rsids1.Append(rsid488);
            rsids1.Append(rsid489);
            rsids1.Append(rsid490);
            rsids1.Append(rsid491);
            rsids1.Append(rsid492);
            rsids1.Append(rsid493);
            rsids1.Append(rsid494);
            rsids1.Append(rsid495);
            rsids1.Append(rsid496);
            rsids1.Append(rsid497);
            rsids1.Append(rsid498);
            rsids1.Append(rsid499);
            rsids1.Append(rsid500);
            rsids1.Append(rsid501);
            rsids1.Append(rsid502);
            rsids1.Append(rsid503);
            rsids1.Append(rsid504);
            rsids1.Append(rsid505);
            rsids1.Append(rsid506);
            rsids1.Append(rsid507);
            rsids1.Append(rsid508);
            rsids1.Append(rsid509);
            rsids1.Append(rsid510);
            rsids1.Append(rsid511);
            rsids1.Append(rsid512);
            rsids1.Append(rsid513);
            rsids1.Append(rsid514);
            rsids1.Append(rsid515);
            rsids1.Append(rsid516);
            rsids1.Append(rsid517);
            rsids1.Append(rsid518);
            rsids1.Append(rsid519);
            rsids1.Append(rsid520);
            rsids1.Append(rsid521);
            rsids1.Append(rsid522);
            rsids1.Append(rsid523);
            rsids1.Append(rsid524);
            rsids1.Append(rsid525);
            rsids1.Append(rsid526);
            rsids1.Append(rsid527);
            rsids1.Append(rsid528);
            rsids1.Append(rsid529);
            rsids1.Append(rsid530);
            rsids1.Append(rsid531);
            rsids1.Append(rsid532);
            rsids1.Append(rsid533);
            rsids1.Append(rsid534);
            rsids1.Append(rsid535);
            rsids1.Append(rsid536);
            rsids1.Append(rsid537);
            rsids1.Append(rsid538);
            rsids1.Append(rsid539);
            rsids1.Append(rsid540);
            rsids1.Append(rsid541);
            rsids1.Append(rsid542);
            rsids1.Append(rsid543);
            rsids1.Append(rsid544);
            rsids1.Append(rsid545);
            rsids1.Append(rsid546);
            rsids1.Append(rsid547);
            rsids1.Append(rsid548);
            rsids1.Append(rsid549);
            rsids1.Append(rsid550);
            rsids1.Append(rsid551);
            rsids1.Append(rsid552);
            rsids1.Append(rsid553);
            rsids1.Append(rsid554);
            rsids1.Append(rsid555);
            rsids1.Append(rsid556);
            rsids1.Append(rsid557);
            rsids1.Append(rsid558);
            rsids1.Append(rsid559);
            rsids1.Append(rsid560);
            rsids1.Append(rsid561);
            rsids1.Append(rsid562);
            rsids1.Append(rsid563);
            rsids1.Append(rsid564);
            rsids1.Append(rsid565);
            rsids1.Append(rsid566);
            rsids1.Append(rsid567);
            rsids1.Append(rsid568);
            rsids1.Append(rsid569);
            rsids1.Append(rsid570);
            rsids1.Append(rsid571);
            rsids1.Append(rsid572);
            rsids1.Append(rsid573);
            rsids1.Append(rsid574);
            rsids1.Append(rsid575);
            rsids1.Append(rsid576);
            rsids1.Append(rsid577);
            rsids1.Append(rsid578);
            rsids1.Append(rsid579);
            rsids1.Append(rsid580);
            rsids1.Append(rsid581);
            rsids1.Append(rsid582);
            rsids1.Append(rsid583);
            rsids1.Append(rsid584);
            rsids1.Append(rsid585);
            rsids1.Append(rsid586);
            rsids1.Append(rsid587);
            rsids1.Append(rsid588);
            rsids1.Append(rsid589);
            rsids1.Append(rsid590);
            rsids1.Append(rsid591);
            rsids1.Append(rsid592);
            rsids1.Append(rsid593);
            rsids1.Append(rsid594);
            rsids1.Append(rsid595);
            rsids1.Append(rsid596);
            rsids1.Append(rsid597);
            rsids1.Append(rsid598);
            rsids1.Append(rsid599);
            rsids1.Append(rsid600);
            rsids1.Append(rsid601);
            rsids1.Append(rsid602);
            rsids1.Append(rsid603);
            rsids1.Append(rsid604);
            rsids1.Append(rsid605);
            rsids1.Append(rsid606);
            rsids1.Append(rsid607);
            rsids1.Append(rsid608);
            rsids1.Append(rsid609);
            rsids1.Append(rsid610);
            rsids1.Append(rsid611);
            rsids1.Append(rsid612);
            rsids1.Append(rsid613);
            rsids1.Append(rsid614);

            M.MathProperties mathProperties1 = new M.MathProperties();
            M.MathFont mathFont1 = new M.MathFont() { Val = "Cambria Math" };
            M.BreakBinary breakBinary1 = new M.BreakBinary() { Val = M.BreakBinaryOperatorValues.Before };
            M.BreakBinarySubtraction breakBinarySubtraction1 = new M.BreakBinarySubtraction() { Val = M.BreakBinarySubtractionValues.MinusMinus };
            M.SmallFraction smallFraction1 = new M.SmallFraction() { Val = M.BooleanValues.Off };
            M.DisplayDefaults displayDefaults1 = new M.DisplayDefaults();
            M.LeftMargin leftMargin1 = new M.LeftMargin() { Val = (UInt32Value)0U };
            M.RightMargin rightMargin1 = new M.RightMargin() { Val = (UInt32Value)0U };
            M.DefaultJustification defaultJustification1 = new M.DefaultJustification() { Val = M.JustificationValues.CenterGroup };
            M.WrapIndent wrapIndent1 = new M.WrapIndent() { Val = (UInt32Value)1440U };
            M.IntegralLimitLocation integralLimitLocation1 = new M.IntegralLimitLocation() { Val = M.LimitLocationValues.SubscriptSuperscript };
            M.NaryLimitLocation naryLimitLocation1 = new M.NaryLimitLocation() { Val = M.LimitLocationValues.UnderOver };

            mathProperties1.Append(mathFont1);
            mathProperties1.Append(breakBinary1);
            mathProperties1.Append(breakBinarySubtraction1);
            mathProperties1.Append(smallFraction1);
            mathProperties1.Append(displayDefaults1);
            mathProperties1.Append(leftMargin1);
            mathProperties1.Append(rightMargin1);
            mathProperties1.Append(defaultJustification1);
            mathProperties1.Append(wrapIndent1);
            mathProperties1.Append(integralLimitLocation1);
            mathProperties1.Append(naryLimitLocation1);
            AttachedSchema attachedSchema1 = new AttachedSchema() { Val = "http://hubblereports.com/namespace" };
            AttachedSchema attachedSchema2 = new AttachedSchema() { Val = "errors@http://hubblereports.com/namespace" };
            ThemeFontLanguages themeFontLanguages1 = new ThemeFontLanguages() { Val = "fr-CA" };
            ColorSchemeMapping colorSchemeMapping1 = new ColorSchemeMapping() { Background1 = ColorSchemeIndexValues.Light1, Text1 = ColorSchemeIndexValues.Dark1, Background2 = ColorSchemeIndexValues.Light2, Text2 = ColorSchemeIndexValues.Dark2, Accent1 = ColorSchemeIndexValues.Accent1, Accent2 = ColorSchemeIndexValues.Accent2, Accent3 = ColorSchemeIndexValues.Accent3, Accent4 = ColorSchemeIndexValues.Accent4, Accent5 = ColorSchemeIndexValues.Accent5, Accent6 = ColorSchemeIndexValues.Accent6, Hyperlink = ColorSchemeIndexValues.Hyperlink, FollowedHyperlink = ColorSchemeIndexValues.FollowedHyperlink };

            ShapeDefaults shapeDefaults2 = new ShapeDefaults();
            Ovml.ShapeDefaults shapeDefaults3 = new Ovml.ShapeDefaults() { Extension = V.ExtensionHandlingBehaviorValues.Edit, MaxShapeId = 300034 };

            Ovml.ShapeLayout shapeLayout1 = new Ovml.ShapeLayout() { Extension = V.ExtensionHandlingBehaviorValues.Edit };
            Ovml.ShapeIdMap shapeIdMap1 = new Ovml.ShapeIdMap() { Extension = V.ExtensionHandlingBehaviorValues.Edit, Data = "1" };

            shapeLayout1.Append(shapeIdMap1);

            shapeDefaults2.Append(shapeDefaults3);
            shapeDefaults2.Append(shapeLayout1);
            DecimalSymbol decimalSymbol1 = new DecimalSymbol() { Val = "," };
            ListSeparator listSeparator1 = new ListSeparator() { Val = ";" };

            settings1.Append(zoom1);
            settings1.Append(attachedTemplate1);
            settings1.Append(linkStyles1);
            settings1.Append(defaultTabStop1);
            settings1.Append(hyphenationZone1);
            settings1.Append(noPunctuationKerning1);
            settings1.Append(characterSpacingControl1);
            settings1.Append(doNotValidateAgainstSchema1);
            settings1.Append(saveInvalidXml1);
            settings1.Append(ignoreMixedContent1);
            settings1.Append(headerShapeDefaults1);
            settings1.Append(footnoteDocumentWideProperties1);
            settings1.Append(endnoteDocumentWideProperties1);
            settings1.Append(compatibility1);
            settings1.Append(rsids1);
            settings1.Append(mathProperties1);
            settings1.Append(attachedSchema1);
            settings1.Append(attachedSchema2);
            settings1.Append(themeFontLanguages1);
            settings1.Append(colorSchemeMapping1);
            settings1.Append(shapeDefaults2);
            settings1.Append(decimalSymbol1);
            settings1.Append(listSeparator1);

            documentSettingsPart1.Settings = settings1;
        }
Пример #8
0
        // Generates content of documentSettingsPart1.
        private void GenerateDocumentSettingsPart1Content(DocumentSettingsPart documentSettingsPart1)
        {
            Settings settings1 = new Settings(){ MCAttributes = new MarkupCompatibilityAttributes(){ Ignorable = "w14" }  };
            settings1.AddNamespaceDeclaration("mc", "http://schemas.openxmlformats.org/markup-compatibility/2006");
            settings1.AddNamespaceDeclaration("o", "urn:schemas-microsoft-com:office:office");
            settings1.AddNamespaceDeclaration("r", "http://schemas.openxmlformats.org/officeDocument/2006/relationships");
            settings1.AddNamespaceDeclaration("m", "http://schemas.openxmlformats.org/officeDocument/2006/math");
            settings1.AddNamespaceDeclaration("v", "urn:schemas-microsoft-com:vml");
            settings1.AddNamespaceDeclaration("w10", "urn:schemas-microsoft-com:office:word");
            settings1.AddNamespaceDeclaration("w", "http://schemas.openxmlformats.org/wordprocessingml/2006/main");
            settings1.AddNamespaceDeclaration("w14", "http://schemas.microsoft.com/office/word/2010/wordml");
            settings1.AddNamespaceDeclaration("sl", "http://schemas.openxmlformats.org/schemaLibrary/2006/main");
            Zoom zoom1 = new Zoom(){ Percent = "130" };
            ProofState proofState1 = new ProofState(){ Spelling = ProofingStateValues.Clean, Grammar = ProofingStateValues.Clean };
            AttachedTemplate attachedTemplate1 = new AttachedTemplate(){ Id = "rId1" };
            DefaultTabStop defaultTabStop1 = new DefaultTabStop(){ Val = 720 };
            CharacterSpacingControl characterSpacingControl1 = new CharacterSpacingControl(){ Val = CharacterSpacingValues.DoNotCompress };

            Compatibility compatibility1 = new Compatibility();
            CompatibilitySetting compatibilitySetting1 = new CompatibilitySetting(){ Name = CompatSettingNameValues.CompatibilityMode, Uri = "http://schemas.microsoft.com/office/word", Val = "14" };
            CompatibilitySetting compatibilitySetting2 = new CompatibilitySetting(){ Name = CompatSettingNameValues.OverrideTableStyleFontSizeAndJustification, Uri = "http://schemas.microsoft.com/office/word", Val = "1" };
            CompatibilitySetting compatibilitySetting3 = new CompatibilitySetting(){ Name = CompatSettingNameValues.EnableOpenTypeFeatures, Uri = "http://schemas.microsoft.com/office/word", Val = "1" };
            CompatibilitySetting compatibilitySetting4 = new CompatibilitySetting(){ Name = CompatSettingNameValues.DoNotFlipMirrorIndents, Uri = "http://schemas.microsoft.com/office/word", Val = "1" };

            compatibility1.Append(compatibilitySetting1);
            compatibility1.Append(compatibilitySetting2);
            compatibility1.Append(compatibilitySetting3);
            compatibility1.Append(compatibilitySetting4);

            Rsids rsids1 = new Rsids();
            RsidRoot rsidRoot1 = new RsidRoot(){ Val = "00F00514" };
            Rsid rsid13 = new Rsid(){ Val = "0013421C" };
            Rsid rsid14 = new Rsid(){ Val = "00185682" };
            Rsid rsid15 = new Rsid(){ Val = "001E7601" };
            Rsid rsid16 = new Rsid(){ Val = "00227AB2" };
            Rsid rsid17 = new Rsid(){ Val = "0028497E" };
            Rsid rsid18 = new Rsid(){ Val = "002A4705" };
            Rsid rsid19 = new Rsid(){ Val = "00354CB4" };
            Rsid rsid20 = new Rsid(){ Val = "003C2296" };
            Rsid rsid21 = new Rsid(){ Val = "004140B7" };
            Rsid rsid22 = new Rsid(){ Val = "006217A5" };
            Rsid rsid23 = new Rsid(){ Val = "00672B88" };
            Rsid rsid24 = new Rsid(){ Val = "006E6D18" };
            Rsid rsid25 = new Rsid(){ Val = "00734DD4" };
            Rsid rsid26 = new Rsid(){ Val = "0083080C" };
            Rsid rsid27 = new Rsid(){ Val = "0088581B" };
            Rsid rsid28 = new Rsid(){ Val = "00A1337C" };
            Rsid rsid29 = new Rsid(){ Val = "00A213D6" };
            Rsid rsid30 = new Rsid(){ Val = "00AA3180" };
            Rsid rsid31 = new Rsid(){ Val = "00D77907" };
            Rsid rsid32 = new Rsid(){ Val = "00E74180" };
            Rsid rsid33 = new Rsid(){ Val = "00EF4816" };
            Rsid rsid34 = new Rsid(){ Val = "00F00514" };

            rsids1.Append(rsidRoot1);
            rsids1.Append(rsid13);
            rsids1.Append(rsid14);
            rsids1.Append(rsid15);
            rsids1.Append(rsid16);
            rsids1.Append(rsid17);
            rsids1.Append(rsid18);
            rsids1.Append(rsid19);
            rsids1.Append(rsid20);
            rsids1.Append(rsid21);
            rsids1.Append(rsid22);
            rsids1.Append(rsid23);
            rsids1.Append(rsid24);
            rsids1.Append(rsid25);
            rsids1.Append(rsid26);
            rsids1.Append(rsid27);
            rsids1.Append(rsid28);
            rsids1.Append(rsid29);
            rsids1.Append(rsid30);
            rsids1.Append(rsid31);
            rsids1.Append(rsid32);
            rsids1.Append(rsid33);
            rsids1.Append(rsid34);

            M.MathProperties mathProperties1 = new M.MathProperties();
            M.MathFont mathFont1 = new M.MathFont(){ Val = "Cambria Math" };
            M.BreakBinary breakBinary1 = new M.BreakBinary(){ Val = M.BreakBinaryOperatorValues.Before };
            M.BreakBinarySubtraction breakBinarySubtraction1 = new M.BreakBinarySubtraction(){ Val = M.BreakBinarySubtractionValues.MinusMinus };
            M.SmallFraction smallFraction1 = new M.SmallFraction(){ Val = M.BooleanValues.Zero };
            M.DisplayDefaults displayDefaults1 = new M.DisplayDefaults();
            M.LeftMargin leftMargin1 = new M.LeftMargin(){ Val = (UInt32Value)0U };
            M.RightMargin rightMargin1 = new M.RightMargin(){ Val = (UInt32Value)0U };
            M.DefaultJustification defaultJustification1 = new M.DefaultJustification(){ Val = M.JustificationValues.CenterGroup };
            M.WrapIndent wrapIndent1 = new M.WrapIndent(){ Val = (UInt32Value)1440U };
            M.IntegralLimitLocation integralLimitLocation1 = new M.IntegralLimitLocation(){ Val = M.LimitLocationValues.SubscriptSuperscript };
            M.NaryLimitLocation naryLimitLocation1 = new M.NaryLimitLocation(){ Val = M.LimitLocationValues.UnderOver };

            mathProperties1.Append(mathFont1);
            mathProperties1.Append(breakBinary1);
            mathProperties1.Append(breakBinarySubtraction1);
            mathProperties1.Append(smallFraction1);
            mathProperties1.Append(displayDefaults1);
            mathProperties1.Append(leftMargin1);
            mathProperties1.Append(rightMargin1);
            mathProperties1.Append(defaultJustification1);
            mathProperties1.Append(wrapIndent1);
            mathProperties1.Append(integralLimitLocation1);
            mathProperties1.Append(naryLimitLocation1);
            ThemeFontLanguages themeFontLanguages1 = new ThemeFontLanguages(){ Val = "en-US" };
            ColorSchemeMapping colorSchemeMapping1 = new ColorSchemeMapping(){ Background1 = ColorSchemeIndexValues.Light1, Text1 = ColorSchemeIndexValues.Dark1, Background2 = ColorSchemeIndexValues.Light2, Text2 = ColorSchemeIndexValues.Dark2, Accent1 = ColorSchemeIndexValues.Accent1, Accent2 = ColorSchemeIndexValues.Accent2, Accent3 = ColorSchemeIndexValues.Accent3, Accent4 = ColorSchemeIndexValues.Accent4, Accent5 = ColorSchemeIndexValues.Accent5, Accent6 = ColorSchemeIndexValues.Accent6, Hyperlink = ColorSchemeIndexValues.Hyperlink, FollowedHyperlink = ColorSchemeIndexValues.FollowedHyperlink };

            ShapeDefaults shapeDefaults1 = new ShapeDefaults();
            Ovml.ShapeDefaults shapeDefaults2 = new Ovml.ShapeDefaults(){ Extension = V.ExtensionHandlingBehaviorValues.Edit, MaxShapeId = 1026 };

            Ovml.ShapeLayout shapeLayout1 = new Ovml.ShapeLayout(){ Extension = V.ExtensionHandlingBehaviorValues.Edit };
            Ovml.ShapeIdMap shapeIdMap1 = new Ovml.ShapeIdMap(){ Extension = V.ExtensionHandlingBehaviorValues.Edit, Data = "1" };

            shapeLayout1.Append(shapeIdMap1);

            shapeDefaults1.Append(shapeDefaults2);
            shapeDefaults1.Append(shapeLayout1);
            DecimalSymbol decimalSymbol1 = new DecimalSymbol(){ Val = "." };
            ListSeparator listSeparator1 = new ListSeparator(){ Val = "," };

            settings1.Append(zoom1);
            settings1.Append(proofState1);
            settings1.Append(attachedTemplate1);
            settings1.Append(defaultTabStop1);
            settings1.Append(characterSpacingControl1);
            settings1.Append(compatibility1);
            settings1.Append(rsids1);
            settings1.Append(mathProperties1);
            settings1.Append(themeFontLanguages1);
            settings1.Append(colorSchemeMapping1);
            settings1.Append(shapeDefaults1);
            settings1.Append(decimalSymbol1);
            settings1.Append(listSeparator1);

            documentSettingsPart1.Settings = settings1;
        }
Пример #9
0
        public void CreateMSWordDocument(Guid identifier)
        {
            var    myResume    = _resumeManagerRepository.Get(m => m.Guid.Equals(identifier)).First().Resume;
            string projPath    = HttpContext.Current.Server.MapPath("~/Content/");
            string outFilePath = Path.Combine(projPath, "doc", myResume.ResumeManager.Link);

            byte[] templateBytes = System.IO.File.ReadAllBytes(projPath + "MSWordTemplates\\template4.dotx");

            using (MemoryStream templateStream = new MemoryStream())
            {
                templateStream.Write(templateBytes, 0, (int)templateBytes.Length);

                using (WordprocessingDocument doc = WordprocessingDocument.Open(templateStream, true))
                {
                    doc.ChangeDocumentType(WordprocessingDocumentType.Document);
                    var mainPart = doc.MainDocumentPart;

                    // Get the Document Settings Part
                    DocumentSettingsPart documentSettingPart1 = mainPart.DocumentSettingsPart;

                    // Create a new attachedTemplate and specify a relationship ID
                    AttachedTemplate attachedTemplate1 = new AttachedTemplate()
                    {
                        Id = "relationId1"
                    };

                    // Append the attached template to the DocumentSettingsPart
                    documentSettingPart1.Settings.Append(attachedTemplate1);

                    // Add an ExternalRelationShip of type AttachedTemplate.
                    // Specify the path of template and the relationship ID
                    documentSettingPart1.AddExternalRelationship("http://schemas.openxmlformats.org/officeDocument/2006/relationships/attachedTemplate", new Uri(projPath + "MSWordTemplates\\template4.dotx", UriKind.Absolute), "relationId1");

                    string fullname = string.Format("{0} {1}", myResume.FirstName, myResume.LastName);
                    SetCCText(mainPart, "FullName", fullname);

                    SetCCText(mainPart, "Goal", myResume.Goal);
                    SetCCText(mainPart, "Location", myResume.CurrentLocation);

                    string email = myResume.Contacts.First(c => c.ContactTitle.Title.Equals("EMail")).Data;
                    SetCCText(mainPart, "Email", email);

                    string phone = myResume.Contacts.First(c => c.ContactTitle.Title.Equals("Phone")).Data;
                    SetCCText(mainPart, "Phone", phone);

                    RemoveCCChild(mainPart, "OtherContacts");
                    foreach (var contact in myResume.Contacts.Where(c => !c.ContactTitle.Title.Equals("EMail") && !c.ContactTitle.Title.Equals("Phone")))
                    {
                        AppendCCText(mainPart, "OtherContacts", string.Format("{0}: {1}", contact.ContactTitle.Title, contact.Data));
                    }

                    // ОБРАЗОВАНИЕ
                    if (myResume.Education.Count > 0)
                    {
                        SdtBlock contentControl = mainPart.Document.Body.Descendants <SdtBlock>().Where(r => r.SdtProperties.GetFirstChild <Tag>().Val == "Section_Education").Single();
                        Table    theTable       = contentControl.Descendants <Table>().Single();
                        TableRow defaultRow     = theTable.Elements <TableRow>().Last();

                        foreach (var institution in myResume.Education)
                        {
                            TableRow rowCopy = (TableRow)defaultRow.CloneNode(true);

                            // период учебы
                            var periodRun = rowCopy.Descendants <TableCell>().ElementAt(0).GetFirstChild <Paragraph>().GetFirstChild <Run>();
                            periodRun.GetFirstChild <Text>().Text = string.Format("{0} –", institution.From.Format());
                            periodRun.Append(new Break());
                            periodRun.Append(new Text(institution.To.Format()));

                            // описание уч. заведениия:
                            // название и город
                            TableCell secondColumn = rowCopy.Descendants <TableCell>().ElementAt(1);
                            SetCCText(secondColumn, "InstitutionName", string.Format("{0}, г. {1}", institution.Name, institution.City));

                            // кафедра
                            if (string.IsNullOrEmpty(institution.Department))
                            {
                                secondColumn.Descendants <SdtRun>().Where(r => r.SdtProperties.GetFirstChild <Tag>().Val == "InstitutionDepartment").Single().Parent.Remove();
                            }
                            else
                            {
                                SetCCText(secondColumn, "InstitutionDepartment", institution.Department);
                            }

                            // специальность
                            SetCCText(secondColumn, "InstitutionSpeciality", institution.Specialty);
                            secondColumn.Elements <Paragraph>().Last().Append(new Run(new Break()));

                            theTable.AppendChild(rowCopy);
                        }
                        theTable.RemoveChild(defaultRow);
                    }
                    else
                    {
                        mainPart.Document.Body.Descendants <SdtBlock>().Where(r => r.SdtProperties.GetFirstChild <Tag>().Val == "Section_Education").Single().Remove();
                    }

                    // ОПЫТ РАБОТЫ
                    if (myResume.WorkExp.Count > 0)
                    {
                        SdtBlock contentControl = mainPart.Document.Body.Descendants <SdtBlock>().Where(r => r.SdtProperties.GetFirstChild <Tag>().Val == "Section_Experience").Single();
                        Table    theTable       = contentControl.Descendants <Table>().Single();
                        TableRow defaultRow     = theTable.Elements <TableRow>().Last();

                        foreach (var workPlace in myResume.WorkExp)
                        {
                            TableRow rowCopy = (TableRow)defaultRow.CloneNode(true);

                            // период в который работали
                            var periodRun = rowCopy.Descendants <TableCell>().ElementAt(0).GetFirstChild <Paragraph>().GetFirstChild <Run>();
                            periodRun.GetFirstChild <Text>().Text = string.Format("{0} –", workPlace.From.Format());
                            periodRun.Append(new Break());
                            periodRun.Append(new Text(workPlace.To.Format()));

                            // описание работы:
                            // название работы и город
                            TableCell secondColumn = rowCopy.Descendants <TableCell>().ElementAt(1);
                            SetCCText(secondColumn, "WorkplaceName", string.Format("{0}, г. {1}", workPlace.Name, workPlace.City));

                            // должность
                            SetCCText(secondColumn, "WorkplacePosition", workPlace.Position);

                            // обязанности
                            if (workPlace.Duties.Count > 0)
                            {
                                RemoveCCChild(secondColumn, "WorkplaceDuties");
                                foreach (var duty in workPlace.Duties)
                                {
                                    AppendCCText(secondColumn, "WorkplaceDuties", string.Format("– {0}", duty.Name));
                                }
                            }
                            else
                            {
                                secondColumn.Descendants <SdtRun>().Where(r => r.SdtProperties.GetFirstChild <Tag>().Val == "WorkplaceDuties").Single().Parent.Remove();
                            }

                            //secondColumn.Elements<Paragraph>().Last().Append(new Run(new Break()));

                            theTable.AppendChild(rowCopy);
                        }
                        theTable.RemoveChild(defaultRow);
                    }
                    else
                    {
                        mainPart.Document.Body.Descendants <SdtBlock>().Where(r => r.SdtProperties.GetFirstChild <Tag>().Val == "Section_Experience").Single().Remove();
                    }


                    // СЕРТИФИКАТЫ
                    if (myResume.CertificatesAndTrainings.Count > 0)
                    {
                        RemoveCCChild(mainPart, "Certificates");
                        foreach (var certificate in myResume.CertificatesAndTrainings)
                        {
                            AppendCCText(mainPart, "Certificates", string.Format("{0} – {1}{2}", certificate.Date.Year, certificate.Name, certificate.Location != null ? string.Format(", г. {0}", certificate.Location) : ""));
                        }
                    }
                    else
                    {
                        RemoveCC(mainPart, "Section_Certificates");
                    }

                    // ЯЗЫКИ
                    if (myResume.Languages.Count > 0)
                    {
                        SdtBlock        contentControl = mainPart.Document.Body.Descendants <SdtBlock>().Where(r => r.SdtProperties.GetFirstChild <Tag>().Val == "Languages").Single();
                        SdtContentBlock contentRun     = contentControl.GetFirstChild <SdtContentBlock>();
                        Paragraph       defaultLi      = contentRun.GetFirstChild <Paragraph>();

                        foreach (var language in myResume.Languages)
                        {
                            Paragraph copy = (Paragraph)defaultLi.CloneNode(true);
                            copy.Descendants <Text>().Where(t => t.Text == "lang").Single().Text  = language.Name;
                            copy.Descendants <Text>().Where(t => t.Text == "level").Single().Text = language.Level;
                            contentRun.Append(copy);
                        }
                        contentRun.RemoveChild(defaultLi);
                    }
                    else
                    {
                        RemoveCC(mainPart, "Section_Languages");
                    }

                    // ЛИЧНЫЕ КАЧЕСТВА
                    if (myResume.PersonalQualities.Count > 0)
                    {
                        SdtBlock        contentControl = mainPart.Document.Body.Descendants <SdtBlock>().Where(r => r.SdtProperties.GetFirstChild <Tag>().Val == "PersonalQualities").Single();
                        SdtContentBlock contentRun     = contentControl.GetFirstChild <SdtContentBlock>();
                        Paragraph       defaultLi      = contentRun.GetFirstChild <Paragraph>();

                        foreach (var quality in myResume.PersonalQualities)
                        {
                            Paragraph copy = (Paragraph)defaultLi.CloneNode(true);
                            copy.Descendants <Text>().Where(t => t.Text == "quality").Single().Text = quality.Name;
                            contentRun.Append(copy);
                        }
                        contentRun.RemoveChild(defaultLi);
                    }
                    else
                    {
                        mainPart.Document.Body.Descendants <SdtBlock>().Where(r => r.SdtProperties.GetFirstChild <Tag>().Val == "Section_PersonalQualities").Single().Remove();
                    }

                    // НАВЫКИ
                    if (myResume.Skills.Count > 0)
                    {
                        SdtBlock        contentControl = mainPart.Document.Body.Descendants <SdtBlock>().Where(r => r.SdtProperties.GetFirstChild <Tag>().Val == "Skills").Single();
                        SdtContentBlock contentRun     = contentControl.GetFirstChild <SdtContentBlock>();
                        Paragraph       defaultLi      = contentRun.GetFirstChild <Paragraph>();

                        foreach (var skill in myResume.Skills)
                        {
                            Paragraph copy = (Paragraph)defaultLi.CloneNode(true);
                            copy.Descendants <Text>().Where(t => t.Text == "skill").Single().Text = skill.Name;
                            contentRun.Append(copy);
                        }
                        contentRun.RemoveChild(defaultLi);
                    }
                    else
                    {
                        mainPart.Document.Body.Descendants <SdtBlock>().Where(r => r.SdtProperties.GetFirstChild <Tag>().Val == "Section_Skills").Single().Remove();
                    }

                    mainPart.Document.Save();
                }
                File.WriteAllBytes(outFilePath, templateStream.ToArray());
            }
        }