public void CustomXmlElementTests() { Type baseType = typeof(CustomXmlElement); Assert.True(baseType.GetTypeInfo().IsAbstract); // CustomXmlRuby CustomXmlRuby cxRuby = new CustomXmlRuby(); ValidateCustomXmlElement(cxRuby); // CustomXmlBlock CustomXmlBlock cxBlock = new CustomXmlBlock(); ValidateCustomXmlElement(cxBlock); // CustomXmlRow CustomXmlRow cxRow = new CustomXmlRow(); ValidateCustomXmlElement(cxRow); // CustomXmlRun CustomXmlRun cxRun = new CustomXmlRun(); ValidateCustomXmlElement(cxRun); // CustomXmlCell CustomXmlCell cxCell = new CustomXmlCell(); ValidateCustomXmlElement(cxCell); // Test loading and modification on DOM tree using (var stream = GetStream(TestFiles.simpleSdt)) using (var doc = WordprocessingDocument.Open(stream, false)) { // find customXml var customXml = doc.MainDocumentPart.Document.Descendants <CustomXmlRun>().First(); Assert.Equal("firstName", customXml.Element.Value); Assert.Null(customXml.Uri); Assert.Equal(typeof(Run), customXml.FirstChild.GetType()); customXml.Uri = "urn:sampleUri"; customXml.Append(new Hyperlink()); Assert.Equal(2, customXml.ChildElements.Count); } }
private static Paragraph CreateTopicTitle(string title, string notation) { Paragraph paragraph21 = new Paragraph() { RsidParagraphMarkRevision = "00233025", RsidParagraphAddition = "00F8047A", RsidParagraphProperties = "00DD5BAE", RsidRunAdditionDefault = "00957E57" }; ParagraphProperties paragraphProperties21 = new ParagraphProperties(); ParagraphStyleId paragraphStyleId21 = new ParagraphStyleId() { Val = "StyleBefore9ptAfter0pt" }; ParagraphMarkRunProperties paragraphMarkRunProperties13 = new ParagraphMarkRunProperties(); RunStyle runStyle4 = new RunStyle() { Val = "StyleCategoryRankGraphic10pt" }; paragraphMarkRunProperties13.Append(runStyle4); paragraphProperties21.Append(paragraphStyleId21); paragraphProperties21.Append(paragraphMarkRunProperties13); CustomXmlRun customXmlRun6 = new CustomXmlRun() { Uri = "http://hubblereports.com/namespace", Element = "CatName" }; Run run33 = new Run() { RsidRunProperties = "00233025", RsidRunAddition = "00F8047A" }; RunProperties runProperties20 = new RunProperties(); RunStyle runStyle5 = new RunStyle() { Val = "Style10ptBold" }; runProperties20.Append(runStyle5); Text text24 = new Text(); text24.Text = title; run33.Append(runProperties20); run33.Append(text24); customXmlRun6.Append(run33); CustomXmlRun customXmlRun7 = new CustomXmlRun() { Uri = "http://hubblereports.com/namespace", Element = "CatRankValueImage" }; if (!string.IsNullOrEmpty(notation)) { Run run34 = new Run() { RsidRunAddition = "00740A1C" }; RunProperties runProperties21 = new RunProperties(); RunFonts runFonts3 = new RunFonts() { ComplexScript = "Arial" }; Bold bold12 = new Bold(); BoldComplexScript boldComplexScript1 = new BoldComplexScript(); Caps caps1 = new Caps(); NoProof noProof9 = new NoProof(); Kern kern1 = new Kern() { Val = (UInt32Value)20U }; Position position1 = new Position() { Val = "-4" }; FontSize fontSize9 = new FontSize() { Val = "20" }; Languages languages9 = new Languages() { Val = "fr-CA", EastAsia = "fr-CA" }; runProperties21.Append(runFonts3); runProperties21.Append(bold12); runProperties21.Append(boldComplexScript1); runProperties21.Append(caps1); runProperties21.Append(noProof9); runProperties21.Append(kern1); runProperties21.Append(position1); runProperties21.Append(fontSize9); runProperties21.Append(languages9); Drawing drawing9 = new Drawing(); Wp.Inline inline9 = new Wp.Inline() { DistanceFromTop = (UInt32Value)0U, DistanceFromBottom = (UInt32Value)0U, DistanceFromLeft = (UInt32Value)0U, DistanceFromRight = (UInt32Value)0U }; Wp.Extent extent9 = new Wp.Extent() { Cx = 838200L, Cy = 152400L }; Wp.EffectExtent effectExtent9 = new Wp.EffectExtent() { LeftEdge = 19050L, TopEdge = 0L, RightEdge = 0L, BottomEdge = 0L }; Wp.DocProperties docProperties9 = new Wp.DocProperties() { Id = (UInt32Value)20U, Name = "Image 20", Description = "rank_category_5" }; Wp.NonVisualGraphicFrameDrawingProperties nonVisualGraphicFrameDrawingProperties9 = new Wp.NonVisualGraphicFrameDrawingProperties(); A.GraphicFrameLocks graphicFrameLocks9 = new A.GraphicFrameLocks() { NoChangeAspect = true }; nonVisualGraphicFrameDrawingProperties9.Append(graphicFrameLocks9); A.Graphic graphic9 = new A.Graphic(); A.GraphicData graphicData9 = new A.GraphicData() { Uri = "http://schemas.openxmlformats.org/drawingml/2006/picture" }; Pic.Picture picture9 = new Pic.Picture(); Pic.NonVisualPictureProperties nonVisualPictureProperties9 = new Pic.NonVisualPictureProperties(); Pic.NonVisualDrawingProperties nonVisualDrawingProperties9 = new Pic.NonVisualDrawingProperties() { Id = (UInt32Value)0U, Name = "Picture 20", Description = "rank_category_5" }; Pic.NonVisualPictureDrawingProperties nonVisualPictureDrawingProperties9 = new Pic.NonVisualPictureDrawingProperties(); A.PictureLocks pictureLocks9 = new A.PictureLocks() { NoChangeAspect = true, NoChangeArrowheads = true }; nonVisualPictureDrawingProperties9.Append(pictureLocks9); nonVisualPictureProperties9.Append(nonVisualDrawingProperties9); nonVisualPictureProperties9.Append(nonVisualPictureDrawingProperties9); Pic.BlipFill blipFill9 = new Pic.BlipFill(); A.Blip blip9 = new A.Blip() { Embed = "rIdImgPartTopicRank" + notation, CompressionState = A.BlipCompressionValues.Print }; A.SourceRectangle sourceRectangle9 = new A.SourceRectangle(); A.Stretch stretch9 = new A.Stretch(); A.FillRectangle fillRectangle9 = new A.FillRectangle(); stretch9.Append(fillRectangle9); blipFill9.Append(blip9); blipFill9.Append(sourceRectangle9); blipFill9.Append(stretch9); Pic.ShapeProperties shapeProperties9 = new Pic.ShapeProperties() { BlackWhiteMode = A.BlackWhiteModeValues.Auto }; A.Transform2D transform2D9 = new A.Transform2D(); A.Offset offset9 = new A.Offset() { X = 0L, Y = 0L }; A.Extents extents9 = new A.Extents() { Cx = 838200L, Cy = 152400L }; transform2D9.Append(offset9); transform2D9.Append(extents9); A.PresetGeometry presetGeometry9 = new A.PresetGeometry() { Preset = A.ShapeTypeValues.Rectangle }; A.AdjustValueList adjustValueList9 = new A.AdjustValueList(); presetGeometry9.Append(adjustValueList9); A.NoFill noFill17 = new A.NoFill(); A.Outline outline9 = new A.Outline() { Width = 9525 }; A.NoFill noFill18 = new A.NoFill(); A.Miter miter9 = new A.Miter() { Limit = 800000 }; A.HeadEnd headEnd9 = new A.HeadEnd(); A.TailEnd tailEnd9 = new A.TailEnd(); outline9.Append(noFill18); outline9.Append(miter9); outline9.Append(headEnd9); outline9.Append(tailEnd9); shapeProperties9.Append(transform2D9); shapeProperties9.Append(presetGeometry9); shapeProperties9.Append(noFill17); shapeProperties9.Append(outline9); picture9.Append(nonVisualPictureProperties9); picture9.Append(blipFill9); picture9.Append(shapeProperties9); graphicData9.Append(picture9); graphic9.Append(graphicData9); inline9.Append(extent9); inline9.Append(effectExtent9); inline9.Append(docProperties9); inline9.Append(nonVisualGraphicFrameDrawingProperties9); inline9.Append(graphic9); drawing9.Append(inline9); run34.Append(runProperties21); run34.Append(drawing9); customXmlRun7.Append(run34); } paragraph21.Append(paragraphProperties21); paragraph21.Append(customXmlRun6); paragraph21.Append(customXmlRun7); return paragraph21; }
// Generates content of mainDocumentPart1. private void GenerateMainDocumentPart1Content(MainDocumentPart mainDocumentPart1) { DocumentFormat.OpenXml.Wordprocessing.Document document1 = new DocumentFormat.OpenXml.Wordprocessing.Document(); Body body1 = new Body(); CustomXmlBlock customXmlBlock1 = new CustomXmlBlock() { Uri = "http://hubblereports.com/namespace", Element = "reportdoc" }; CustomXmlBlock customXmlBlock2 = new CustomXmlBlock() { Uri = "http://hubblereports.com/namespace", Element = "body" }; CustomXmlBlock customXmlBlock3 = new CustomXmlBlock() { Uri = "http://hubblereports.com/namespace", Element = "opinion" }; CustomXmlBlock customXmlBlock4 = new CustomXmlBlock() { Uri = "http://hubblereports.com/namespace", Element = "product" }; Paragraph paragraph1 = new Paragraph() { RsidParagraphMarkRevision = "006A0B1E", RsidParagraphAddition = "002E7D22", RsidParagraphProperties = "00397A9E", RsidRunAdditionDefault = "005546F4" }; ParagraphProperties paragraphProperties1 = new ParagraphProperties(); ParagraphStyleId paragraphStyleId1 = new ParagraphStyleId() { Val = "StyleProductNameBefore0ptAfter8pt" }; paragraphProperties1.Append(paragraphStyleId1); Run run1 = new Run(); Text text1 = new Text(); text1.Text = "PRODUCT: ASIA EX JAPAN EQUITIES"; run1.Append(text1); paragraph1.Append(paragraphProperties1); paragraph1.Append(run1); Table table1 = new Table(); TableProperties tableProperties1 = new TableProperties(); TableStyle tableStyle1 = new TableStyle() { Val = "Grilledutableau" }; TablePositionProperties tablePositionProperties1 = new TablePositionProperties() { LeftFromText = 141, RightFromText = 141, VerticalAnchor = VerticalAnchorValues.Text, TablePositionY = 74 }; TableWidth tableWidth1 = new TableWidth() { Width = "10485", Type = TableWidthUnitValues.Dxa }; TableBorders tableBorders1 = new TableBorders(); TopBorder topBorder1 = new TopBorder() { Val = BorderValues.None, Color = "auto", Size = (UInt32Value)0U, Space = (UInt32Value)0U }; LeftBorder leftBorder1 = new LeftBorder() { Val = BorderValues.None, Color = "auto", Size = (UInt32Value)0U, Space = (UInt32Value)0U }; BottomBorder bottomBorder1 = new BottomBorder() { Val = BorderValues.None, Color = "auto", Size = (UInt32Value)0U, Space = (UInt32Value)0U }; RightBorder rightBorder1 = new RightBorder() { Val = BorderValues.None, Color = "auto", Size = (UInt32Value)0U, Space = (UInt32Value)0U }; InsideHorizontalBorder insideHorizontalBorder1 = new InsideHorizontalBorder() { Val = BorderValues.None, Color = "auto", Size = (UInt32Value)0U, Space = (UInt32Value)0U }; InsideVerticalBorder insideVerticalBorder1 = new InsideVerticalBorder() { Val = BorderValues.None, Color = "auto", Size = (UInt32Value)0U, Space = (UInt32Value)0U }; tableBorders1.Append(topBorder1); tableBorders1.Append(leftBorder1); tableBorders1.Append(bottomBorder1); tableBorders1.Append(rightBorder1); tableBorders1.Append(insideHorizontalBorder1); tableBorders1.Append(insideVerticalBorder1); TableLayout tableLayout1 = new TableLayout() { Type = TableLayoutValues.Fixed }; TableCellMarginDefault tableCellMarginDefault1 = new TableCellMarginDefault(); TableCellLeftMargin tableCellLeftMargin1 = new TableCellLeftMargin() { Width = 45, Type = TableWidthValues.Dxa }; TableCellRightMargin tableCellRightMargin1 = new TableCellRightMargin() { Width = 45, Type = TableWidthValues.Dxa }; tableCellMarginDefault1.Append(tableCellLeftMargin1); tableCellMarginDefault1.Append(tableCellRightMargin1); TableLook tableLook1 = new TableLook() { Val = "01E0" }; tableProperties1.Append(tableStyle1); tableProperties1.Append(tablePositionProperties1); tableProperties1.Append(tableWidth1); tableProperties1.Append(tableBorders1); tableProperties1.Append(tableLayout1); tableProperties1.Append(tableCellMarginDefault1); tableProperties1.Append(tableLook1); TableGrid tableGrid1 = new TableGrid(); GridColumn gridColumn1 = new GridColumn() { Width = "2124" }; GridColumn gridColumn2 = new GridColumn() { Width = "2892" }; GridColumn gridColumn3 = new GridColumn() { Width = "2576" }; GridColumn gridColumn4 = new GridColumn() { Width = "2893" }; tableGrid1.Append(gridColumn1); tableGrid1.Append(gridColumn2); tableGrid1.Append(gridColumn3); tableGrid1.Append(gridColumn4); TableRow tableRow1 = new TableRow() { RsidTableRowAddition = "004427CC", RsidTableRowProperties = "00443CD0" }; TableRowProperties tableRowProperties1 = new TableRowProperties(); TableRowHeight tableRowHeight1 = new TableRowHeight() { Val = (UInt32Value)182U }; tableRowProperties1.Append(tableRowHeight1); TableCell tableCell1 = new TableCell(); TableCellProperties tableCellProperties1 = new TableCellProperties(); TableCellWidth tableCellWidth1 = new TableCellWidth() { Width = "2124", Type = TableWidthUnitValues.Dxa }; tableCellProperties1.Append(tableCellWidth1); Paragraph paragraph2 = new Paragraph() { RsidParagraphAddition = "004427CC", RsidParagraphProperties = "000C4F36", RsidRunAdditionDefault = "004427CC" }; ParagraphProperties paragraphProperties2 = new ParagraphProperties(); ParagraphStyleId paragraphStyleId2 = new ParagraphStyleId() { Val = "TableHeading" }; SpacingBetweenLines spacingBetweenLines1 = new SpacingBetweenLines() { Line = "240", LineRule = LineSpacingRuleValues.Auto }; paragraphProperties2.Append(paragraphStyleId2); paragraphProperties2.Append(spacingBetweenLines1); Run run2 = new Run(); Text text2 = new Text(); text2.Text = "ASSET CLASS"; run2.Append(text2); paragraph2.Append(paragraphProperties2); paragraph2.Append(run2); tableCell1.Append(tableCellProperties1); tableCell1.Append(paragraph2); TableCell tableCell2 = new TableCell(); TableCellProperties tableCellProperties2 = new TableCellProperties(); TableCellWidth tableCellWidth2 = new TableCellWidth() { Width = "2892", Type = TableWidthUnitValues.Dxa }; tableCellProperties2.Append(tableCellWidth2); Paragraph paragraph3 = new Paragraph() { RsidParagraphAddition = "004427CC", RsidParagraphProperties = "000C4F36", RsidRunAdditionDefault = "004427CC" }; ParagraphProperties paragraphProperties3 = new ParagraphProperties(); ParagraphStyleId paragraphStyleId3 = new ParagraphStyleId() { Val = "TableHeading" }; SpacingBetweenLines spacingBetweenLines2 = new SpacingBetweenLines() { Line = "240", LineRule = LineSpacingRuleValues.Auto }; paragraphProperties3.Append(paragraphStyleId3); paragraphProperties3.Append(spacingBetweenLines2); Run run3 = new Run(); Text text3 = new Text(); text3.Text = "GEOGRAPHIC EMPHASIS"; run3.Append(text3); paragraph3.Append(paragraphProperties3); paragraph3.Append(run3); tableCell2.Append(tableCellProperties2); tableCell2.Append(paragraph3); TableCell tableCell3 = new TableCell(); TableCellProperties tableCellProperties3 = new TableCellProperties(); TableCellWidth tableCellWidth3 = new TableCellWidth() { Width = "2576", Type = TableWidthUnitValues.Dxa }; tableCellProperties3.Append(tableCellWidth3); Paragraph paragraph4 = new Paragraph() { RsidParagraphAddition = "004427CC", RsidParagraphProperties = "000C4F36", RsidRunAdditionDefault = "004427CC" }; ParagraphProperties paragraphProperties4 = new ParagraphProperties(); ParagraphStyleId paragraphStyleId4 = new ParagraphStyleId() { Val = "TableHeading" }; SpacingBetweenLines spacingBetweenLines3 = new SpacingBetweenLines() { Line = "240", LineRule = LineSpacingRuleValues.Auto }; paragraphProperties4.Append(paragraphStyleId4); paragraphProperties4.Append(spacingBetweenLines3); Run run4 = new Run(); Text text4 = new Text(); text4.Text = "STYLE"; run4.Append(text4); paragraph4.Append(paragraphProperties4); paragraph4.Append(run4); tableCell3.Append(tableCellProperties3); tableCell3.Append(paragraph4); TableCell tableCell4 = new TableCell(); TableCellProperties tableCellProperties4 = new TableCellProperties(); TableCellWidth tableCellWidth4 = new TableCellWidth() { Width = "2893", Type = TableWidthUnitValues.Dxa }; tableCellProperties4.Append(tableCellWidth4); Paragraph paragraph5 = new Paragraph() { RsidParagraphAddition = "004427CC", RsidParagraphProperties = "000C4F36", RsidRunAdditionDefault = "004427CC" }; ParagraphProperties paragraphProperties5 = new ParagraphProperties(); ParagraphStyleId paragraphStyleId5 = new ParagraphStyleId() { Val = "TableHeading" }; SpacingBetweenLines spacingBetweenLines4 = new SpacingBetweenLines() { Line = "240", LineRule = LineSpacingRuleValues.Auto }; paragraphProperties5.Append(paragraphStyleId5); paragraphProperties5.Append(spacingBetweenLines4); Run run5 = new Run(); Text text5 = new Text(); text5.Text = "SUBSTYLE"; run5.Append(text5); paragraph5.Append(paragraphProperties5); paragraph5.Append(run5); tableCell4.Append(tableCellProperties4); tableCell4.Append(paragraph5); tableRow1.Append(tableRowProperties1); tableRow1.Append(tableCell1); tableRow1.Append(tableCell2); tableRow1.Append(tableCell3); tableRow1.Append(tableCell4); TableRow tableRow2 = new TableRow() { RsidTableRowAddition = "004427CC", RsidTableRowProperties = "00443CD0" }; CustomXmlCell customXmlCell1 = new CustomXmlCell() { Uri = "http://hubblereports.com/namespace", Element = "AssetClass" }; TableCell tableCell5 = new TableCell(); TableCellProperties tableCellProperties5 = new TableCellProperties(); TableCellWidth tableCellWidth5 = new TableCellWidth() { Width = "2124", Type = TableWidthUnitValues.Dxa }; tableCellProperties5.Append(tableCellWidth5); Paragraph paragraph6 = new Paragraph() { RsidParagraphAddition = "004427CC", RsidParagraphProperties = "005546F4", RsidRunAdditionDefault = "005546F4" }; ParagraphProperties paragraphProperties6 = new ParagraphProperties(); ParagraphStyleId paragraphStyleId6 = new ParagraphStyleId() { Val = "TableText" }; SpacingBetweenLines spacingBetweenLines5 = new SpacingBetweenLines() { Line = "240", LineRule = LineSpacingRuleValues.Auto }; ParagraphMarkRunProperties paragraphMarkRunProperties1 = new ParagraphMarkRunProperties(); FontSizeComplexScript fontSizeComplexScript1 = new FontSizeComplexScript() { Val = "18" }; paragraphMarkRunProperties1.Append(fontSizeComplexScript1); paragraphProperties6.Append(paragraphStyleId6); paragraphProperties6.Append(spacingBetweenLines5); paragraphProperties6.Append(paragraphMarkRunProperties1); Run run6 = new Run(); RunProperties runProperties1 = new RunProperties(); FontSizeComplexScript fontSizeComplexScript2 = new FontSizeComplexScript() { Val = "18" }; runProperties1.Append(fontSizeComplexScript2); Text text6 = new Text(); text6.Text = "Equity"; run6.Append(runProperties1); run6.Append(text6); paragraph6.Append(paragraphProperties6); paragraph6.Append(run6); tableCell5.Append(tableCellProperties5); tableCell5.Append(paragraph6); customXmlCell1.Append(tableCell5); CustomXmlCell customXmlCell2 = new CustomXmlCell() { Uri = "http://hubblereports.com/namespace", Element = "GeoEmphasis" }; TableCell tableCell6 = new TableCell(); TableCellProperties tableCellProperties6 = new TableCellProperties(); TableCellWidth tableCellWidth6 = new TableCellWidth() { Width = "2892", Type = TableWidthUnitValues.Dxa }; tableCellProperties6.Append(tableCellWidth6); Paragraph paragraph7 = new Paragraph() { RsidParagraphAddition = "004427CC", RsidParagraphProperties = "005546F4", RsidRunAdditionDefault = "005546F4" }; ParagraphProperties paragraphProperties7 = new ParagraphProperties(); ParagraphStyleId paragraphStyleId7 = new ParagraphStyleId() { Val = "TableText" }; SpacingBetweenLines spacingBetweenLines6 = new SpacingBetweenLines() { Line = "240", LineRule = LineSpacingRuleValues.Auto }; ParagraphMarkRunProperties paragraphMarkRunProperties2 = new ParagraphMarkRunProperties(); FontSizeComplexScript fontSizeComplexScript3 = new FontSizeComplexScript() { Val = "18" }; paragraphMarkRunProperties2.Append(fontSizeComplexScript3); paragraphProperties7.Append(paragraphStyleId7); paragraphProperties7.Append(spacingBetweenLines6); paragraphProperties7.Append(paragraphMarkRunProperties2); Run run7 = new Run(); RunProperties runProperties2 = new RunProperties(); FontSizeComplexScript fontSizeComplexScript4 = new FontSizeComplexScript() { Val = "18" }; runProperties2.Append(fontSizeComplexScript4); Text text7 = new Text(); text7.Text = "Asia ex Japan"; run7.Append(runProperties2); run7.Append(text7); paragraph7.Append(paragraphProperties7); paragraph7.Append(run7); tableCell6.Append(tableCellProperties6); tableCell6.Append(paragraph7); customXmlCell2.Append(tableCell6); CustomXmlCell customXmlCell3 = new CustomXmlCell() { Uri = "http://hubblereports.com/namespace", Element = "Style" }; TableCell tableCell7 = new TableCell(); TableCellProperties tableCellProperties7 = new TableCellProperties(); TableCellWidth tableCellWidth7 = new TableCellWidth() { Width = "2576", Type = TableWidthUnitValues.Dxa }; tableCellProperties7.Append(tableCellWidth7); Paragraph paragraph8 = new Paragraph() { RsidParagraphAddition = "004427CC", RsidParagraphProperties = "005546F4", RsidRunAdditionDefault = "005546F4" }; ParagraphProperties paragraphProperties8 = new ParagraphProperties(); ParagraphStyleId paragraphStyleId8 = new ParagraphStyleId() { Val = "TableText" }; SpacingBetweenLines spacingBetweenLines7 = new SpacingBetweenLines() { Line = "240", LineRule = LineSpacingRuleValues.Auto }; ParagraphMarkRunProperties paragraphMarkRunProperties3 = new ParagraphMarkRunProperties(); FontSizeComplexScript fontSizeComplexScript5 = new FontSizeComplexScript() { Val = "18" }; paragraphMarkRunProperties3.Append(fontSizeComplexScript5); paragraphProperties8.Append(paragraphStyleId8); paragraphProperties8.Append(spacingBetweenLines7); paragraphProperties8.Append(paragraphMarkRunProperties3); Run run8 = new Run(); RunProperties runProperties3 = new RunProperties(); FontSizeComplexScript fontSizeComplexScript6 = new FontSizeComplexScript() { Val = "18" }; runProperties3.Append(fontSizeComplexScript6); Text text8 = new Text(); text8.Text = "-"; run8.Append(runProperties3); run8.Append(text8); paragraph8.Append(paragraphProperties8); paragraph8.Append(run8); tableCell7.Append(tableCellProperties7); tableCell7.Append(paragraph8); customXmlCell3.Append(tableCell7); CustomXmlCell customXmlCell4 = new CustomXmlCell() { Uri = "http://hubblereports.com/namespace", Element = "Substyle" }; TableCell tableCell8 = new TableCell(); TableCellProperties tableCellProperties8 = new TableCellProperties(); TableCellWidth tableCellWidth8 = new TableCellWidth() { Width = "2893", Type = TableWidthUnitValues.Dxa }; tableCellProperties8.Append(tableCellWidth8); Paragraph paragraph9 = new Paragraph() { RsidParagraphAddition = "004427CC", RsidParagraphProperties = "005546F4", RsidRunAdditionDefault = "005546F4" }; ParagraphProperties paragraphProperties9 = new ParagraphProperties(); ParagraphStyleId paragraphStyleId9 = new ParagraphStyleId() { Val = "TableText" }; SpacingBetweenLines spacingBetweenLines8 = new SpacingBetweenLines() { Line = "240", LineRule = LineSpacingRuleValues.Auto }; ParagraphMarkRunProperties paragraphMarkRunProperties4 = new ParagraphMarkRunProperties(); FontSizeComplexScript fontSizeComplexScript7 = new FontSizeComplexScript() { Val = "18" }; paragraphMarkRunProperties4.Append(fontSizeComplexScript7); paragraphProperties9.Append(paragraphStyleId9); paragraphProperties9.Append(spacingBetweenLines8); paragraphProperties9.Append(paragraphMarkRunProperties4); Run run9 = new Run(); Text text9 = new Text(); text9.Text = "-"; run9.Append(text9); paragraph9.Append(paragraphProperties9); paragraph9.Append(run9); tableCell8.Append(tableCellProperties8); tableCell8.Append(paragraph9); customXmlCell4.Append(tableCell8); tableRow2.Append(customXmlCell1); tableRow2.Append(customXmlCell2); tableRow2.Append(customXmlCell3); tableRow2.Append(customXmlCell4); table1.Append(tableProperties1); table1.Append(tableGrid1); table1.Append(tableRow1); table1.Append(tableRow2); customXmlBlock4.Append(paragraph1); customXmlBlock4.Append(table1); Paragraph paragraph10 = new Paragraph() { RsidParagraphMarkRevision = "00E12034", RsidParagraphAddition = "009F7E7F", RsidParagraphProperties = "00397A9E", RsidRunAdditionDefault = "009F7E7F" }; ParagraphProperties paragraphProperties10 = new ParagraphProperties(); ParagraphStyleId paragraphStyleId10 = new ParagraphStyleId() { Val = "StyleProductsReviewedHeading6ptBefore15ptAfter0pt" }; paragraphProperties10.Append(paragraphStyleId10); paragraph10.Append(paragraphProperties10); CustomXmlBlock customXmlBlock5 = new CustomXmlBlock() { Uri = "http://hubblereports.com/namespace", Element = "opiniondata" }; Paragraph paragraph11 = new Paragraph() { RsidParagraphMarkRevision = "009F7E7F", RsidParagraphAddition = "00EE7B69", RsidParagraphProperties = "009F7E7F", RsidRunAdditionDefault = "00FC0F0D" }; ParagraphProperties paragraphProperties11 = new ParagraphProperties(); ParagraphStyleId paragraphStyleId11 = new ParagraphStyleId() { Val = "RankHeading" }; SpacingBetweenLines spacingBetweenLines9 = new SpacingBetweenLines() { Line = "240", LineRule = LineSpacingRuleValues.Auto }; paragraphProperties11.Append(paragraphStyleId11); paragraphProperties11.Append(spacingBetweenLines9); Run run10 = new Run() { RsidRunProperties = "009F7E7F" }; Text text10 = new Text(); text10.Text = "OVERALL EVaLUATION"; run10.Append(text10); paragraph11.Append(paragraphProperties11); paragraph11.Append(run10); Table table2 = new Table(); TableProperties tableProperties2 = new TableProperties(); TableStyle tableStyle2 = new TableStyle() { Val = "Grilledutableau" }; TableWidth tableWidth2 = new TableWidth() { Width = "10485", Type = TableWidthUnitValues.Dxa }; TableBorders tableBorders2 = new TableBorders(); TopBorder topBorder2 = new TopBorder() { Val = BorderValues.None, Color = "auto", Size = (UInt32Value)0U, Space = (UInt32Value)0U }; LeftBorder leftBorder2 = new LeftBorder() { Val = BorderValues.None, Color = "auto", Size = (UInt32Value)0U, Space = (UInt32Value)0U }; BottomBorder bottomBorder2 = new BottomBorder() { Val = BorderValues.None, Color = "auto", Size = (UInt32Value)0U, Space = (UInt32Value)0U }; RightBorder rightBorder2 = new RightBorder() { Val = BorderValues.None, Color = "auto", Size = (UInt32Value)0U, Space = (UInt32Value)0U }; InsideHorizontalBorder insideHorizontalBorder2 = new InsideHorizontalBorder() { Val = BorderValues.None, Color = "auto", Size = (UInt32Value)0U, Space = (UInt32Value)0U }; InsideVerticalBorder insideVerticalBorder2 = new InsideVerticalBorder() { Val = BorderValues.None, Color = "auto", Size = (UInt32Value)0U, Space = (UInt32Value)0U }; tableBorders2.Append(topBorder2); tableBorders2.Append(leftBorder2); tableBorders2.Append(bottomBorder2); tableBorders2.Append(rightBorder2); tableBorders2.Append(insideHorizontalBorder2); tableBorders2.Append(insideVerticalBorder2); TableLayout tableLayout2 = new TableLayout() { Type = TableLayoutValues.Fixed }; TableCellMarginDefault tableCellMarginDefault2 = new TableCellMarginDefault(); TableCellLeftMargin tableCellLeftMargin2 = new TableCellLeftMargin() { Width = 45, Type = TableWidthValues.Dxa }; TableCellRightMargin tableCellRightMargin2 = new TableCellRightMargin() { Width = 45, Type = TableWidthValues.Dxa }; tableCellMarginDefault2.Append(tableCellLeftMargin2); tableCellMarginDefault2.Append(tableCellRightMargin2); TableLook tableLook2 = new TableLook() { Val = "01E0" }; tableProperties2.Append(tableStyle2); tableProperties2.Append(tableWidth2); tableProperties2.Append(tableBorders2); tableProperties2.Append(tableLayout2); tableProperties2.Append(tableCellMarginDefault2); tableProperties2.Append(tableLook2); TableGrid tableGrid2 = new TableGrid(); GridColumn gridColumn5 = new GridColumn() { Width = "3175" }; GridColumn gridColumn6 = new GridColumn() { Width = "4070" }; GridColumn gridColumn7 = new GridColumn() { Width = "3240" }; tableGrid2.Append(gridColumn5); tableGrid2.Append(gridColumn6); tableGrid2.Append(gridColumn7); TableRow tableRow3 = new TableRow() { RsidTableRowAddition = "002E7D22", RsidTableRowProperties = "00837232" }; TableCell tableCell9 = new TableCell(); TableCellProperties tableCellProperties9 = new TableCellProperties(); TableCellWidth tableCellWidth9 = new TableCellWidth() { Width = "3175", Type = TableWidthUnitValues.Dxa }; tableCellProperties9.Append(tableCellWidth9); CustomXmlBlock customXmlBlock6 = new CustomXmlBlock() { Uri = "http://hubblereports.com/namespace", Element = "RankValueImage" }; Paragraph paragraph12 = new Paragraph() { RsidParagraphAddition = "002E7D22", RsidParagraphProperties = "00BA7E3F", RsidRunAdditionDefault = "00740A1C" }; ParagraphProperties paragraphProperties12 = new ParagraphProperties(); ParagraphStyleId paragraphStyleId12 = new ParagraphStyleId() { Val = "TableText" }; SpacingBetweenLines spacingBetweenLines10 = new SpacingBetweenLines() { Line = "240", LineRule = LineSpacingRuleValues.Auto }; ParagraphMarkRunProperties paragraphMarkRunProperties5 = new ParagraphMarkRunProperties(); FontSizeComplexScript fontSizeComplexScript8 = new FontSizeComplexScript() { Val = "18" }; paragraphMarkRunProperties5.Append(fontSizeComplexScript8); paragraphProperties12.Append(paragraphStyleId12); paragraphProperties12.Append(spacingBetweenLines10); paragraphProperties12.Append(paragraphMarkRunProperties5); Run run11 = new Run(); RunProperties runProperties4 = new RunProperties(); NoProof noProof1 = new NoProof(); FontSizeComplexScript fontSizeComplexScript9 = new FontSizeComplexScript() { Val = "18" }; Languages languages1 = new Languages() { Val = "fr-CA", EastAsia = "fr-CA" }; runProperties4.Append(noProof1); runProperties4.Append(fontSizeComplexScript9); runProperties4.Append(languages1); Drawing drawing1 = new Drawing(); Wp.Inline inline1 = new Wp.Inline() { DistanceFromTop = (UInt32Value)0U, DistanceFromBottom = (UInt32Value)0U, DistanceFromLeft = (UInt32Value)0U, DistanceFromRight = (UInt32Value)0U }; Wp.Extent extent1 = new Wp.Extent() { Cx = 1485900L, Cy = 428625L }; Wp.EffectExtent effectExtent1 = new Wp.EffectExtent() { LeftEdge = 19050L, TopEdge = 0L, RightEdge = 0L, BottomEdge = 0L }; Wp.DocProperties docProperties1 = new Wp.DocProperties() { Id = (UInt32Value)3U, Name = "Image 3", Description = "rank_1" }; Wp.NonVisualGraphicFrameDrawingProperties nonVisualGraphicFrameDrawingProperties1 = new Wp.NonVisualGraphicFrameDrawingProperties(); A.GraphicFrameLocks graphicFrameLocks1 = new A.GraphicFrameLocks() { NoChangeAspect = true }; nonVisualGraphicFrameDrawingProperties1.Append(graphicFrameLocks1); A.Graphic graphic1 = new A.Graphic(); A.GraphicData graphicData1 = new A.GraphicData() { Uri = "http://schemas.openxmlformats.org/drawingml/2006/picture" }; Pic.Picture picture1 = new Pic.Picture(); Pic.NonVisualPictureProperties nonVisualPictureProperties1 = new Pic.NonVisualPictureProperties(); Pic.NonVisualDrawingProperties nonVisualDrawingProperties1 = new Pic.NonVisualDrawingProperties() { Id = (UInt32Value)0U, Name = "Picture 3", Description = "rank_1" }; Pic.NonVisualPictureDrawingProperties nonVisualPictureDrawingProperties1 = new Pic.NonVisualPictureDrawingProperties(); A.PictureLocks pictureLocks1 = new A.PictureLocks() { NoChangeAspect = true, NoChangeArrowheads = true }; nonVisualPictureDrawingProperties1.Append(pictureLocks1); nonVisualPictureProperties1.Append(nonVisualDrawingProperties1); nonVisualPictureProperties1.Append(nonVisualPictureDrawingProperties1); Pic.BlipFill blipFill1 = new Pic.BlipFill(); A.Blip blip1 = new A.Blip() { Embed = "rIdImgPartOverallEval" + OverallEvaluationRank.ToString(), CompressionState = A.BlipCompressionValues.Print }; A.SourceRectangle sourceRectangle1 = new A.SourceRectangle(); A.Stretch stretch1 = new A.Stretch(); A.FillRectangle fillRectangle1 = new A.FillRectangle(); stretch1.Append(fillRectangle1); blipFill1.Append(blip1); blipFill1.Append(sourceRectangle1); blipFill1.Append(stretch1); Pic.ShapeProperties shapeProperties1 = new Pic.ShapeProperties() { BlackWhiteMode = A.BlackWhiteModeValues.Auto }; A.Transform2D transform2D1 = new A.Transform2D(); A.Offset offset1 = new A.Offset() { X = 0L, Y = 0L }; A.Extents extents1 = new A.Extents() { Cx = 1485900L, Cy = 428625L }; transform2D1.Append(offset1); transform2D1.Append(extents1); A.PresetGeometry presetGeometry1 = new A.PresetGeometry() { Preset = A.ShapeTypeValues.Rectangle }; A.AdjustValueList adjustValueList1 = new A.AdjustValueList(); presetGeometry1.Append(adjustValueList1); A.NoFill noFill1 = new A.NoFill(); A.Outline outline1 = new A.Outline() { Width = 9525 }; A.NoFill noFill2 = new A.NoFill(); A.Miter miter1 = new A.Miter() { Limit = 800000 }; A.HeadEnd headEnd1 = new A.HeadEnd(); A.TailEnd tailEnd1 = new A.TailEnd(); outline1.Append(noFill2); outline1.Append(miter1); outline1.Append(headEnd1); outline1.Append(tailEnd1); shapeProperties1.Append(transform2D1); shapeProperties1.Append(presetGeometry1); shapeProperties1.Append(noFill1); shapeProperties1.Append(outline1); picture1.Append(nonVisualPictureProperties1); picture1.Append(blipFill1); picture1.Append(shapeProperties1); graphicData1.Append(picture1); graphic1.Append(graphicData1); inline1.Append(extent1); inline1.Append(effectExtent1); inline1.Append(docProperties1); inline1.Append(nonVisualGraphicFrameDrawingProperties1); inline1.Append(graphic1); drawing1.Append(inline1); run11.Append(runProperties4); run11.Append(drawing1); paragraph12.Append(paragraphProperties12); paragraph12.Append(run11); customXmlBlock6.Append(paragraph12); tableCell9.Append(tableCellProperties9); tableCell9.Append(customXmlBlock6); TableCell tableCell10 = new TableCell(); TableCellProperties tableCellProperties10 = new TableCellProperties(); TableCellWidth tableCellWidth10 = new TableCellWidth() { Width = "4070", Type = TableWidthUnitValues.Dxa }; tableCellProperties10.Append(tableCellWidth10); CustomXmlBlock customXmlBlock7 = new CustomXmlBlock() { Uri = "http://hubblereports.com/namespace", Element = "StatementForOverall" }; Paragraph paragraph13 = new Paragraph() { RsidParagraphMarkRevision = "00E340CC", RsidParagraphAddition = "002E7D22", RsidParagraphProperties = "003F1967", RsidRunAdditionDefault = "00707FFA" }; ParagraphProperties paragraphProperties13 = new ParagraphProperties(); ParagraphStyleId paragraphStyleId13 = new ParagraphStyleId() { Val = "RankStatement" }; ParagraphMarkRunProperties paragraphMarkRunProperties6 = new ParagraphMarkRunProperties(); RunFonts runFonts1 = new RunFonts() { EastAsia = "Arial Unicode MS" }; FontSize fontSize1 = new FontSize() { Val = "20" }; FontSizeComplexScript fontSizeComplexScript10 = new FontSizeComplexScript() { Val = "20" }; paragraphMarkRunProperties6.Append(runFonts1); paragraphMarkRunProperties6.Append(fontSize1); paragraphMarkRunProperties6.Append(fontSizeComplexScript10); paragraphProperties13.Append(paragraphStyleId13); paragraphProperties13.Append(paragraphMarkRunProperties6); Run run12 = new Run() { RsidRunProperties = "003F1967" }; RunProperties runProperties5 = new RunProperties(); RunFonts runFonts2 = new RunFonts() { EastAsia = "Arial Unicode MS" }; runProperties5.Append(runFonts2); Text text11 = new Text(); text11.Text = OverallEvaluationContent; run12.Append(runProperties5); run12.Append(text11); paragraph13.Append(paragraphProperties13); paragraph13.Append(run12); customXmlBlock7.Append(paragraph13); tableCell10.Append(tableCellProperties10); tableCell10.Append(customXmlBlock7); TableCell tableCell11 = new TableCell(); TableCellProperties tableCellProperties11 = new TableCellProperties(); TableCellWidth tableCellWidth11 = new TableCellWidth() { Width = "3240", Type = TableWidthUnitValues.Dxa }; NoWrap noWrap1 = new NoWrap(); tableCellProperties11.Append(tableCellWidth11); tableCellProperties11.Append(noWrap1); Paragraph paragraph14 = new Paragraph() { RsidParagraphAddition = "002E7D22", RsidParagraphProperties = "00256073", RsidRunAdditionDefault = "00707FFA" }; ParagraphProperties paragraphProperties14 = new ParagraphProperties(); ParagraphStyleId paragraphStyleId14 = new ParagraphStyleId() { Val = "TableText" }; SpacingBetweenLines spacingBetweenLines11 = new SpacingBetweenLines() { Line = "240", LineRule = LineSpacingRuleValues.Auto }; ParagraphMarkRunProperties paragraphMarkRunProperties7 = new ParagraphMarkRunProperties(); FontSize fontSize2 = new FontSize() { Val = "20" }; FontSizeComplexScript fontSizeComplexScript11 = new FontSizeComplexScript() { Val = "20" }; paragraphMarkRunProperties7.Append(fontSize2); paragraphMarkRunProperties7.Append(fontSizeComplexScript11); paragraphProperties14.Append(paragraphStyleId14); paragraphProperties14.Append(spacingBetweenLines11); paragraphProperties14.Append(paragraphMarkRunProperties7); Run run13 = new Run() { RsidRunProperties = "00DC3ED5" }; RunProperties runProperties6 = new RunProperties(); Bold bold1 = new Bold(); runProperties6.Append(bold1); Text text12 = new Text(); text12.Text = "Updated By:"; run13.Append(runProperties6); run13.Append(text12); Run run14 = new Run() { RsidRunAddition = "00740A1C" }; RunProperties runProperties7 = new RunProperties(); Bold bold2 = new Bold(); NoProof noProof2 = new NoProof(); Languages languages2 = new Languages() { Val = "fr-CA", EastAsia = "fr-CA" }; runProperties7.Append(bold2); runProperties7.Append(noProof2); runProperties7.Append(languages2); Drawing drawing2 = new Drawing(); Wp.Inline inline2 = new Wp.Inline() { DistanceFromTop = (UInt32Value)0U, DistanceFromBottom = (UInt32Value)0U, DistanceFromLeft = (UInt32Value)0U, DistanceFromRight = (UInt32Value)0U }; Wp.Extent extent2 = new Wp.Extent() { Cx = 9525L, Cy = 9525L }; Wp.EffectExtent effectExtent2 = new Wp.EffectExtent() { LeftEdge = 0L, TopEdge = 0L, RightEdge = 0L, BottomEdge = 0L }; Wp.DocProperties docProperties2 = new Wp.DocProperties() { Id = (UInt32Value)4U, Name = "Image 4", Description = "spacer" }; Wp.NonVisualGraphicFrameDrawingProperties nonVisualGraphicFrameDrawingProperties2 = new Wp.NonVisualGraphicFrameDrawingProperties(); A.GraphicFrameLocks graphicFrameLocks2 = new A.GraphicFrameLocks() { NoChangeAspect = true }; nonVisualGraphicFrameDrawingProperties2.Append(graphicFrameLocks2); A.Graphic graphic2 = new A.Graphic(); A.GraphicData graphicData2 = new A.GraphicData() { Uri = "http://schemas.openxmlformats.org/drawingml/2006/picture" }; Pic.Picture picture2 = new Pic.Picture(); Pic.NonVisualPictureProperties nonVisualPictureProperties2 = new Pic.NonVisualPictureProperties(); Pic.NonVisualDrawingProperties nonVisualDrawingProperties2 = new Pic.NonVisualDrawingProperties() { Id = (UInt32Value)0U, Name = "Picture 4", Description = "spacer" }; Pic.NonVisualPictureDrawingProperties nonVisualPictureDrawingProperties2 = new Pic.NonVisualPictureDrawingProperties(); A.PictureLocks pictureLocks2 = new A.PictureLocks() { NoChangeAspect = true, NoChangeArrowheads = true }; nonVisualPictureDrawingProperties2.Append(pictureLocks2); nonVisualPictureProperties2.Append(nonVisualDrawingProperties2); nonVisualPictureProperties2.Append(nonVisualPictureDrawingProperties2); Pic.BlipFill blipFill2 = new Pic.BlipFill(); A.Blip blip2 = new A.Blip() { Embed = "rId8" }; A.SourceRectangle sourceRectangle2 = new A.SourceRectangle(); A.Stretch stretch2 = new A.Stretch(); A.FillRectangle fillRectangle2 = new A.FillRectangle(); stretch2.Append(fillRectangle2); blipFill2.Append(blip2); blipFill2.Append(sourceRectangle2); blipFill2.Append(stretch2); Pic.ShapeProperties shapeProperties2 = new Pic.ShapeProperties() { BlackWhiteMode = A.BlackWhiteModeValues.Auto }; A.Transform2D transform2D2 = new A.Transform2D(); A.Offset offset2 = new A.Offset() { X = 0L, Y = 0L }; A.Extents extents2 = new A.Extents() { Cx = 9525L, Cy = 9525L }; transform2D2.Append(offset2); transform2D2.Append(extents2); A.PresetGeometry presetGeometry2 = new A.PresetGeometry() { Preset = A.ShapeTypeValues.Rectangle }; A.AdjustValueList adjustValueList2 = new A.AdjustValueList(); presetGeometry2.Append(adjustValueList2); A.NoFill noFill3 = new A.NoFill(); A.Outline outline2 = new A.Outline() { Width = 9525 }; A.NoFill noFill4 = new A.NoFill(); A.Miter miter2 = new A.Miter() { Limit = 800000 }; A.HeadEnd headEnd2 = new A.HeadEnd(); A.TailEnd tailEnd2 = new A.TailEnd(); outline2.Append(noFill4); outline2.Append(miter2); outline2.Append(headEnd2); outline2.Append(tailEnd2); shapeProperties2.Append(transform2D2); shapeProperties2.Append(presetGeometry2); shapeProperties2.Append(noFill3); shapeProperties2.Append(outline2); picture2.Append(nonVisualPictureProperties2); picture2.Append(blipFill2); picture2.Append(shapeProperties2); graphicData2.Append(picture2); graphic2.Append(graphicData2); inline2.Append(extent2); inline2.Append(effectExtent2); inline2.Append(docProperties2); inline2.Append(nonVisualGraphicFrameDrawingProperties2); inline2.Append(graphic2); drawing2.Append(inline2); run14.Append(runProperties7); run14.Append(drawing2); Run run15 = new Run() { RsidRunAddition = "00740A1C" }; RunProperties runProperties8 = new RunProperties(); Bold bold3 = new Bold(); NoProof noProof3 = new NoProof(); Languages languages3 = new Languages() { Val = "fr-CA", EastAsia = "fr-CA" }; runProperties8.Append(bold3); runProperties8.Append(noProof3); runProperties8.Append(languages3); Drawing drawing3 = new Drawing(); Wp.Inline inline3 = new Wp.Inline() { DistanceFromTop = (UInt32Value)0U, DistanceFromBottom = (UInt32Value)0U, DistanceFromLeft = (UInt32Value)0U, DistanceFromRight = (UInt32Value)0U }; Wp.Extent extent3 = new Wp.Extent() { Cx = 9525L, Cy = 9525L }; Wp.EffectExtent effectExtent3 = new Wp.EffectExtent() { LeftEdge = 0L, TopEdge = 0L, RightEdge = 0L, BottomEdge = 0L }; Wp.DocProperties docProperties3 = new Wp.DocProperties() { Id = (UInt32Value)5U, Name = "Image 5", Description = "spacer" }; Wp.NonVisualGraphicFrameDrawingProperties nonVisualGraphicFrameDrawingProperties3 = new Wp.NonVisualGraphicFrameDrawingProperties(); A.GraphicFrameLocks graphicFrameLocks3 = new A.GraphicFrameLocks() { NoChangeAspect = true }; nonVisualGraphicFrameDrawingProperties3.Append(graphicFrameLocks3); A.Graphic graphic3 = new A.Graphic(); A.GraphicData graphicData3 = new A.GraphicData() { Uri = "http://schemas.openxmlformats.org/drawingml/2006/picture" }; Pic.Picture picture3 = new Pic.Picture(); Pic.NonVisualPictureProperties nonVisualPictureProperties3 = new Pic.NonVisualPictureProperties(); Pic.NonVisualDrawingProperties nonVisualDrawingProperties3 = new Pic.NonVisualDrawingProperties() { Id = (UInt32Value)0U, Name = "Picture 5", Description = "spacer" }; Pic.NonVisualPictureDrawingProperties nonVisualPictureDrawingProperties3 = new Pic.NonVisualPictureDrawingProperties(); A.PictureLocks pictureLocks3 = new A.PictureLocks() { NoChangeAspect = true, NoChangeArrowheads = true }; nonVisualPictureDrawingProperties3.Append(pictureLocks3); nonVisualPictureProperties3.Append(nonVisualDrawingProperties3); nonVisualPictureProperties3.Append(nonVisualPictureDrawingProperties3); Pic.BlipFill blipFill3 = new Pic.BlipFill(); A.Blip blip3 = new A.Blip() { Embed = "rId8" }; A.SourceRectangle sourceRectangle3 = new A.SourceRectangle(); A.Stretch stretch3 = new A.Stretch(); A.FillRectangle fillRectangle3 = new A.FillRectangle(); stretch3.Append(fillRectangle3); blipFill3.Append(blip3); blipFill3.Append(sourceRectangle3); blipFill3.Append(stretch3); Pic.ShapeProperties shapeProperties3 = new Pic.ShapeProperties() { BlackWhiteMode = A.BlackWhiteModeValues.Auto }; A.Transform2D transform2D3 = new A.Transform2D(); A.Offset offset3 = new A.Offset() { X = 0L, Y = 0L }; A.Extents extents3 = new A.Extents() { Cx = 9525L, Cy = 9525L }; transform2D3.Append(offset3); transform2D3.Append(extents3); A.PresetGeometry presetGeometry3 = new A.PresetGeometry() { Preset = A.ShapeTypeValues.Rectangle }; A.AdjustValueList adjustValueList3 = new A.AdjustValueList(); presetGeometry3.Append(adjustValueList3); A.NoFill noFill5 = new A.NoFill(); A.Outline outline3 = new A.Outline() { Width = 9525 }; A.NoFill noFill6 = new A.NoFill(); A.Miter miter3 = new A.Miter() { Limit = 800000 }; A.HeadEnd headEnd3 = new A.HeadEnd(); A.TailEnd tailEnd3 = new A.TailEnd(); outline3.Append(noFill6); outline3.Append(miter3); outline3.Append(headEnd3); outline3.Append(tailEnd3); shapeProperties3.Append(transform2D3); shapeProperties3.Append(presetGeometry3); shapeProperties3.Append(noFill5); shapeProperties3.Append(outline3); picture3.Append(nonVisualPictureProperties3); picture3.Append(blipFill3); picture3.Append(shapeProperties3); graphicData3.Append(picture3); graphic3.Append(graphicData3); inline3.Append(extent3); inline3.Append(effectExtent3); inline3.Append(docProperties3); inline3.Append(nonVisualGraphicFrameDrawingProperties3); inline3.Append(graphic3); drawing3.Append(inline3); run15.Append(runProperties8); run15.Append(drawing3); CustomXmlRun customXmlRun1 = new CustomXmlRun() { Uri = "http://hubblereports.com/namespace", Element = "UpdatedBy" }; Run run16 = new Run() { RsidRunAddition = "005546F4" }; Text text13 = new Text(); text13.Text = "Julien Blin"; run16.Append(text13); customXmlRun1.Append(run16); paragraph14.Append(paragraphProperties14); paragraph14.Append(run13); paragraph14.Append(run14); paragraph14.Append(run15); paragraph14.Append(customXmlRun1); Paragraph paragraph15 = new Paragraph() { RsidParagraphAddition = "002E7D22", RsidParagraphProperties = "00256073", RsidRunAdditionDefault = "00707FFA" }; ParagraphProperties paragraphProperties15 = new ParagraphProperties(); ParagraphStyleId paragraphStyleId15 = new ParagraphStyleId() { Val = "TableText" }; SpacingBetweenLines spacingBetweenLines12 = new SpacingBetweenLines() { Line = "240", LineRule = LineSpacingRuleValues.Auto }; ParagraphMarkRunProperties paragraphMarkRunProperties8 = new ParagraphMarkRunProperties(); FontSize fontSize3 = new FontSize() { Val = "20" }; FontSizeComplexScript fontSizeComplexScript12 = new FontSizeComplexScript() { Val = "20" }; paragraphMarkRunProperties8.Append(fontSize3); paragraphMarkRunProperties8.Append(fontSizeComplexScript12); paragraphProperties15.Append(paragraphStyleId15); paragraphProperties15.Append(spacingBetweenLines12); paragraphProperties15.Append(paragraphMarkRunProperties8); Run run17 = new Run() { RsidRunProperties = "00DC3ED5" }; RunProperties runProperties9 = new RunProperties(); Bold bold4 = new Bold(); runProperties9.Append(bold4); Text text14 = new Text(); text14.Text = "Target Excess Return:"; run17.Append(runProperties9); run17.Append(text14); Run run18 = new Run() { RsidRunAddition = "00740A1C" }; RunProperties runProperties10 = new RunProperties(); Bold bold5 = new Bold(); NoProof noProof4 = new NoProof(); Languages languages4 = new Languages() { Val = "fr-CA", EastAsia = "fr-CA" }; runProperties10.Append(bold5); runProperties10.Append(noProof4); runProperties10.Append(languages4); Drawing drawing4 = new Drawing(); Wp.Inline inline4 = new Wp.Inline() { DistanceFromTop = (UInt32Value)0U, DistanceFromBottom = (UInt32Value)0U, DistanceFromLeft = (UInt32Value)0U, DistanceFromRight = (UInt32Value)0U }; Wp.Extent extent4 = new Wp.Extent() { Cx = 9525L, Cy = 9525L }; Wp.EffectExtent effectExtent4 = new Wp.EffectExtent() { LeftEdge = 0L, TopEdge = 0L, RightEdge = 0L, BottomEdge = 0L }; Wp.DocProperties docProperties4 = new Wp.DocProperties() { Id = (UInt32Value)6U, Name = "Image 6", Description = "spacer" }; Wp.NonVisualGraphicFrameDrawingProperties nonVisualGraphicFrameDrawingProperties4 = new Wp.NonVisualGraphicFrameDrawingProperties(); A.GraphicFrameLocks graphicFrameLocks4 = new A.GraphicFrameLocks() { NoChangeAspect = true }; nonVisualGraphicFrameDrawingProperties4.Append(graphicFrameLocks4); A.Graphic graphic4 = new A.Graphic(); A.GraphicData graphicData4 = new A.GraphicData() { Uri = "http://schemas.openxmlformats.org/drawingml/2006/picture" }; Pic.Picture picture4 = new Pic.Picture(); Pic.NonVisualPictureProperties nonVisualPictureProperties4 = new Pic.NonVisualPictureProperties(); Pic.NonVisualDrawingProperties nonVisualDrawingProperties4 = new Pic.NonVisualDrawingProperties() { Id = (UInt32Value)0U, Name = "Picture 6", Description = "spacer" }; Pic.NonVisualPictureDrawingProperties nonVisualPictureDrawingProperties4 = new Pic.NonVisualPictureDrawingProperties(); A.PictureLocks pictureLocks4 = new A.PictureLocks() { NoChangeAspect = true, NoChangeArrowheads = true }; nonVisualPictureDrawingProperties4.Append(pictureLocks4); nonVisualPictureProperties4.Append(nonVisualDrawingProperties4); nonVisualPictureProperties4.Append(nonVisualPictureDrawingProperties4); Pic.BlipFill blipFill4 = new Pic.BlipFill(); A.Blip blip4 = new A.Blip() { Embed = "rId8" }; A.SourceRectangle sourceRectangle4 = new A.SourceRectangle(); A.Stretch stretch4 = new A.Stretch(); A.FillRectangle fillRectangle4 = new A.FillRectangle(); stretch4.Append(fillRectangle4); blipFill4.Append(blip4); blipFill4.Append(sourceRectangle4); blipFill4.Append(stretch4); Pic.ShapeProperties shapeProperties4 = new Pic.ShapeProperties() { BlackWhiteMode = A.BlackWhiteModeValues.Auto }; A.Transform2D transform2D4 = new A.Transform2D(); A.Offset offset4 = new A.Offset() { X = 0L, Y = 0L }; A.Extents extents4 = new A.Extents() { Cx = 9525L, Cy = 9525L }; transform2D4.Append(offset4); transform2D4.Append(extents4); A.PresetGeometry presetGeometry4 = new A.PresetGeometry() { Preset = A.ShapeTypeValues.Rectangle }; A.AdjustValueList adjustValueList4 = new A.AdjustValueList(); presetGeometry4.Append(adjustValueList4); A.NoFill noFill7 = new A.NoFill(); A.Outline outline4 = new A.Outline() { Width = 9525 }; A.NoFill noFill8 = new A.NoFill(); A.Miter miter4 = new A.Miter() { Limit = 800000 }; A.HeadEnd headEnd4 = new A.HeadEnd(); A.TailEnd tailEnd4 = new A.TailEnd(); outline4.Append(noFill8); outline4.Append(miter4); outline4.Append(headEnd4); outline4.Append(tailEnd4); shapeProperties4.Append(transform2D4); shapeProperties4.Append(presetGeometry4); shapeProperties4.Append(noFill7); shapeProperties4.Append(outline4); picture4.Append(nonVisualPictureProperties4); picture4.Append(blipFill4); picture4.Append(shapeProperties4); graphicData4.Append(picture4); graphic4.Append(graphicData4); inline4.Append(extent4); inline4.Append(effectExtent4); inline4.Append(docProperties4); inline4.Append(nonVisualGraphicFrameDrawingProperties4); inline4.Append(graphic4); drawing4.Append(inline4); run18.Append(runProperties10); run18.Append(drawing4); Run run19 = new Run() { RsidRunAddition = "00740A1C" }; RunProperties runProperties11 = new RunProperties(); Bold bold6 = new Bold(); NoProof noProof5 = new NoProof(); FontSize fontSize4 = new FontSize() { Val = "20" }; FontSizeComplexScript fontSizeComplexScript13 = new FontSizeComplexScript() { Val = "20" }; Languages languages5 = new Languages() { Val = "fr-CA", EastAsia = "fr-CA" }; runProperties11.Append(bold6); runProperties11.Append(noProof5); runProperties11.Append(fontSize4); runProperties11.Append(fontSizeComplexScript13); runProperties11.Append(languages5); Drawing drawing5 = new Drawing(); Wp.Inline inline5 = new Wp.Inline() { DistanceFromTop = (UInt32Value)0U, DistanceFromBottom = (UInt32Value)0U, DistanceFromLeft = (UInt32Value)0U, DistanceFromRight = (UInt32Value)0U }; Wp.Extent extent5 = new Wp.Extent() { Cx = 9525L, Cy = 9525L }; Wp.EffectExtent effectExtent5 = new Wp.EffectExtent() { LeftEdge = 0L, TopEdge = 0L, RightEdge = 0L, BottomEdge = 0L }; Wp.DocProperties docProperties5 = new Wp.DocProperties() { Id = (UInt32Value)7U, Name = "Image 7", Description = "spacer" }; Wp.NonVisualGraphicFrameDrawingProperties nonVisualGraphicFrameDrawingProperties5 = new Wp.NonVisualGraphicFrameDrawingProperties(); A.GraphicFrameLocks graphicFrameLocks5 = new A.GraphicFrameLocks() { NoChangeAspect = true }; nonVisualGraphicFrameDrawingProperties5.Append(graphicFrameLocks5); A.Graphic graphic5 = new A.Graphic(); A.GraphicData graphicData5 = new A.GraphicData() { Uri = "http://schemas.openxmlformats.org/drawingml/2006/picture" }; Pic.Picture picture5 = new Pic.Picture(); Pic.NonVisualPictureProperties nonVisualPictureProperties5 = new Pic.NonVisualPictureProperties(); Pic.NonVisualDrawingProperties nonVisualDrawingProperties5 = new Pic.NonVisualDrawingProperties() { Id = (UInt32Value)0U, Name = "Picture 7", Description = "spacer" }; Pic.NonVisualPictureDrawingProperties nonVisualPictureDrawingProperties5 = new Pic.NonVisualPictureDrawingProperties(); A.PictureLocks pictureLocks5 = new A.PictureLocks() { NoChangeAspect = true, NoChangeArrowheads = true }; nonVisualPictureDrawingProperties5.Append(pictureLocks5); nonVisualPictureProperties5.Append(nonVisualDrawingProperties5); nonVisualPictureProperties5.Append(nonVisualPictureDrawingProperties5); Pic.BlipFill blipFill5 = new Pic.BlipFill(); A.Blip blip5 = new A.Blip() { Embed = "rId8" }; A.SourceRectangle sourceRectangle5 = new A.SourceRectangle(); A.Stretch stretch5 = new A.Stretch(); A.FillRectangle fillRectangle5 = new A.FillRectangle(); stretch5.Append(fillRectangle5); blipFill5.Append(blip5); blipFill5.Append(sourceRectangle5); blipFill5.Append(stretch5); Pic.ShapeProperties shapeProperties5 = new Pic.ShapeProperties() { BlackWhiteMode = A.BlackWhiteModeValues.Auto }; A.Transform2D transform2D5 = new A.Transform2D(); A.Offset offset5 = new A.Offset() { X = 0L, Y = 0L }; A.Extents extents5 = new A.Extents() { Cx = 9525L, Cy = 9525L }; transform2D5.Append(offset5); transform2D5.Append(extents5); A.PresetGeometry presetGeometry5 = new A.PresetGeometry() { Preset = A.ShapeTypeValues.Rectangle }; A.AdjustValueList adjustValueList5 = new A.AdjustValueList(); presetGeometry5.Append(adjustValueList5); A.NoFill noFill9 = new A.NoFill(); A.Outline outline5 = new A.Outline() { Width = 9525 }; A.NoFill noFill10 = new A.NoFill(); A.Miter miter5 = new A.Miter() { Limit = 800000 }; A.HeadEnd headEnd5 = new A.HeadEnd(); A.TailEnd tailEnd5 = new A.TailEnd(); outline5.Append(noFill10); outline5.Append(miter5); outline5.Append(headEnd5); outline5.Append(tailEnd5); shapeProperties5.Append(transform2D5); shapeProperties5.Append(presetGeometry5); shapeProperties5.Append(noFill9); shapeProperties5.Append(outline5); picture5.Append(nonVisualPictureProperties5); picture5.Append(blipFill5); picture5.Append(shapeProperties5); graphicData5.Append(picture5); graphic5.Append(graphicData5); inline5.Append(extent5); inline5.Append(effectExtent5); inline5.Append(docProperties5); inline5.Append(nonVisualGraphicFrameDrawingProperties5); inline5.Append(graphic5); drawing5.Append(inline5); run19.Append(runProperties11); run19.Append(drawing5); Run run20 = new Run() { RsidRunAddition = "005546F4" }; Text text15 = new Text() { Space = SpaceProcessingModeValues.Preserve }; text15.Text = "0 to 0 bp "; run20.Append(text15); CustomXmlRun customXmlRun2 = new CustomXmlRun() { Uri = "http://hubblereports.com/namespace", Element = "TargetExcessReturnMaxCurrent" }; paragraph15.Append(paragraphProperties15); paragraph15.Append(run17); paragraph15.Append(run18); paragraph15.Append(run19); paragraph15.Append(run20); paragraph15.Append(customXmlRun2); Paragraph paragraph16 = new Paragraph() { RsidParagraphAddition = "002E7D22", RsidParagraphProperties = "00256073", RsidRunAdditionDefault = "00707FFA" }; ParagraphProperties paragraphProperties16 = new ParagraphProperties(); ParagraphStyleId paragraphStyleId16 = new ParagraphStyleId() { Val = "TableText" }; SpacingBetweenLines spacingBetweenLines13 = new SpacingBetweenLines() { Line = "240", LineRule = LineSpacingRuleValues.Auto }; ParagraphMarkRunProperties paragraphMarkRunProperties9 = new ParagraphMarkRunProperties(); FontSize fontSize5 = new FontSize() { Val = "20" }; FontSizeComplexScript fontSizeComplexScript14 = new FontSizeComplexScript() { Val = "20" }; paragraphMarkRunProperties9.Append(fontSize5); paragraphMarkRunProperties9.Append(fontSizeComplexScript14); paragraphProperties16.Append(paragraphStyleId16); paragraphProperties16.Append(spacingBetweenLines13); paragraphProperties16.Append(paragraphMarkRunProperties9); Run run21 = new Run() { RsidRunProperties = "00DC3ED5" }; RunProperties runProperties12 = new RunProperties(); Bold bold7 = new Bold(); runProperties12.Append(bold7); Text text16 = new Text(); text16.Text = "Target Tracking Error:"; run21.Append(runProperties12); run21.Append(text16); Run run22 = new Run() { RsidRunAddition = "00740A1C" }; RunProperties runProperties13 = new RunProperties(); Bold bold8 = new Bold(); NoProof noProof6 = new NoProof(); FontSize fontSize6 = new FontSize() { Val = "20" }; FontSizeComplexScript fontSizeComplexScript15 = new FontSizeComplexScript() { Val = "20" }; Languages languages6 = new Languages() { Val = "fr-CA", EastAsia = "fr-CA" }; runProperties13.Append(bold8); runProperties13.Append(noProof6); runProperties13.Append(fontSize6); runProperties13.Append(fontSizeComplexScript15); runProperties13.Append(languages6); Drawing drawing6 = new Drawing(); Wp.Inline inline6 = new Wp.Inline() { DistanceFromTop = (UInt32Value)0U, DistanceFromBottom = (UInt32Value)0U, DistanceFromLeft = (UInt32Value)0U, DistanceFromRight = (UInt32Value)0U }; Wp.Extent extent6 = new Wp.Extent() { Cx = 9525L, Cy = 9525L }; Wp.EffectExtent effectExtent6 = new Wp.EffectExtent() { LeftEdge = 0L, TopEdge = 0L, RightEdge = 0L, BottomEdge = 0L }; Wp.DocProperties docProperties6 = new Wp.DocProperties() { Id = (UInt32Value)8U, Name = "Image 8", Description = "spacer" }; Wp.NonVisualGraphicFrameDrawingProperties nonVisualGraphicFrameDrawingProperties6 = new Wp.NonVisualGraphicFrameDrawingProperties(); A.GraphicFrameLocks graphicFrameLocks6 = new A.GraphicFrameLocks() { NoChangeAspect = true }; nonVisualGraphicFrameDrawingProperties6.Append(graphicFrameLocks6); A.Graphic graphic6 = new A.Graphic(); A.GraphicData graphicData6 = new A.GraphicData() { Uri = "http://schemas.openxmlformats.org/drawingml/2006/picture" }; Pic.Picture picture6 = new Pic.Picture(); Pic.NonVisualPictureProperties nonVisualPictureProperties6 = new Pic.NonVisualPictureProperties(); Pic.NonVisualDrawingProperties nonVisualDrawingProperties6 = new Pic.NonVisualDrawingProperties() { Id = (UInt32Value)0U, Name = "Picture 8", Description = "spacer" }; Pic.NonVisualPictureDrawingProperties nonVisualPictureDrawingProperties6 = new Pic.NonVisualPictureDrawingProperties(); A.PictureLocks pictureLocks6 = new A.PictureLocks() { NoChangeAspect = true, NoChangeArrowheads = true }; nonVisualPictureDrawingProperties6.Append(pictureLocks6); nonVisualPictureProperties6.Append(nonVisualDrawingProperties6); nonVisualPictureProperties6.Append(nonVisualPictureDrawingProperties6); Pic.BlipFill blipFill6 = new Pic.BlipFill(); A.Blip blip6 = new A.Blip() { Embed = "rId8" }; A.SourceRectangle sourceRectangle6 = new A.SourceRectangle(); A.Stretch stretch6 = new A.Stretch(); A.FillRectangle fillRectangle6 = new A.FillRectangle(); stretch6.Append(fillRectangle6); blipFill6.Append(blip6); blipFill6.Append(sourceRectangle6); blipFill6.Append(stretch6); Pic.ShapeProperties shapeProperties6 = new Pic.ShapeProperties() { BlackWhiteMode = A.BlackWhiteModeValues.Auto }; A.Transform2D transform2D6 = new A.Transform2D(); A.Offset offset6 = new A.Offset() { X = 0L, Y = 0L }; A.Extents extents6 = new A.Extents() { Cx = 9525L, Cy = 9525L }; transform2D6.Append(offset6); transform2D6.Append(extents6); A.PresetGeometry presetGeometry6 = new A.PresetGeometry() { Preset = A.ShapeTypeValues.Rectangle }; A.AdjustValueList adjustValueList6 = new A.AdjustValueList(); presetGeometry6.Append(adjustValueList6); A.NoFill noFill11 = new A.NoFill(); A.Outline outline6 = new A.Outline() { Width = 9525 }; A.NoFill noFill12 = new A.NoFill(); A.Miter miter6 = new A.Miter() { Limit = 800000 }; A.HeadEnd headEnd6 = new A.HeadEnd(); A.TailEnd tailEnd6 = new A.TailEnd(); outline6.Append(noFill12); outline6.Append(miter6); outline6.Append(headEnd6); outline6.Append(tailEnd6); shapeProperties6.Append(transform2D6); shapeProperties6.Append(presetGeometry6); shapeProperties6.Append(noFill11); shapeProperties6.Append(outline6); picture6.Append(nonVisualPictureProperties6); picture6.Append(blipFill6); picture6.Append(shapeProperties6); graphicData6.Append(picture6); graphic6.Append(graphicData6); inline6.Append(extent6); inline6.Append(effectExtent6); inline6.Append(docProperties6); inline6.Append(nonVisualGraphicFrameDrawingProperties6); inline6.Append(graphic6); drawing6.Append(inline6); run22.Append(runProperties13); run22.Append(drawing6); Run run23 = new Run() { RsidRunAddition = "005546F4" }; Text text17 = new Text() { Space = SpaceProcessingModeValues.Preserve }; text17.Text = " 0 to 0 bp"; run23.Append(text17); CustomXmlRun customXmlRun3 = new CustomXmlRun() { Uri = "http://hubblereports.com/namespace", Element = "TargetTrackingErrorMaxCurrent" }; paragraph16.Append(paragraphProperties16); paragraph16.Append(run21); paragraph16.Append(run22); paragraph16.Append(run23); paragraph16.Append(customXmlRun3); Paragraph paragraph17 = new Paragraph() { RsidParagraphAddition = "002E7D22", RsidParagraphProperties = "00256073", RsidRunAdditionDefault = "00707FFA" }; ParagraphProperties paragraphProperties17 = new ParagraphProperties(); ParagraphStyleId paragraphStyleId17 = new ParagraphStyleId() { Val = "TableText" }; SpacingBetweenLines spacingBetweenLines14 = new SpacingBetweenLines() { Line = "240", LineRule = LineSpacingRuleValues.Auto }; ParagraphMarkRunProperties paragraphMarkRunProperties10 = new ParagraphMarkRunProperties(); FontSize fontSize7 = new FontSize() { Val = "20" }; FontSizeComplexScript fontSizeComplexScript16 = new FontSizeComplexScript() { Val = "20" }; paragraphMarkRunProperties10.Append(fontSize7); paragraphMarkRunProperties10.Append(fontSizeComplexScript16); paragraphProperties17.Append(paragraphStyleId17); paragraphProperties17.Append(spacingBetweenLines14); paragraphProperties17.Append(paragraphMarkRunProperties10); Run run24 = new Run() { RsidRunProperties = "00DC3ED5" }; RunProperties runProperties14 = new RunProperties(); Bold bold9 = new Bold(); runProperties14.Append(bold9); Text text18 = new Text(); text18.Text = "Time Period:"; run24.Append(runProperties14); run24.Append(text18); Run run25 = new Run() { RsidRunAddition = "00740A1C" }; RunProperties runProperties15 = new RunProperties(); Bold bold10 = new Bold(); NoProof noProof7 = new NoProof(); FontSize fontSize8 = new FontSize() { Val = "20" }; FontSizeComplexScript fontSizeComplexScript17 = new FontSizeComplexScript() { Val = "20" }; Languages languages7 = new Languages() { Val = "fr-CA", EastAsia = "fr-CA" }; runProperties15.Append(bold10); runProperties15.Append(noProof7); runProperties15.Append(fontSize8); runProperties15.Append(fontSizeComplexScript17); runProperties15.Append(languages7); Drawing drawing7 = new Drawing(); Wp.Inline inline7 = new Wp.Inline() { DistanceFromTop = (UInt32Value)0U, DistanceFromBottom = (UInt32Value)0U, DistanceFromLeft = (UInt32Value)0U, DistanceFromRight = (UInt32Value)0U }; Wp.Extent extent7 = new Wp.Extent() { Cx = 9525L, Cy = 9525L }; Wp.EffectExtent effectExtent7 = new Wp.EffectExtent() { LeftEdge = 0L, TopEdge = 0L, RightEdge = 0L, BottomEdge = 0L }; Wp.DocProperties docProperties7 = new Wp.DocProperties() { Id = (UInt32Value)9U, Name = "Image 9", Description = "spacer" }; Wp.NonVisualGraphicFrameDrawingProperties nonVisualGraphicFrameDrawingProperties7 = new Wp.NonVisualGraphicFrameDrawingProperties(); A.GraphicFrameLocks graphicFrameLocks7 = new A.GraphicFrameLocks() { NoChangeAspect = true }; nonVisualGraphicFrameDrawingProperties7.Append(graphicFrameLocks7); A.Graphic graphic7 = new A.Graphic(); A.GraphicData graphicData7 = new A.GraphicData() { Uri = "http://schemas.openxmlformats.org/drawingml/2006/picture" }; Pic.Picture picture7 = new Pic.Picture(); Pic.NonVisualPictureProperties nonVisualPictureProperties7 = new Pic.NonVisualPictureProperties(); Pic.NonVisualDrawingProperties nonVisualDrawingProperties7 = new Pic.NonVisualDrawingProperties() { Id = (UInt32Value)0U, Name = "Picture 9", Description = "spacer" }; Pic.NonVisualPictureDrawingProperties nonVisualPictureDrawingProperties7 = new Pic.NonVisualPictureDrawingProperties(); A.PictureLocks pictureLocks7 = new A.PictureLocks() { NoChangeAspect = true, NoChangeArrowheads = true }; nonVisualPictureDrawingProperties7.Append(pictureLocks7); nonVisualPictureProperties7.Append(nonVisualDrawingProperties7); nonVisualPictureProperties7.Append(nonVisualPictureDrawingProperties7); Pic.BlipFill blipFill7 = new Pic.BlipFill(); A.Blip blip7 = new A.Blip() { Embed = "rId8" }; A.SourceRectangle sourceRectangle7 = new A.SourceRectangle(); A.Stretch stretch7 = new A.Stretch(); A.FillRectangle fillRectangle7 = new A.FillRectangle(); stretch7.Append(fillRectangle7); blipFill7.Append(blip7); blipFill7.Append(sourceRectangle7); blipFill7.Append(stretch7); Pic.ShapeProperties shapeProperties7 = new Pic.ShapeProperties() { BlackWhiteMode = A.BlackWhiteModeValues.Auto }; A.Transform2D transform2D7 = new A.Transform2D(); A.Offset offset7 = new A.Offset() { X = 0L, Y = 0L }; A.Extents extents7 = new A.Extents() { Cx = 9525L, Cy = 9525L }; transform2D7.Append(offset7); transform2D7.Append(extents7); A.PresetGeometry presetGeometry7 = new A.PresetGeometry() { Preset = A.ShapeTypeValues.Rectangle }; A.AdjustValueList adjustValueList7 = new A.AdjustValueList(); presetGeometry7.Append(adjustValueList7); A.NoFill noFill13 = new A.NoFill(); A.Outline outline7 = new A.Outline() { Width = 9525 }; A.NoFill noFill14 = new A.NoFill(); A.Miter miter7 = new A.Miter() { Limit = 800000 }; A.HeadEnd headEnd7 = new A.HeadEnd(); A.TailEnd tailEnd7 = new A.TailEnd(); outline7.Append(noFill14); outline7.Append(miter7); outline7.Append(headEnd7); outline7.Append(tailEnd7); shapeProperties7.Append(transform2D7); shapeProperties7.Append(presetGeometry7); shapeProperties7.Append(noFill13); shapeProperties7.Append(outline7); picture7.Append(nonVisualPictureProperties7); picture7.Append(blipFill7); picture7.Append(shapeProperties7); graphicData7.Append(picture7); graphic7.Append(graphicData7); inline7.Append(extent7); inline7.Append(effectExtent7); inline7.Append(docProperties7); inline7.Append(nonVisualGraphicFrameDrawingProperties7); inline7.Append(graphic7); drawing7.Append(inline7); run25.Append(runProperties15); run25.Append(drawing7); CustomXmlRun customXmlRun4 = new CustomXmlRun() { Uri = "http://hubblereports.com/namespace", Element = "TimePeriodCurrent" }; Run run26 = new Run() { RsidRunAddition = "005546F4" }; Text text19 = new Text(); text19.Text = "-"; run26.Append(text19); customXmlRun4.Append(run26); paragraph17.Append(paragraphProperties17); paragraph17.Append(run24); paragraph17.Append(run25); paragraph17.Append(customXmlRun4); Paragraph paragraph18 = new Paragraph() { RsidParagraphAddition = "002E7D22", RsidParagraphProperties = "005546F4", RsidRunAdditionDefault = "00707FFA" }; ParagraphProperties paragraphProperties18 = new ParagraphProperties(); ParagraphStyleId paragraphStyleId18 = new ParagraphStyleId() { Val = "TableText" }; SpacingBetweenLines spacingBetweenLines15 = new SpacingBetweenLines() { Line = "240", LineRule = LineSpacingRuleValues.Auto }; ParagraphMarkRunProperties paragraphMarkRunProperties11 = new ParagraphMarkRunProperties(); FontSizeComplexScript fontSizeComplexScript18 = new FontSizeComplexScript() { Val = "18" }; paragraphMarkRunProperties11.Append(fontSizeComplexScript18); paragraphProperties18.Append(paragraphStyleId18); paragraphProperties18.Append(spacingBetweenLines15); paragraphProperties18.Append(paragraphMarkRunProperties11); Run run27 = new Run() { RsidRunProperties = "00DC3ED5" }; RunProperties runProperties16 = new RunProperties(); Bold bold11 = new Bold(); runProperties16.Append(bold11); Text text20 = new Text(); text20.Text = "Russell-Assigned Benchmark:"; run27.Append(runProperties16); run27.Append(text20); Run run28 = new Run() { RsidRunAddition = "00740A1C" }; RunProperties runProperties17 = new RunProperties(); NoProof noProof8 = new NoProof(); Languages languages8 = new Languages() { Val = "fr-CA", EastAsia = "fr-CA" }; runProperties17.Append(noProof8); runProperties17.Append(languages8); Drawing drawing8 = new Drawing(); Wp.Inline inline8 = new Wp.Inline() { DistanceFromTop = (UInt32Value)0U, DistanceFromBottom = (UInt32Value)0U, DistanceFromLeft = (UInt32Value)0U, DistanceFromRight = (UInt32Value)0U }; Wp.Extent extent8 = new Wp.Extent() { Cx = 9525L, Cy = 9525L }; Wp.EffectExtent effectExtent8 = new Wp.EffectExtent() { LeftEdge = 0L, TopEdge = 0L, RightEdge = 0L, BottomEdge = 0L }; Wp.DocProperties docProperties8 = new Wp.DocProperties() { Id = (UInt32Value)10U, Name = "Image 10", Description = "spacer" }; Wp.NonVisualGraphicFrameDrawingProperties nonVisualGraphicFrameDrawingProperties8 = new Wp.NonVisualGraphicFrameDrawingProperties(); A.GraphicFrameLocks graphicFrameLocks8 = new A.GraphicFrameLocks() { NoChangeAspect = true }; nonVisualGraphicFrameDrawingProperties8.Append(graphicFrameLocks8); A.Graphic graphic8 = new A.Graphic(); A.GraphicData graphicData8 = new A.GraphicData() { Uri = "http://schemas.openxmlformats.org/drawingml/2006/picture" }; Pic.Picture picture8 = new Pic.Picture(); Pic.NonVisualPictureProperties nonVisualPictureProperties8 = new Pic.NonVisualPictureProperties(); Pic.NonVisualDrawingProperties nonVisualDrawingProperties8 = new Pic.NonVisualDrawingProperties() { Id = (UInt32Value)0U, Name = "Picture 10", Description = "spacer" }; Pic.NonVisualPictureDrawingProperties nonVisualPictureDrawingProperties8 = new Pic.NonVisualPictureDrawingProperties(); A.PictureLocks pictureLocks8 = new A.PictureLocks() { NoChangeAspect = true, NoChangeArrowheads = true }; nonVisualPictureDrawingProperties8.Append(pictureLocks8); nonVisualPictureProperties8.Append(nonVisualDrawingProperties8); nonVisualPictureProperties8.Append(nonVisualPictureDrawingProperties8); Pic.BlipFill blipFill8 = new Pic.BlipFill(); A.Blip blip8 = new A.Blip() { Embed = "rId8" }; A.SourceRectangle sourceRectangle8 = new A.SourceRectangle(); A.Stretch stretch8 = new A.Stretch(); A.FillRectangle fillRectangle8 = new A.FillRectangle(); stretch8.Append(fillRectangle8); blipFill8.Append(blip8); blipFill8.Append(sourceRectangle8); blipFill8.Append(stretch8); Pic.ShapeProperties shapeProperties8 = new Pic.ShapeProperties() { BlackWhiteMode = A.BlackWhiteModeValues.Auto }; A.Transform2D transform2D8 = new A.Transform2D(); A.Offset offset8 = new A.Offset() { X = 0L, Y = 0L }; A.Extents extents8 = new A.Extents() { Cx = 9525L, Cy = 9525L }; transform2D8.Append(offset8); transform2D8.Append(extents8); A.PresetGeometry presetGeometry8 = new A.PresetGeometry() { Preset = A.ShapeTypeValues.Rectangle }; A.AdjustValueList adjustValueList8 = new A.AdjustValueList(); presetGeometry8.Append(adjustValueList8); A.NoFill noFill15 = new A.NoFill(); A.Outline outline8 = new A.Outline() { Width = 9525 }; A.NoFill noFill16 = new A.NoFill(); A.Miter miter8 = new A.Miter() { Limit = 800000 }; A.HeadEnd headEnd8 = new A.HeadEnd(); A.TailEnd tailEnd8 = new A.TailEnd(); outline8.Append(noFill16); outline8.Append(miter8); outline8.Append(headEnd8); outline8.Append(tailEnd8); shapeProperties8.Append(transform2D8); shapeProperties8.Append(presetGeometry8); shapeProperties8.Append(noFill15); shapeProperties8.Append(outline8); picture8.Append(nonVisualPictureProperties8); picture8.Append(blipFill8); picture8.Append(shapeProperties8); graphicData8.Append(picture8); graphic8.Append(graphicData8); inline8.Append(extent8); inline8.Append(effectExtent8); inline8.Append(docProperties8); inline8.Append(nonVisualGraphicFrameDrawingProperties8); inline8.Append(graphic8); drawing8.Append(inline8); run28.Append(runProperties17); run28.Append(drawing8); CustomXmlRun customXmlRun5 = new CustomXmlRun() { Uri = "http://hubblereports.com/namespace", Element = "RussellBenchmark" }; Run run29 = new Run() { RsidRunAddition = "005546F4" }; Text text21 = new Text(); text21.Text = "-"; run29.Append(text21); customXmlRun5.Append(run29); paragraph18.Append(paragraphProperties18); paragraph18.Append(run27); paragraph18.Append(run28); paragraph18.Append(customXmlRun5); tableCell11.Append(tableCellProperties11); tableCell11.Append(paragraph14); tableCell11.Append(paragraph15); tableCell11.Append(paragraph16); tableCell11.Append(paragraph17); tableCell11.Append(paragraph18); tableRow3.Append(tableCell9); tableRow3.Append(tableCell10); tableRow3.Append(tableCell11); table2.Append(tableProperties2); table2.Append(tableGrid2); table2.Append(tableRow3); customXmlBlock5.Append(paragraph11); customXmlBlock5.Append(table2); Paragraph paragraph19 = new Paragraph() { RsidParagraphMarkRevision = "00A6171D", RsidParagraphAddition = "00F342A0", RsidParagraphProperties = "00397A9E", RsidRunAdditionDefault = "00F342A0" }; ParagraphProperties paragraphProperties19 = new ParagraphProperties(); ParagraphStyleId paragraphStyleId19 = new ParagraphStyleId() { Val = "StyleProductsReviewedHeading4ptBefore15ptAfter0pt" }; paragraphProperties19.Append(paragraphStyleId19); paragraph19.Append(paragraphProperties19); Paragraph paragraphDiscussionTitle = CreateTopicTitle("DISCUSSION", null); var paragraphsDiscussionContent = CreateTopicText(mainDocumentPart1, Discussion); CustomXmlBlock customXmlBlock8 = new CustomXmlBlock() { Uri = "http://hubblereports.com/namespace", Element = "category" }; Paragraph paragraphInvestmentStaffTitle = CreateTopicTitle("INVESTMENT STAFF", InvestmentStaff.Rank.ToString()); var paragraphsInvestmentStaffContent = CreateTopicText(mainDocumentPart1, InvestmentStaff.Content); Paragraph paragraphOrganizationalStabilityTitle = CreateTopicTitle("ORGANIZATIONAL STABILITY", OrganizationalStability.Rank.ToString()); var paragraphsOrganizationalStabilityContent = CreateTopicText(mainDocumentPart1, OrganizationalStability.Content); Paragraph paragraphAssetAllocationTitle = CreateTopicTitle("ASSET ALLOCATION", AssetAllocation.Rank.ToString()); var paragraphsAssetAllocationContent = CreateTopicText(mainDocumentPart1, AssetAllocation.Content); Paragraph paragraph23 = new Paragraph() { RsidParagraphAddition = "00EE7B69", RsidParagraphProperties = "00C32704", RsidRunAdditionDefault = "00957E57" }; customXmlBlock3.Append(customXmlBlock4); customXmlBlock3.Append(paragraph10); customXmlBlock3.Append(customXmlBlock5); customXmlBlock3.Append(paragraph19); customXmlBlock3.Append(paragraphDiscussionTitle); customXmlBlock3.Append(paragraphsDiscussionContent.ToArray()); customXmlBlock3.Append(paragraphInvestmentStaffTitle); customXmlBlock3.Append(paragraphsInvestmentStaffContent.ToArray()); customXmlBlock3.Append(paragraphOrganizationalStabilityTitle); customXmlBlock3.Append(paragraphsOrganizationalStabilityContent.ToArray()); customXmlBlock3.Append(paragraphAssetAllocationTitle); customXmlBlock3.Append(paragraphsAssetAllocationContent.ToArray()); customXmlBlock3.Append(paragraph23); customXmlBlock2.Append(customXmlBlock3); CustomXmlBlock customXmlBlock10 = new CustomXmlBlock() { Uri = "http://hubblereports.com/namespace", Element = "footer" }; CustomXmlBlock customXmlBlock11 = new CustomXmlBlock() { Uri = "http://hubblereports.com/namespace", Element = "Headline" }; Paragraph paragraph24 = new Paragraph() { RsidParagraphAddition = "000A24FF", RsidParagraphProperties = "00E560D4", RsidRunAdditionDefault = "00707FFA" }; ParagraphProperties paragraphProperties23 = new ParagraphProperties(); ParagraphStyleId paragraphStyleId23 = new ParagraphStyleId() { Val = "DislaimerHeading" }; WidowControl widowControl1 = new WidowControl() { Val = false }; paragraphProperties23.Append(paragraphStyleId23); paragraphProperties23.Append(widowControl1); Run run37 = new Run() { RsidRunProperties = "00C62467" }; Text text27 = new Text(); text27.Text = "Healine"; run37.Append(text27); paragraph24.Append(paragraphProperties23); paragraph24.Append(run37); Paragraph paragraph25 = new Paragraph() { RsidParagraphAddition = "00E70E3A", RsidParagraphProperties = "00E560D4", RsidRunAdditionDefault = "00957E57" }; ParagraphProperties paragraphProperties24 = new ParagraphProperties(); ParagraphStyleId paragraphStyleId24 = new ParagraphStyleId() { Val = "Disclaimer" }; KeepNext keepNext1 = new KeepNext(); WidowControl widowControl2 = new WidowControl() { Val = false }; SpacingBetweenLines spacingBetweenLines17 = new SpacingBetweenLines() { Before = "80" }; paragraphProperties24.Append(paragraphStyleId24); paragraphProperties24.Append(keepNext1); paragraphProperties24.Append(widowControl2); paragraphProperties24.Append(spacingBetweenLines17); CustomXmlRun customXmlRun8 = new CustomXmlRun() { Uri = "http://hubblereports.com/namespace", Element = "LongDisclaimer" }; Run run38 = new Run() { RsidRunProperties = "00C62467", RsidRunAddition = "00707FFA" }; Text text28 = new Text(); text28.Text = "Long Disclaimer"; run38.Append(text28); customXmlRun8.Append(run38); paragraph25.Append(paragraphProperties24); paragraph25.Append(customXmlRun8); customXmlBlock11.Append(paragraph24); customXmlBlock11.Append(paragraph25); customXmlBlock10.Append(customXmlBlock11); CustomXmlBlock customXmlBlock12 = new CustomXmlBlock() { Uri = "http://hubblereports.com/namespace", Element = "PageBreak" }; Paragraph paragraph26 = new Paragraph() { RsidParagraphMarkRevision = "00233025", RsidParagraphAddition = "00E70E3A", RsidParagraphProperties = "00090FFC", RsidRunAdditionDefault = "00957E57" }; ParagraphProperties paragraphProperties25 = new ParagraphProperties(); KeepNext keepNext2 = new KeepNext(); KeepLines keepLines1 = new KeepLines(); ParagraphMarkRunProperties paragraphMarkRunProperties14 = new ParagraphMarkRunProperties(); RunStyle runStyle6 = new RunStyle() { Val = "StyleBodoniMT" }; paragraphMarkRunProperties14.Append(runStyle6); paragraphProperties25.Append(keepNext2); paragraphProperties25.Append(keepLines1); paragraphProperties25.Append(paragraphMarkRunProperties14); paragraph26.Append(paragraphProperties25); customXmlBlock12.Append(paragraph26); customXmlBlock1.Append(customXmlBlock2); customXmlBlock1.Append(customXmlBlock10); customXmlBlock1.Append(customXmlBlock12); SectionProperties sectionProperties1 = new SectionProperties() { RsidRPr = "00233025", RsidR = "00E70E3A", RsidSect = "00C913B8" }; HeaderReference headerReference1 = new HeaderReference() { Type = HeaderFooterValues.Default, Id = "rId10" }; FooterReference footerReference1 = new FooterReference() { Type = HeaderFooterValues.Default, Id = "rId11" }; HeaderReference headerReference2 = new HeaderReference() { Type = HeaderFooterValues.First, Id = "rId12" }; FooterReference footerReference2 = new FooterReference() { Type = HeaderFooterValues.First, Id = "rId13" }; SectionType sectionType1 = new SectionType() { Val = SectionMarkValues.Continuous }; PageSize pageSize1 = new PageSize() { Width = (UInt32Value)12242U, Height = (UInt32Value)15842U, Code = (UInt16Value)1U }; PageMargin pageMargin1 = new PageMargin() { Top = 1440, Right = (UInt32Value)720U, Bottom = 1440, Left = (UInt32Value)720U, Header = (UInt32Value)187U, Footer = (UInt32Value)115U, Gutter = (UInt32Value)0U }; Columns columns1 = new Columns() { Space = "708" }; TitlePage titlePage1 = new TitlePage(); DocGrid docGrid1 = new DocGrid() { LinePitch = 360 }; sectionProperties1.Append(headerReference1); sectionProperties1.Append(footerReference1); sectionProperties1.Append(headerReference2); sectionProperties1.Append(footerReference2); sectionProperties1.Append(sectionType1); sectionProperties1.Append(pageSize1); sectionProperties1.Append(pageMargin1); sectionProperties1.Append(columns1); sectionProperties1.Append(titlePage1); sectionProperties1.Append(docGrid1); body1.Append(customXmlBlock1); body1.Append(sectionProperties1); document1.Append(body1); mainDocumentPart1.Document = document1; }
// Generates content of headerPart2. private void GenerateHeaderPart2Content(HeaderPart headerPart2) { Header header2 = new Header(); Paragraph paragraph51 = new Paragraph() { RsidParagraphAddition = "00C913B8", RsidParagraphProperties = "00C913B8", RsidRunAdditionDefault = "00740A1C" }; ParagraphProperties paragraphProperties46 = new ParagraphProperties(); ParagraphStyleId paragraphStyleId44 = new ParagraphStyleId() { Val = "En-tte" }; ParagraphBorders paragraphBorders14 = new ParagraphBorders(); BottomBorder bottomBorder13 = new BottomBorder() { Val = BorderValues.None, Color = "auto", Size = (UInt32Value)0U, Space = (UInt32Value)0U }; paragraphBorders14.Append(bottomBorder13); SpacingBetweenLines spacingBetweenLines51 = new SpacingBetweenLines() { After = "60" }; ParagraphMarkRunProperties paragraphMarkRunProperties17 = new ParagraphMarkRunProperties(); RunStyle runStyle10 = new RunStyle() { Val = "DateCar" }; RunFonts runFonts52 = new RunFonts() { EastAsia = "MS Mincho" }; FontSize fontSize49 = new FontSize() { Val = "20" }; FontSizeComplexScript fontSizeComplexScript50 = new FontSizeComplexScript() { Val = "20" }; paragraphMarkRunProperties17.Append(runStyle10); paragraphMarkRunProperties17.Append(runFonts52); paragraphMarkRunProperties17.Append(fontSize49); paragraphMarkRunProperties17.Append(fontSizeComplexScript50); paragraphProperties46.Append(paragraphStyleId44); paragraphProperties46.Append(paragraphBorders14); paragraphProperties46.Append(spacingBetweenLines51); paragraphProperties46.Append(paragraphMarkRunProperties17); Run run54 = new Run(); RunProperties runProperties28 = new RunProperties(); NoProof noProof15 = new NoProof(); Languages languages34 = new Languages() { Val = "fr-CA", EastAsia = "fr-CA" }; runProperties28.Append(noProof15); runProperties28.Append(languages34); Drawing drawing15 = new Drawing(); Wp.Anchor anchor4 = new Wp.Anchor() { DistanceFromTop = (UInt32Value)0U, DistanceFromBottom = (UInt32Value)0U, DistanceFromLeft = (UInt32Value)114300U, DistanceFromRight = (UInt32Value)114300U, SimplePos = false, RelativeHeight = (UInt32Value)251659264U, BehindDoc = true, Locked = false, LayoutInCell = true, AllowOverlap = true }; Wp.SimplePosition simplePosition4 = new Wp.SimplePosition() { X = 0L, Y = 0L }; Wp.HorizontalPosition horizontalPosition4 = new Wp.HorizontalPosition() { RelativeFrom = Wp.HorizontalRelativePositionValues.Column }; Wp.PositionOffset positionOffset7 = new Wp.PositionOffset(); positionOffset7.Text = "8890"; horizontalPosition4.Append(positionOffset7); Wp.VerticalPosition verticalPosition4 = new Wp.VerticalPosition() { RelativeFrom = Wp.VerticalRelativePositionValues.Paragraph }; Wp.PositionOffset positionOffset8 = new Wp.PositionOffset(); positionOffset8.Text = "8890"; verticalPosition4.Append(positionOffset8); Wp.Extent extent15 = new Wp.Extent() { Cx = 6848475L, Cy = 438150L }; Wp.EffectExtent effectExtent15 = new Wp.EffectExtent() { LeftEdge = 19050L, TopEdge = 0L, RightEdge = 9525L, BottomEdge = 0L }; Wp.WrapNone wrapNone4 = new Wp.WrapNone(); Wp.DocProperties docProperties15 = new Wp.DocProperties() { Id = (UInt32Value)65U, Name = "Image 65", Description = "RADAR_Opinion_Page2_BNR" }; Wp.NonVisualGraphicFrameDrawingProperties nonVisualGraphicFrameDrawingProperties15 = new Wp.NonVisualGraphicFrameDrawingProperties(); A.GraphicFrameLocks graphicFrameLocks15 = new A.GraphicFrameLocks() { NoChangeAspect = true }; nonVisualGraphicFrameDrawingProperties15.Append(graphicFrameLocks15); A.Graphic graphic15 = new A.Graphic(); A.GraphicData graphicData15 = new A.GraphicData() { Uri = "http://schemas.openxmlformats.org/drawingml/2006/picture" }; Pic.Picture picture15 = new Pic.Picture(); Pic.NonVisualPictureProperties nonVisualPictureProperties15 = new Pic.NonVisualPictureProperties(); Pic.NonVisualDrawingProperties nonVisualDrawingProperties15 = new Pic.NonVisualDrawingProperties() { Id = (UInt32Value)0U, Name = "Picture 65", Description = "RADAR_Opinion_Page2_BNR" }; Pic.NonVisualPictureDrawingProperties nonVisualPictureDrawingProperties15 = new Pic.NonVisualPictureDrawingProperties(); A.PictureLocks pictureLocks15 = new A.PictureLocks() { NoChangeAspect = true, NoChangeArrowheads = true }; nonVisualPictureDrawingProperties15.Append(pictureLocks15); nonVisualPictureProperties15.Append(nonVisualDrawingProperties15); nonVisualPictureProperties15.Append(nonVisualPictureDrawingProperties15); Pic.BlipFill blipFill15 = new Pic.BlipFill(); A.Blip blip15 = new A.Blip() { Embed = "rId1" }; A.SourceRectangle sourceRectangle15 = new A.SourceRectangle(); A.Stretch stretch15 = new A.Stretch(); A.FillRectangle fillRectangle15 = new A.FillRectangle(); stretch15.Append(fillRectangle15); blipFill15.Append(blip15); blipFill15.Append(sourceRectangle15); blipFill15.Append(stretch15); Pic.ShapeProperties shapeProperties15 = new Pic.ShapeProperties() { BlackWhiteMode = A.BlackWhiteModeValues.Auto }; A.Transform2D transform2D15 = new A.Transform2D(); A.Offset offset15 = new A.Offset() { X = 0L, Y = 0L }; A.Extents extents15 = new A.Extents() { Cx = 6848475L, Cy = 438150L }; transform2D15.Append(offset15); transform2D15.Append(extents15); A.PresetGeometry presetGeometry15 = new A.PresetGeometry() { Preset = A.ShapeTypeValues.Rectangle }; A.AdjustValueList adjustValueList15 = new A.AdjustValueList(); presetGeometry15.Append(adjustValueList15); A.NoFill noFill26 = new A.NoFill(); shapeProperties15.Append(transform2D15); shapeProperties15.Append(presetGeometry15); shapeProperties15.Append(noFill26); picture15.Append(nonVisualPictureProperties15); picture15.Append(blipFill15); picture15.Append(shapeProperties15); graphicData15.Append(picture15); graphic15.Append(graphicData15); anchor4.Append(simplePosition4); anchor4.Append(horizontalPosition4); anchor4.Append(verticalPosition4); anchor4.Append(extent15); anchor4.Append(effectExtent15); anchor4.Append(wrapNone4); anchor4.Append(docProperties15); anchor4.Append(nonVisualGraphicFrameDrawingProperties15); anchor4.Append(graphic15); drawing15.Append(anchor4); run54.Append(runProperties28); run54.Append(drawing15); paragraph51.Append(paragraphProperties46); paragraph51.Append(run54); CustomXmlBlock customXmlBlock23 = new CustomXmlBlock() { Uri = "http://hubblereports.com/namespace", Element = "reportdoc" }; CustomXmlBlock customXmlBlock24 = new CustomXmlBlock() { Uri = "http://hubblereports.com/namespace", Element = "header" }; CustomXmlBlock customXmlBlock25 = new CustomXmlBlock() { Uri = "http://hubblereports.com/namespace", Element = "ReportDate" }; Paragraph paragraph52 = new Paragraph() { RsidParagraphMarkRevision = "006B1D99", RsidParagraphAddition = "003907B3", RsidParagraphProperties = "003907B3", RsidRunAdditionDefault = "003907B3" }; ParagraphProperties paragraphProperties47 = new ParagraphProperties(); ParagraphStyleId paragraphStyleId45 = new ParagraphStyleId() { Val = "En-tte" }; ParagraphBorders paragraphBorders15 = new ParagraphBorders(); BottomBorder bottomBorder14 = new BottomBorder() { Val = BorderValues.None, Color = "auto", Size = (UInt32Value)0U, Space = (UInt32Value)0U }; paragraphBorders15.Append(bottomBorder14); SpacingBetweenLines spacingBetweenLines52 = new SpacingBetweenLines() { After = "60" }; ParagraphMarkRunProperties paragraphMarkRunProperties18 = new ParagraphMarkRunProperties(); RunStyle runStyle11 = new RunStyle() { Val = "DateCar" }; RunFonts runFonts53 = new RunFonts() { EastAsia = "MS Mincho" }; FontSize fontSize50 = new FontSize() { Val = "20" }; FontSizeComplexScript fontSizeComplexScript51 = new FontSizeComplexScript() { Val = "20" }; paragraphMarkRunProperties18.Append(runStyle11); paragraphMarkRunProperties18.Append(runFonts53); paragraphMarkRunProperties18.Append(fontSize50); paragraphMarkRunProperties18.Append(fontSizeComplexScript51); paragraphProperties47.Append(paragraphStyleId45); paragraphProperties47.Append(paragraphBorders15); paragraphProperties47.Append(spacingBetweenLines52); paragraphProperties47.Append(paragraphMarkRunProperties18); Run run55 = new Run() { RsidRunProperties = "006B1D99" }; RunProperties runProperties29 = new RunProperties(); RunStyle runStyle12 = new RunStyle() { Val = "DateCar" }; RunFonts runFonts54 = new RunFonts() { EastAsia = "MS Mincho" }; FontSize fontSize51 = new FontSize() { Val = "20" }; FontSizeComplexScript fontSizeComplexScript52 = new FontSizeComplexScript() { Val = "20" }; runProperties29.Append(runStyle12); runProperties29.Append(runFonts54); runProperties29.Append(fontSize51); runProperties29.Append(fontSizeComplexScript52); Text text33 = new Text(); text33.Text = "NOVEMBER 30, 2005"; run55.Append(runProperties29); run55.Append(text33); paragraph52.Append(paragraphProperties47); paragraph52.Append(run55); customXmlBlock25.Append(paragraph52); Paragraph paragraph53 = new Paragraph() { RsidParagraphMarkRevision = "00F34666", RsidParagraphAddition = "002E7D22", RsidParagraphProperties = "00C913B8", RsidRunAdditionDefault = "00740A1C" }; ParagraphProperties paragraphProperties48 = new ParagraphProperties(); ParagraphStyleId paragraphStyleId46 = new ParagraphStyleId() { Val = "Titre1" }; paragraphProperties48.Append(paragraphStyleId46); Run run56 = new Run(); Text text34 = new Text(); text34.Text = "MORGAN STANLEY INVESTMENT MANAGEMENT, INC"; run56.Append(text34); CustomXmlRun customXmlRun10 = new CustomXmlRun() { Uri = "errors@http://hubblereports.com/namespace", Element = "ContentTypeDesc" }; CustomXmlRun customXmlRun11 = new CustomXmlRun() { Uri = "http://hubblereports.com/namespace", Element = "ManagerName" }; paragraph53.Append(paragraphProperties48); paragraph53.Append(run56); paragraph53.Append(customXmlRun10); paragraph53.Append(customXmlRun11); customXmlBlock24.Append(customXmlBlock25); customXmlBlock24.Append(paragraph53); customXmlBlock23.Append(customXmlBlock24); header2.Append(paragraph51); header2.Append(customXmlBlock23); headerPart2.Header = header2; }
// Generates content of headerPart1. private void GenerateHeaderPart1Content(HeaderPart headerPart1) { Header header1 = new Header(); Paragraph paragraph35 = new Paragraph() { RsidParagraphAddition = "00AB4921", RsidParagraphProperties = "002A7539", RsidRunAdditionDefault = "00740A1C" }; ParagraphProperties paragraphProperties34 = new ParagraphProperties(); ParagraphStyleId paragraphStyleId33 = new ParagraphStyleId() { Val = "En-tte" }; ParagraphBorders paragraphBorders3 = new ParagraphBorders(); BottomBorder bottomBorder4 = new BottomBorder() { Val = BorderValues.None, Color = "auto", Size = (UInt32Value)0U, Space = (UInt32Value)0U }; paragraphBorders3.Append(bottomBorder4); SpacingBetweenLines spacingBetweenLines20 = new SpacingBetweenLines() { After = "60" }; ParagraphMarkRunProperties paragraphMarkRunProperties15 = new ParagraphMarkRunProperties(); RunStyle runStyle7 = new RunStyle() { Val = "DateCar" }; FontSize fontSize10 = new FontSize() { Val = "20" }; FontSizeComplexScript fontSizeComplexScript19 = new FontSizeComplexScript() { Val = "20" }; paragraphMarkRunProperties15.Append(runStyle7); paragraphMarkRunProperties15.Append(fontSize10); paragraphMarkRunProperties15.Append(fontSizeComplexScript19); paragraphProperties34.Append(paragraphStyleId33); paragraphProperties34.Append(paragraphBorders3); paragraphProperties34.Append(spacingBetweenLines20); paragraphProperties34.Append(paragraphMarkRunProperties15); Run run43 = new Run(); RunProperties runProperties24 = new RunProperties(); NoProof noProof12 = new NoProof(); Languages languages12 = new Languages() { Val = "fr-CA", EastAsia = "fr-CA" }; runProperties24.Append(noProof12); runProperties24.Append(languages12); Drawing drawing12 = new Drawing(); Wp.Anchor anchor2 = new Wp.Anchor() { DistanceFromTop = (UInt32Value)0U, DistanceFromBottom = (UInt32Value)0U, DistanceFromLeft = (UInt32Value)114300U, DistanceFromRight = (UInt32Value)114300U, SimplePos = false, RelativeHeight = (UInt32Value)251658240U, BehindDoc = true, Locked = false, LayoutInCell = true, AllowOverlap = true }; Wp.SimplePosition simplePosition2 = new Wp.SimplePosition() { X = 0L, Y = 0L }; Wp.HorizontalPosition horizontalPosition2 = new Wp.HorizontalPosition() { RelativeFrom = Wp.HorizontalRelativePositionValues.Column }; Wp.PositionOffset positionOffset3 = new Wp.PositionOffset(); positionOffset3.Text = "0"; horizontalPosition2.Append(positionOffset3); Wp.VerticalPosition verticalPosition2 = new Wp.VerticalPosition() { RelativeFrom = Wp.VerticalRelativePositionValues.Paragraph }; Wp.PositionOffset positionOffset4 = new Wp.PositionOffset(); positionOffset4.Text = "0"; verticalPosition2.Append(positionOffset4); Wp.Extent extent12 = new Wp.Extent() { Cx = 6858000L, Cy = 714375L }; Wp.EffectExtent effectExtent12 = new Wp.EffectExtent() { LeftEdge = 19050L, TopEdge = 0L, RightEdge = 0L, BottomEdge = 0L }; Wp.WrapNone wrapNone2 = new Wp.WrapNone(); Wp.DocProperties docProperties12 = new Wp.DocProperties() { Id = (UInt32Value)54U, Name = "Image 54", Description = "RADAR_Opinion_BNR" }; Wp.NonVisualGraphicFrameDrawingProperties nonVisualGraphicFrameDrawingProperties12 = new Wp.NonVisualGraphicFrameDrawingProperties(); A.GraphicFrameLocks graphicFrameLocks12 = new A.GraphicFrameLocks() { NoChangeAspect = true }; nonVisualGraphicFrameDrawingProperties12.Append(graphicFrameLocks12); A.Graphic graphic12 = new A.Graphic(); A.GraphicData graphicData12 = new A.GraphicData() { Uri = "http://schemas.openxmlformats.org/drawingml/2006/picture" }; Pic.Picture picture12 = new Pic.Picture(); Pic.NonVisualPictureProperties nonVisualPictureProperties12 = new Pic.NonVisualPictureProperties(); Pic.NonVisualDrawingProperties nonVisualDrawingProperties12 = new Pic.NonVisualDrawingProperties() { Id = (UInt32Value)0U, Name = "Picture 54", Description = "RADAR_Opinion_BNR" }; Pic.NonVisualPictureDrawingProperties nonVisualPictureDrawingProperties12 = new Pic.NonVisualPictureDrawingProperties(); A.PictureLocks pictureLocks12 = new A.PictureLocks() { NoChangeAspect = true, NoChangeArrowheads = true }; nonVisualPictureDrawingProperties12.Append(pictureLocks12); nonVisualPictureProperties12.Append(nonVisualDrawingProperties12); nonVisualPictureProperties12.Append(nonVisualPictureDrawingProperties12); Pic.BlipFill blipFill12 = new Pic.BlipFill(); A.Blip blip12 = new A.Blip() { Embed = "rId1" }; A.SourceRectangle sourceRectangle12 = new A.SourceRectangle(); A.Stretch stretch12 = new A.Stretch(); A.FillRectangle fillRectangle12 = new A.FillRectangle(); stretch12.Append(fillRectangle12); blipFill12.Append(blip12); blipFill12.Append(sourceRectangle12); blipFill12.Append(stretch12); Pic.ShapeProperties shapeProperties12 = new Pic.ShapeProperties() { BlackWhiteMode = A.BlackWhiteModeValues.Auto }; A.Transform2D transform2D12 = new A.Transform2D(); A.Offset offset12 = new A.Offset() { X = 0L, Y = 0L }; A.Extents extents12 = new A.Extents() { Cx = 6858000L, Cy = 714375L }; transform2D12.Append(offset12); transform2D12.Append(extents12); A.PresetGeometry presetGeometry12 = new A.PresetGeometry() { Preset = A.ShapeTypeValues.Rectangle }; A.AdjustValueList adjustValueList12 = new A.AdjustValueList(); presetGeometry12.Append(adjustValueList12); A.NoFill noFill22 = new A.NoFill(); shapeProperties12.Append(transform2D12); shapeProperties12.Append(presetGeometry12); shapeProperties12.Append(noFill22); picture12.Append(nonVisualPictureProperties12); picture12.Append(blipFill12); picture12.Append(shapeProperties12); graphicData12.Append(picture12); graphic12.Append(graphicData12); anchor2.Append(simplePosition2); anchor2.Append(horizontalPosition2); anchor2.Append(verticalPosition2); anchor2.Append(extent12); anchor2.Append(effectExtent12); anchor2.Append(wrapNone2); anchor2.Append(docProperties12); anchor2.Append(nonVisualGraphicFrameDrawingProperties12); anchor2.Append(graphic12); drawing12.Append(anchor2); run43.Append(runProperties24); run43.Append(drawing12); paragraph35.Append(paragraphProperties34); paragraph35.Append(run43); CustomXmlBlock customXmlBlock16 = new CustomXmlBlock() { Uri = "http://hubblereports.com/namespace", Element = "reportdoc" }; CustomXmlBlock customXmlBlock17 = new CustomXmlBlock() { Uri = "http://hubblereports.com/namespace", Element = "header" }; CustomXmlBlock customXmlBlock18 = new CustomXmlBlock() { Uri = "http://hubblereports.com/namespace", Element = "ReportDate" }; Paragraph paragraph36 = new Paragraph() { RsidParagraphMarkRevision = "006B1D99", RsidParagraphAddition = "00AB4921", RsidParagraphProperties = "002A7539", RsidRunAdditionDefault = "00AB4921" }; ParagraphProperties paragraphProperties35 = new ParagraphProperties(); ParagraphStyleId paragraphStyleId34 = new ParagraphStyleId() { Val = "En-tte" }; ParagraphBorders paragraphBorders4 = new ParagraphBorders(); BottomBorder bottomBorder5 = new BottomBorder() { Val = BorderValues.None, Color = "auto", Size = (UInt32Value)0U, Space = (UInt32Value)0U }; paragraphBorders4.Append(bottomBorder5); SpacingBetweenLines spacingBetweenLines21 = new SpacingBetweenLines() { Before = "240", After = "60" }; ParagraphMarkRunProperties paragraphMarkRunProperties16 = new ParagraphMarkRunProperties(); RunStyle runStyle8 = new RunStyle() { Val = "DateCar" }; RunFonts runFonts4 = new RunFonts() { EastAsia = "MS Mincho" }; FontSize fontSize11 = new FontSize() { Val = "20" }; FontSizeComplexScript fontSizeComplexScript20 = new FontSizeComplexScript() { Val = "20" }; paragraphMarkRunProperties16.Append(runStyle8); paragraphMarkRunProperties16.Append(runFonts4); paragraphMarkRunProperties16.Append(fontSize11); paragraphMarkRunProperties16.Append(fontSizeComplexScript20); paragraphProperties35.Append(paragraphStyleId34); paragraphProperties35.Append(paragraphBorders4); paragraphProperties35.Append(spacingBetweenLines21); paragraphProperties35.Append(paragraphMarkRunProperties16); Run run44 = new Run() { RsidRunProperties = "006B1D99" }; RunProperties runProperties25 = new RunProperties(); RunStyle runStyle9 = new RunStyle() { Val = "DateCar" }; RunFonts runFonts5 = new RunFonts() { EastAsia = "MS Mincho" }; FontSize fontSize12 = new FontSize() { Val = "20" }; FontSizeComplexScript fontSizeComplexScript21 = new FontSizeComplexScript() { Val = "20" }; runProperties25.Append(runStyle9); runProperties25.Append(runFonts5); runProperties25.Append(fontSize12); runProperties25.Append(fontSizeComplexScript21); Text text30 = new Text(); text30.Text = DateTime.Today.ToString("MMMM dd, yyyy", CultureInfo.CreateSpecificCulture("en-US")).ToUpperInvariant(); run44.Append(runProperties25); run44.Append(text30); paragraph36.Append(paragraphProperties35); paragraph36.Append(run44); customXmlBlock18.Append(paragraph36); Paragraph paragraph37 = new Paragraph() { RsidParagraphMarkRevision = "00A445CA", RsidParagraphAddition = "00AB4921", RsidParagraphProperties = "00E340CC", RsidRunAdditionDefault = "00957E57" }; ParagraphProperties paragraphProperties36 = new ParagraphProperties(); ParagraphStyleId paragraphStyleId35 = new ParagraphStyleId() { Val = "Titre" }; Justification justification2 = new Justification() { Val = JustificationValues.Left }; paragraphProperties36.Append(paragraphStyleId35); paragraphProperties36.Append(justification2); CustomXmlRun customXmlRun9 = new CustomXmlRun() { Uri = "errors@http://hubblereports.com/namespace", Element = "ContentTypeDesc" }; paragraph37.Append(paragraphProperties36); paragraph37.Append(customXmlRun9); CustomXmlBlock customXmlBlock19 = new CustomXmlBlock() { Uri = "http://hubblereports.com/namespace", Element = "ManagerName" }; Paragraph paragraph38 = new Paragraph() { RsidParagraphAddition = "00AB4921", RsidParagraphProperties = "000C4F36", RsidRunAdditionDefault = "005546F4" }; ParagraphProperties paragraphProperties37 = new ParagraphProperties(); ParagraphStyleId paragraphStyleId36 = new ParagraphStyleId() { Val = "ManagerName" }; SpacingBetweenLines spacingBetweenLines22 = new SpacingBetweenLines() { After = "0" }; paragraphProperties37.Append(paragraphStyleId36); paragraphProperties37.Append(spacingBetweenLines22); Run run45 = new Run(); Text text31 = new Text(); text31.Text = "Morgan Stanley Investment Management, Inc."; run45.Append(text31); paragraph38.Append(paragraphProperties37); paragraph38.Append(run45); customXmlBlock19.Append(paragraph38); customXmlBlock17.Append(customXmlBlock18); customXmlBlock17.Append(paragraph37); customXmlBlock17.Append(customXmlBlock19); customXmlBlock16.Append(customXmlBlock17); Paragraph paragraph39 = new Paragraph() { RsidParagraphAddition = "002E7D22", RsidParagraphProperties = "00545261", RsidRunAdditionDefault = "002E7D22" }; ParagraphProperties paragraphProperties38 = new ParagraphProperties(); SpacingBetweenLines spacingBetweenLines23 = new SpacingBetweenLines() { After = "0", Line = "40", LineRule = LineSpacingRuleValues.Exact }; paragraphProperties38.Append(spacingBetweenLines23); paragraph39.Append(paragraphProperties38); header1.Append(paragraph35); header1.Append(customXmlBlock16); header1.Append(paragraph39); headerPart1.Header = header1; }
public void CustomXmlElementTests() { Type baseType = typeof(CustomXmlElement); Assert.True(baseType.IsAbstract); // CustomXmlRuby CustomXmlRuby cxRuby = new CustomXmlRuby(); ValidateCustomXmlElement(cxRuby); // CustomXmlBlock CustomXmlBlock cxBlock = new CustomXmlBlock(); ValidateCustomXmlElement(cxBlock); // CustomXmlRow CustomXmlRow cxRow = new CustomXmlRow(); ValidateCustomXmlElement(cxRow); // CustomXmlRun CustomXmlRun cxRun = new CustomXmlRun(); ValidateCustomXmlElement(cxRun); // CustomXmlCell CustomXmlCell cxCell = new CustomXmlCell(); ValidateCustomXmlElement(cxCell); // Test loading and modification on DOM tree using (var doc = WordprocessingDocument.Open(new MemoryStream(TestFileStreams.simpleSdt), false)) { // find customXml var customXml = doc.MainDocumentPart.Document.Descendants<CustomXmlRun>().First(); Assert.Equal("firstName", customXml.Element.Value); Assert.Null(customXml.Uri); Assert.Equal(typeof(Run), customXml.FirstChild.GetType()); customXml.Uri = "urn:sampleUri"; customXml.Append(new Hyperlink()); Assert.Equal(2, customXml.ChildElements.Count); } }