本文整理汇总了C#中Drawing.Append方法的典型用法代码示例。如果您正苦于以下问题:C# Drawing.Append方法的具体用法?C# Drawing.Append怎么用?C# Drawing.Append使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Drawing
的用法示例。
在下文中一共展示了Drawing.Append方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: GenerateDrawing
public static Drawing GenerateDrawing(string id, string name, uint docPrId, long cx, long cy)
{
// w:drawing (Drawing)
Drawing drawing1 = new Drawing();
// wp:inline (Inline)
Wp::Inline inline1 = new Wp::Inline();
// wp:extent (Extent)
Wp::Extent extent1 = new Wp::Extent() { Cx = cx, Cy = cy };
// wp:docPr (DocProperties)
Wp::DocProperties docProperties1 = new Wp::DocProperties() { Id = docPrId, Name = name };
// a:graphic (Graphic)
A::Graphic graphic1 = new A::Graphic();
graphic1.AddNamespaceDeclaration("a", "http://schemas.openxmlformats.org/drawingml/2006/main");
// a:graphicData (GraphicData)
A::GraphicData graphicData1 = new A::GraphicData() { Uri = "http://schemas.openxmlformats.org/drawingml/2006/chart" };
// c:chart (ChartReference)
C::ChartReference chartReference1 = new C::ChartReference() { Id = id };
chartReference1.AddNamespaceDeclaration("c", "http://schemas.openxmlformats.org/drawingml/2006/chart");
chartReference1.AddNamespaceDeclaration("r", "http://schemas.openxmlformats.org/officeDocument/2006/relationships");
graphicData1.Append(chartReference1);
graphic1.Append(graphicData1);
inline1.Append(extent1);
inline1.Append(docProperties1);
inline1.Append(graphic1);
drawing1.Append(inline1);
return drawing1;
}
示例2: GenerateTableRow
// Creates an Paragraph instance and adds its children.
public TableRow GenerateTableRow(IndividualInfo ii, string iid)
{
TableRow tableRow1 = new TableRow() { RsidTableRowAddition = "00FB1F22", RsidTableRowProperties = "00442AD3" };
TableRowProperties tableRowProperties1 = new TableRowProperties();
CantSplit cantSplit1 = new CantSplit();
tableRowProperties1.Append(cantSplit1);
TableCell tableCell1 = new TableCell();
TableCellProperties tableCellProperties1 = new TableCellProperties();
TableCellWidth tableCellWidth1 = new TableCellWidth() { Width = "4788", Type = TableWidthUnitValues.Dxa };
tableCellProperties1.Append(tableCellWidth1);
Paragraph paragraph1 = new Paragraph() { RsidParagraphAddition = "00FB1F22", RsidParagraphProperties = "00F06304", RsidRunAdditionDefault = "00FB1F22" };
Run run1 = new Run();
Break break1 = new Break();
run1.Append(break1);
Run run2 = new Run();
RunProperties runProperties1 = new RunProperties();
NoProof noProof1 = new NoProof();
runProperties1.Append(noProof1);
Text text1 = new Text();
text1.Text = ii.FirstName;
run2.Append(runProperties1);
run2.Append(text1);
Run run3 = new Run();
Text text2 = new Text() { Space = SpaceProcessingModeValues.Preserve };
text2.Text = " ";
run3.Append(text2);
Run run4 = new Run();
RunProperties runProperties2 = new RunProperties();
NoProof noProof2 = new NoProof();
runProperties2.Append(noProof2);
Text text3 = new Text();
text3.Text = ii.LastName;
run4.Append(runProperties2);
run4.Append(text3);
paragraph1.Append(run1);
paragraph1.Append(run2);
paragraph1.Append(run3);
paragraph1.Append(run4);
Paragraph paragraph2 = new Paragraph() { RsidParagraphAddition = "00FB1F22", RsidParagraphProperties = "00731A43", RsidRunAdditionDefault = "00FB1F22" };
Run run5 = new Run();
RunProperties runProperties3 = new RunProperties();
NoProof noProof3 = new NoProof();
runProperties3.Append(noProof3);
Text text4 = new Text();
text4.Text = ii.Address;
run5.Append(runProperties3);
run5.Append(text4);
paragraph2.Append(run5);
Paragraph paragraph2a = null;
if (ii.Address2.HasValue())
{
paragraph2a = new Paragraph() { RsidParagraphAddition = "00FB1F22", RsidParagraphProperties = "00731A43", RsidRunAdditionDefault = "00FB1F22" };
Run r = new Run();
RunProperties rp = new RunProperties();
NoProof np = new NoProof();
rp.Append(np);
Text tt = new Text();
tt.Text = ii.Address;
r.Append(rp);
r.Append(tt);
paragraph2a.Append(r);
}
Paragraph paragraph3 = new Paragraph() { RsidParagraphAddition = "00FB1F22", RsidParagraphProperties = "00731A43", RsidRunAdditionDefault = "00FB1F22" };
Run run6 = new Run();
RunProperties runProperties4 = new RunProperties();
NoProof noProof4 = new NoProof();
//.........这里部分代码省略.........
示例3: GenerateRun
public static Run GenerateRun(string relationshipId, System.Drawing.Image img)
{
System.Drawing.Size Emu = CalculateEmus(img);
Run run1 = new Run();
RunProperties runProperties1 = new RunProperties();
NoProof noProof1 = new NoProof();
runProperties1.Append(noProof1);
Drawing drawing1 = new Drawing();
Wp.Inline inline1 = new Wp.Inline() { DistanceFromTop = (UInt32Value)0U, DistanceFromBottom = (UInt32Value)0U, DistanceFromLeft = (UInt32Value)0U, DistanceFromRight = (UInt32Value)0U };
Wp.Extent extent1 = new Wp.Extent() { Cx = Emu.Width, Cy = Emu.Height };
Wp.EffectExtent effectExtent1 = new Wp.EffectExtent() { LeftEdge = 0L, TopEdge = 0L, RightEdge = 0L, BottomEdge = 0L };
Wp.DocProperties docProperties1 = new Wp.DocProperties() { Id = (UInt32Value)1U, Name = "图片 1" };
Wp.NonVisualGraphicFrameDrawingProperties nonVisualGraphicFrameDrawingProperties1 = new Wp.NonVisualGraphicFrameDrawingProperties();
A.GraphicFrameLocks graphicFrameLocks1 = new A.GraphicFrameLocks() { NoChangeAspect = true };
graphicFrameLocks1.AddNamespaceDeclaration("a", "http://schemas.openxmlformats.org/drawingml/2006/main");
nonVisualGraphicFrameDrawingProperties1.Append(graphicFrameLocks1);
A.Graphic graphic1 = new A.Graphic();
graphic1.AddNamespaceDeclaration("a", "http://schemas.openxmlformats.org/drawingml/2006/main");
A.GraphicData graphicData1 = new A.GraphicData() { Uri = "http://schemas.openxmlformats.org/drawingml/2006/picture" };
Pic.Picture picture1 = new Pic.Picture();
picture1.AddNamespaceDeclaration("pic", "http://schemas.openxmlformats.org/drawingml/2006/picture");
Pic.NonVisualPictureProperties nonVisualPictureProperties1 = new Pic.NonVisualPictureProperties();
Pic.NonVisualDrawingProperties nonVisualDrawingProperties1 = new Pic.NonVisualDrawingProperties() { Id = (UInt32Value)0U, Name = "随机图片名" };
Pic.NonVisualPictureDrawingProperties nonVisualPictureDrawingProperties1 = new Pic.NonVisualPictureDrawingProperties();
nonVisualPictureProperties1.Append(nonVisualDrawingProperties1);
nonVisualPictureProperties1.Append(nonVisualPictureDrawingProperties1);
Pic.BlipFill blipFill1 = new Pic.BlipFill();
A.Blip blip1 = new A.Blip() { Embed = relationshipId };
A.BlipExtensionList blipExtensionList1 = new A.BlipExtensionList();
A.BlipExtension blipExtension1 = new A.BlipExtension() { Uri = "{28A0092B-C50C-407E-A947-70E740481C1C}" };
A14.UseLocalDpi useLocalDpi1 = new A14.UseLocalDpi() { Val = false };
useLocalDpi1.AddNamespaceDeclaration("a14", "http://schemas.microsoft.com/office/drawing/2010/main");
blipExtension1.Append(useLocalDpi1);
blipExtensionList1.Append(blipExtension1);
blip1.Append(blipExtensionList1);
A.Stretch stretch1 = new A.Stretch();
A.FillRectangle fillRectangle1 = new A.FillRectangle();
stretch1.Append(fillRectangle1);
blipFill1.Append(blip1);
blipFill1.Append(stretch1);
Pic.ShapeProperties shapeProperties1 = new Pic.ShapeProperties();
A.Transform2D transform2D1 = new A.Transform2D();
A.Offset offset1 = new A.Offset() { X = 0L, Y = 0L };
A.Extents extents1 = new A.Extents() { Cx = Emu.Width, Cy = Emu.Height };
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);
shapeProperties1.Append(transform2D1);
shapeProperties1.Append(presetGeometry1);
picture1.Append(nonVisualPictureProperties1);
picture1.Append(blipFill1);
picture1.Append(shapeProperties1);
graphicData1.Append(picture1);
graphic1.Append(graphicData1);
inline1.Append(extent1);
inline1.Append(effectExtent1);
inline1.Append(docProperties1);
inline1.Append(nonVisualGraphicFrameDrawingProperties1);
inline1.Append(graphic1);
drawing1.Append(inline1);
run1.Append(runProperties1);
run1.Append(drawing1);
//.........这里部分代码省略.........
示例4: GenerateMainDocumentPart1Content
// Generates content of mainDocumentPart1.
private void GenerateMainDocumentPart1Content(MainDocumentPart mainDocumentPart1)
{
Document document1 = new Document() { MCAttributes = new MarkupCompatibilityAttributes() { Ignorable = "w14 w15 w16se wp14" } };
document1.AddNamespaceDeclaration("wpc", "http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas");
document1.AddNamespaceDeclaration("cx", "http://schemas.microsoft.com/office/drawing/2014/chartex");
document1.AddNamespaceDeclaration("cx1", "http://schemas.microsoft.com/office/drawing/2015/9/8/chartex");
document1.AddNamespaceDeclaration("cx2", "http://schemas.microsoft.com/office/drawing/2015/10/21/chartex");
document1.AddNamespaceDeclaration("mc", "http://schemas.openxmlformats.org/markup-compatibility/2006");
document1.AddNamespaceDeclaration("o", "urn:schemas-microsoft-com:office:office");
document1.AddNamespaceDeclaration("r", "http://schemas.openxmlformats.org/officeDocument/2006/relationships");
document1.AddNamespaceDeclaration("m", "http://schemas.openxmlformats.org/officeDocument/2006/math");
document1.AddNamespaceDeclaration("v", "urn:schemas-microsoft-com:vml");
document1.AddNamespaceDeclaration("wp14", "http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing");
document1.AddNamespaceDeclaration("wp", "http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing");
document1.AddNamespaceDeclaration("w10", "urn:schemas-microsoft-com:office:word");
document1.AddNamespaceDeclaration("w", "http://schemas.openxmlformats.org/wordprocessingml/2006/main");
document1.AddNamespaceDeclaration("w14", "http://schemas.microsoft.com/office/word/2010/wordml");
document1.AddNamespaceDeclaration("w15", "http://schemas.microsoft.com/office/word/2012/wordml");
document1.AddNamespaceDeclaration("w16se", "http://schemas.microsoft.com/office/word/2015/wordml/symex");
document1.AddNamespaceDeclaration("wpg", "http://schemas.microsoft.com/office/word/2010/wordprocessingGroup");
document1.AddNamespaceDeclaration("wpi", "http://schemas.microsoft.com/office/word/2010/wordprocessingInk");
document1.AddNamespaceDeclaration("wne", "http://schemas.microsoft.com/office/word/2006/wordml");
document1.AddNamespaceDeclaration("wps", "http://schemas.microsoft.com/office/word/2010/wordprocessingShape");
Body body1 = new Body();
Paragraph paragraph1 = new Paragraph() { RsidParagraphMarkRevision = "009032DC", RsidParagraphAddition = "008129E8", RsidParagraphProperties = "009032DC", RsidRunAdditionDefault = "001D0DE9", ParagraphId = "0AAC1914", TextId = "772958DA" };
ParagraphProperties paragraphProperties1 = new ParagraphProperties();
ParagraphStyleId paragraphStyleId1 = new ParagraphStyleId() { Val = "Title" };
ParagraphMarkRunProperties paragraphMarkRunProperties1 = new ParagraphMarkRunProperties();
Bold bold1 = new Bold() { Val = false };
FontSize fontSize1 = new FontSize() { Val = "72" };
paragraphMarkRunProperties1.Append(bold1);
paragraphMarkRunProperties1.Append(fontSize1);
paragraphProperties1.Append(paragraphStyleId1);
paragraphProperties1.Append(paragraphMarkRunProperties1);
BookmarkStart bookmarkStart1 = new BookmarkStart() { Name = "_GoBack", Id = "0" };
BookmarkEnd bookmarkEnd1 = new BookmarkEnd() { Id = "0" };
Run run1 = new Run();
RunProperties runProperties1 = new RunProperties();
FontSize fontSize2 = new FontSize() { Val = "72" };
runProperties1.Append(fontSize2);
Text text1 = new Text();
text1.Text = "P";
run1.Append(runProperties1);
run1.Append(text1);
Run run2 = new Run() { RsidRunProperties = "009032DC", RsidRunAddition = "008129E8" };
RunProperties runProperties2 = new RunProperties();
FontSize fontSize3 = new FontSize() { Val = "72" };
runProperties2.Append(fontSize3);
Text text2 = new Text();
text2.Text = "roject:";
run2.Append(runProperties2);
run2.Append(text2);
paragraph1.Append(paragraphProperties1);
paragraph1.Append(bookmarkStart1);
paragraph1.Append(bookmarkEnd1);
paragraph1.Append(run1);
paragraph1.Append(run2);
Paragraph paragraph2 = new Paragraph() { RsidParagraphMarkRevision = "009032DC", RsidParagraphAddition = "008129E8", RsidParagraphProperties = "009032DC", RsidRunAdditionDefault = "008129E8", ParagraphId = "0AAC1915", TextId = "5B14AE4B" };
ParagraphProperties paragraphProperties2 = new ParagraphProperties();
ParagraphStyleId paragraphStyleId2 = new ParagraphStyleId() { Val = "Title" };
ParagraphMarkRunProperties paragraphMarkRunProperties2 = new ParagraphMarkRunProperties();
Bold bold2 = new Bold() { Val = false };
Color color1 = new Color() { Val = "FF0000" };
FontSize fontSize4 = new FontSize() { Val = "72" };
paragraphMarkRunProperties2.Append(bold2);
paragraphMarkRunProperties2.Append(color1);
paragraphMarkRunProperties2.Append(fontSize4);
paragraphProperties2.Append(paragraphStyleId2);
paragraphProperties2.Append(paragraphMarkRunProperties2);
Run run3 = new Run() { RsidRunProperties = "009032DC" };
RunProperties runProperties3 = new RunProperties();
Color color2 = new Color() { Val = "FF0000" };
FontSize fontSize5 = new FontSize() { Val = "72" };
runProperties3.Append(color2);
runProperties3.Append(fontSize5);
Text text3 = new Text() { Space = SpaceProcessingModeValues.Preserve };
//.........这里部分代码省略.........
示例5: GenerateHeaderPart1Content
// Generates content of headerPart1.
private void GenerateHeaderPart1Content(HeaderPart headerPart1)
{
Header header1 = new Header() { MCAttributes = new MarkupCompatibilityAttributes() { Ignorable = "w14 w15 w16se wp14" } };
header1.AddNamespaceDeclaration("wpc", "http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas");
header1.AddNamespaceDeclaration("cx", "http://schemas.microsoft.com/office/drawing/2014/chartex");
header1.AddNamespaceDeclaration("cx1", "http://schemas.microsoft.com/office/drawing/2015/9/8/chartex");
header1.AddNamespaceDeclaration("cx2", "http://schemas.microsoft.com/office/drawing/2015/10/21/chartex");
header1.AddNamespaceDeclaration("mc", "http://schemas.openxmlformats.org/markup-compatibility/2006");
header1.AddNamespaceDeclaration("o", "urn:schemas-microsoft-com:office:office");
header1.AddNamespaceDeclaration("r", "http://schemas.openxmlformats.org/officeDocument/2006/relationships");
header1.AddNamespaceDeclaration("m", "http://schemas.openxmlformats.org/officeDocument/2006/math");
header1.AddNamespaceDeclaration("v", "urn:schemas-microsoft-com:vml");
header1.AddNamespaceDeclaration("wp14", "http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing");
header1.AddNamespaceDeclaration("wp", "http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing");
header1.AddNamespaceDeclaration("w10", "urn:schemas-microsoft-com:office:word");
header1.AddNamespaceDeclaration("w", "http://schemas.openxmlformats.org/wordprocessingml/2006/main");
header1.AddNamespaceDeclaration("w14", "http://schemas.microsoft.com/office/word/2010/wordml");
header1.AddNamespaceDeclaration("w15", "http://schemas.microsoft.com/office/word/2012/wordml");
header1.AddNamespaceDeclaration("w16se", "http://schemas.microsoft.com/office/word/2015/wordml/symex");
header1.AddNamespaceDeclaration("wpg", "http://schemas.microsoft.com/office/word/2010/wordprocessingGroup");
header1.AddNamespaceDeclaration("wpi", "http://schemas.microsoft.com/office/word/2010/wordprocessingInk");
header1.AddNamespaceDeclaration("wne", "http://schemas.microsoft.com/office/word/2006/wordml");
header1.AddNamespaceDeclaration("wps", "http://schemas.microsoft.com/office/word/2010/wordprocessingShape");
Paragraph paragraph371 = new Paragraph() { RsidParagraphAddition = "0094109A", RsidParagraphProperties = "00624202", RsidRunAdditionDefault = "0094109A", ParagraphId = "0AAC1AD1", TextId = "295351A7" };
ParagraphProperties paragraphProperties368 = new ParagraphProperties();
ParagraphStyleId paragraphStyleId28 = new ParagraphStyleId() { Val = "Footer" };
WidowControl widowControl1 = new WidowControl() { Val = false };
Indentation indentation25 = new Indentation() { End = "360" };
paragraphProperties368.Append(paragraphStyleId28);
paragraphProperties368.Append(widowControl1);
paragraphProperties368.Append(indentation25);
Run run755 = new Run();
RunProperties runProperties797 = new RunProperties();
NoProof noProof4 = new NoProof();
runProperties797.Append(noProof4);
Drawing drawing2 = new Drawing();
Wp.Inline inline1 = new Wp.Inline() { DistanceFromTop = (UInt32Value)0U, DistanceFromBottom = (UInt32Value)0U, DistanceFromLeft = (UInt32Value)0U, DistanceFromRight = (UInt32Value)0U, AnchorId = "0AAC1AD5", EditId = "0AAC1AD6" };
Wp.Extent extent2 = new Wp.Extent() { Cx = 1238250L, Cy = 190500L };
Wp.EffectExtent effectExtent2 = new Wp.EffectExtent() { LeftEdge = 0L, TopEdge = 0L, RightEdge = 0L, BottomEdge = 0L };
Wp.DocProperties docProperties2 = new Wp.DocProperties() { Id = (UInt32Value)1U, Name = "Picture 1" };
Wp.NonVisualGraphicFrameDrawingProperties nonVisualGraphicFrameDrawingProperties2 = new Wp.NonVisualGraphicFrameDrawingProperties();
A.GraphicFrameLocks graphicFrameLocks2 = new A.GraphicFrameLocks() { NoChangeAspect = true };
graphicFrameLocks2.AddNamespaceDeclaration("a", "http://schemas.openxmlformats.org/drawingml/2006/main");
nonVisualGraphicFrameDrawingProperties2.Append(graphicFrameLocks2);
A.Graphic graphic2 = new A.Graphic();
graphic2.AddNamespaceDeclaration("a", "http://schemas.openxmlformats.org/drawingml/2006/main");
A.GraphicData graphicData2 = new A.GraphicData() { Uri = "http://schemas.openxmlformats.org/drawingml/2006/picture" };
Pic.Picture picture2 = new Pic.Picture();
picture2.AddNamespaceDeclaration("pic", "http://schemas.openxmlformats.org/drawingml/2006/picture");
Pic.NonVisualPictureProperties nonVisualPictureProperties2 = new Pic.NonVisualPictureProperties();
Pic.NonVisualDrawingProperties nonVisualDrawingProperties2 = new Pic.NonVisualDrawingProperties() { Id = (UInt32Value)0U, Name = "Picture 1" };
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 = "rId1" };
A.BlipExtensionList blipExtensionList2 = new A.BlipExtensionList();
A.BlipExtension blipExtension2 = new A.BlipExtension() { Uri = "{28A0092B-C50C-407E-A947-70E740481C1C}" };
A14.UseLocalDpi useLocalDpi2 = new A14.UseLocalDpi() { Val = false };
useLocalDpi2.AddNamespaceDeclaration("a14", "http://schemas.microsoft.com/office/drawing/2010/main");
blipExtension2.Append(useLocalDpi2);
blipExtensionList2.Append(blipExtension2);
blip2.Append(blipExtensionList2);
A.SourceRectangle sourceRectangle2 = new A.SourceRectangle();
A.Stretch stretch2 = new A.Stretch();
A.FillRectangle fillRectangle2 = new A.FillRectangle();
stretch2.Append(fillRectangle2);
blipFill2.Append(blip2);
//.........这里部分代码省略.........
示例6: BuildImage
private static Drawing BuildImage(string imageRelationshipID, string imageName, int pixelWidth, int pixelHeight)
{
int emuWidth = (int)(pixelWidth * EMU_PER_PIXEL);
int emuHeight = (int)(pixelHeight * EMU_PER_PIXEL);
Drawing drawing = new Drawing();
d.Wordprocessing.Inline inline = new d.Wordprocessing.Inline { DistanceFromTop = 0, DistanceFromBottom = 0, DistanceFromLeft = 0, DistanceFromRight = 0 };
d.Wordprocessing.Anchor anchor = new d.Wordprocessing.Anchor();
d.Wordprocessing.SimplePosition simplePos = new d.Wordprocessing.SimplePosition { X = 0, Y = 0 };
d.Wordprocessing.Extent extent = new d.Wordprocessing.Extent { Cx = emuWidth, Cy = emuHeight };
d.Wordprocessing.DocProperties docPr = new d.Wordprocessing.DocProperties { Id = 1, Name = imageName };
d.Graphic graphic = new d.Graphic();
// We don’t have to hard code a URI anywhere else in the document but if we don’t do it here
// we end up with a corrupt document.
d.GraphicData graphicData = new d.GraphicData { Uri = GRAPHIC_DATA_URI };
d.Pictures.Picture pic = new d.Pictures.Picture();
d.Pictures.NonVisualPictureProperties nvPicPr = new d.Pictures.NonVisualPictureProperties();
d.Pictures.NonVisualDrawingProperties cNvPr = new d.Pictures.NonVisualDrawingProperties { Id = 2, Name = imageName };
d.Pictures.NonVisualPictureDrawingProperties cNvPicPr = new d.Pictures.NonVisualPictureDrawingProperties();
d.Pictures.BlipFill blipFill = new d.Pictures.BlipFill();
d.Blip blip = new d.Blip { Embed = imageRelationshipID };
d.Stretch stretch = new d.Stretch();
d.FillRectangle fillRect = new d.FillRectangle();
d.Pictures.ShapeProperties spPr = new d.Pictures.ShapeProperties();
d.Transform2D xfrm = new d.Transform2D();
d.Offset off = new d.Offset { X = 0, Y = 0 };
d.Extents ext = new d.Extents { Cx = emuWidth, Cy = emuHeight };
d.PresetGeometry prstGeom = new d.PresetGeometry { Preset = d.ShapeTypeValues.Rectangle };
d.AdjustValueList avLst = new d.AdjustValueList();
xfrm.Append(off);
xfrm.Append(ext);
prstGeom.Append(avLst);
stretch.Append(fillRect);
spPr.Append(xfrm);
spPr.Append(prstGeom);
blipFill.Append(blip);
blipFill.Append(stretch);
nvPicPr.Append(cNvPr);
nvPicPr.Append(cNvPicPr);
pic.Append(nvPicPr);
pic.Append(blipFill);
pic.Append(spPr);
graphicData.Append(pic);
graphic.Append(graphicData);
inline.Append(extent);
inline.Append(docPr);
inline.Append(graphic);
drawing.Append(inline);
return drawing;
}
示例7: CreateTopicTitle
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);
//.........这里部分代码省略.........
示例8: GenerateMainDocumentPart1Content
// 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 };
//.........这里部分代码省略.........
示例9: GenerateHeaderPart2Content
// 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();
//.........这里部分代码省略.........
示例10: GenerateHeaderPart1Content
// 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 };
//.........这里部分代码省略.........
示例11: GenerateFooterPart2Content
// Generates content of footerPart2.
private void GenerateFooterPart2Content(FooterPart footerPart2)
{
Footer footer2 = new Footer();
Paragraph paragraph42 = new Paragraph() { RsidParagraphAddition = "00F34666", RsidParagraphProperties = "00F34666", RsidRunAdditionDefault = "00740A1C" };
ParagraphProperties paragraphProperties39 = new ParagraphProperties();
ParagraphStyleId paragraphStyleId37 = new ParagraphStyleId() { Val = "FooterRankLegend" };
Tabs tabs24 = new Tabs();
TabStop tabStop24 = new TabStop() { Val = TabStopValues.Left, Position = 3315 };
tabs24.Append(tabStop24);
SpacingBetweenLines spacingBetweenLines49 = new SpacingBetweenLines() { After = "240" };
paragraphProperties39.Append(paragraphStyleId37);
paragraphProperties39.Append(tabs24);
paragraphProperties39.Append(spacingBetweenLines49);
Run run48 = new Run();
RunProperties runProperties26 = new RunProperties();
NoProof noProof13 = new NoProof();
Languages languages32 = new Languages() { Val = "fr-CA", EastAsia = "fr-CA" };
runProperties26.Append(noProof13);
runProperties26.Append(languages32);
Drawing drawing13 = new Drawing();
Wp.Inline inline11 = new Wp.Inline() { DistanceFromTop = (UInt32Value)0U, DistanceFromBottom = (UInt32Value)0U, DistanceFromLeft = (UInt32Value)0U, DistanceFromRight = (UInt32Value)0U };
Wp.Extent extent13 = new Wp.Extent() { Cx = 1447800L, Cy = 314325L };
Wp.EffectExtent effectExtent13 = new Wp.EffectExtent() { LeftEdge = 19050L, TopEdge = 0L, RightEdge = 0L, BottomEdge = 0L };
Wp.DocProperties docProperties13 = new Wp.DocProperties() { Id = (UInt32Value)12U, Name = "Image 12", Description = "RADAR_RankLegend" };
Wp.NonVisualGraphicFrameDrawingProperties nonVisualGraphicFrameDrawingProperties13 = new Wp.NonVisualGraphicFrameDrawingProperties();
A.GraphicFrameLocks graphicFrameLocks13 = new A.GraphicFrameLocks() { NoChangeAspect = true };
nonVisualGraphicFrameDrawingProperties13.Append(graphicFrameLocks13);
A.Graphic graphic13 = new A.Graphic();
A.GraphicData graphicData13 = new A.GraphicData() { Uri = "http://schemas.openxmlformats.org/drawingml/2006/picture" };
Pic.Picture picture13 = new Pic.Picture();
Pic.NonVisualPictureProperties nonVisualPictureProperties13 = new Pic.NonVisualPictureProperties();
Pic.NonVisualDrawingProperties nonVisualDrawingProperties13 = new Pic.NonVisualDrawingProperties() { Id = (UInt32Value)0U, Name = "Picture 12", Description = "RADAR_RankLegend" };
Pic.NonVisualPictureDrawingProperties nonVisualPictureDrawingProperties13 = new Pic.NonVisualPictureDrawingProperties();
A.PictureLocks pictureLocks13 = new A.PictureLocks() { NoChangeAspect = true, NoChangeArrowheads = true };
nonVisualPictureDrawingProperties13.Append(pictureLocks13);
nonVisualPictureProperties13.Append(nonVisualDrawingProperties13);
nonVisualPictureProperties13.Append(nonVisualPictureDrawingProperties13);
Pic.BlipFill blipFill13 = new Pic.BlipFill();
A.Blip blip13 = new A.Blip() { Embed = "rId1" };
A.SourceRectangle sourceRectangle13 = new A.SourceRectangle();
A.Stretch stretch13 = new A.Stretch();
A.FillRectangle fillRectangle13 = new A.FillRectangle();
stretch13.Append(fillRectangle13);
blipFill13.Append(blip13);
blipFill13.Append(sourceRectangle13);
blipFill13.Append(stretch13);
Pic.ShapeProperties shapeProperties13 = new Pic.ShapeProperties() { BlackWhiteMode = A.BlackWhiteModeValues.Auto };
A.Transform2D transform2D13 = new A.Transform2D();
A.Offset offset13 = new A.Offset() { X = 0L, Y = 0L };
A.Extents extents13 = new A.Extents() { Cx = 1447800L, Cy = 314325L };
transform2D13.Append(offset13);
transform2D13.Append(extents13);
A.PresetGeometry presetGeometry13 = new A.PresetGeometry() { Preset = A.ShapeTypeValues.Rectangle };
A.AdjustValueList adjustValueList13 = new A.AdjustValueList();
presetGeometry13.Append(adjustValueList13);
A.NoFill noFill23 = new A.NoFill();
A.Outline outline11 = new A.Outline() { Width = 9525 };
A.NoFill noFill24 = new A.NoFill();
A.Miter miter11 = new A.Miter() { Limit = 800000 };
A.HeadEnd headEnd11 = new A.HeadEnd();
A.TailEnd tailEnd11 = new A.TailEnd();
outline11.Append(noFill24);
outline11.Append(miter11);
outline11.Append(headEnd11);
outline11.Append(tailEnd11);
shapeProperties13.Append(transform2D13);
shapeProperties13.Append(presetGeometry13);
shapeProperties13.Append(noFill23);
//.........这里部分代码省略.........
示例12: GenerateFooterPart1Content
// Generates content of footerPart1.
private void GenerateFooterPart1Content(FooterPart footerPart1)
{
Footer footer1 = new Footer();
Paragraph paragraph27 = new Paragraph() { RsidParagraphAddition = "00C91FAF", RsidParagraphProperties = "00C91FAF", RsidRunAdditionDefault = "00740A1C" };
ParagraphProperties paragraphProperties26 = new ParagraphProperties();
ParagraphStyleId paragraphStyleId25 = new ParagraphStyleId() { Val = "FooterRankLegend" };
Tabs tabs1 = new Tabs();
TabStop tabStop1 = new TabStop() { Val = TabStopValues.Left, Position = 3315 };
tabs1.Append(tabStop1);
SpacingBetweenLines spacingBetweenLines18 = new SpacingBetweenLines() { After = "240" };
paragraphProperties26.Append(paragraphStyleId25);
paragraphProperties26.Append(tabs1);
paragraphProperties26.Append(spacingBetweenLines18);
Run run39 = new Run();
RunProperties runProperties22 = new RunProperties();
NoProof noProof10 = new NoProof();
Languages languages10 = new Languages() { Val = "fr-CA", EastAsia = "fr-CA" };
runProperties22.Append(noProof10);
runProperties22.Append(languages10);
Drawing drawing10 = new Drawing();
Wp.Inline inline10 = new Wp.Inline() { DistanceFromTop = (UInt32Value)0U, DistanceFromBottom = (UInt32Value)0U, DistanceFromLeft = (UInt32Value)0U, DistanceFromRight = (UInt32Value)0U };
Wp.Extent extent10 = new Wp.Extent() { Cx = 1447800L, Cy = 314325L };
Wp.EffectExtent effectExtent10 = new Wp.EffectExtent() { LeftEdge = 19050L, TopEdge = 0L, RightEdge = 0L, BottomEdge = 0L };
Wp.DocProperties docProperties10 = new Wp.DocProperties() { Id = (UInt32Value)23U, Name = "Image 23", Description = "RADAR_RankLegend" };
Wp.NonVisualGraphicFrameDrawingProperties nonVisualGraphicFrameDrawingProperties10 = new Wp.NonVisualGraphicFrameDrawingProperties();
A.GraphicFrameLocks graphicFrameLocks10 = new A.GraphicFrameLocks() { NoChangeAspect = true };
nonVisualGraphicFrameDrawingProperties10.Append(graphicFrameLocks10);
A.Graphic graphic10 = new A.Graphic();
A.GraphicData graphicData10 = new A.GraphicData() { Uri = "http://schemas.openxmlformats.org/drawingml/2006/picture" };
Pic.Picture picture10 = new Pic.Picture();
Pic.NonVisualPictureProperties nonVisualPictureProperties10 = new Pic.NonVisualPictureProperties();
Pic.NonVisualDrawingProperties nonVisualDrawingProperties10 = new Pic.NonVisualDrawingProperties() { Id = (UInt32Value)0U, Name = "Picture 23", Description = "RADAR_RankLegend" };
Pic.NonVisualPictureDrawingProperties nonVisualPictureDrawingProperties10 = new Pic.NonVisualPictureDrawingProperties();
A.PictureLocks pictureLocks10 = new A.PictureLocks() { NoChangeAspect = true, NoChangeArrowheads = true };
nonVisualPictureDrawingProperties10.Append(pictureLocks10);
nonVisualPictureProperties10.Append(nonVisualDrawingProperties10);
nonVisualPictureProperties10.Append(nonVisualPictureDrawingProperties10);
Pic.BlipFill blipFill10 = new Pic.BlipFill();
A.Blip blip10 = new A.Blip() { Embed = "rId1" };
A.SourceRectangle sourceRectangle10 = new A.SourceRectangle();
A.Stretch stretch10 = new A.Stretch();
A.FillRectangle fillRectangle10 = new A.FillRectangle();
stretch10.Append(fillRectangle10);
blipFill10.Append(blip10);
blipFill10.Append(sourceRectangle10);
blipFill10.Append(stretch10);
Pic.ShapeProperties shapeProperties10 = new Pic.ShapeProperties() { BlackWhiteMode = A.BlackWhiteModeValues.Auto };
A.Transform2D transform2D10 = new A.Transform2D();
A.Offset offset10 = new A.Offset() { X = 0L, Y = 0L };
A.Extents extents10 = new A.Extents() { Cx = 1447800L, Cy = 314325L };
transform2D10.Append(offset10);
transform2D10.Append(extents10);
A.PresetGeometry presetGeometry10 = new A.PresetGeometry() { Preset = A.ShapeTypeValues.Rectangle };
A.AdjustValueList adjustValueList10 = new A.AdjustValueList();
presetGeometry10.Append(adjustValueList10);
A.NoFill noFill19 = new A.NoFill();
A.Outline outline10 = new A.Outline() { Width = 9525 };
A.NoFill noFill20 = new A.NoFill();
A.Miter miter10 = new A.Miter() { Limit = 800000 };
A.HeadEnd headEnd10 = new A.HeadEnd();
A.TailEnd tailEnd10 = new A.TailEnd();
outline10.Append(noFill20);
outline10.Append(miter10);
outline10.Append(headEnd10);
outline10.Append(tailEnd10);
shapeProperties10.Append(transform2D10);
shapeProperties10.Append(presetGeometry10);
shapeProperties10.Append(noFill19);
//.........这里部分代码省略.........
示例13: GenerateMainDocumentPart1Content
// Generates content of mainDocumentPart1.
private static void GenerateMainDocumentPart1Content(MainDocumentPart mainDocumentPart1, WordprocessingDocument document)
{
Document document1 = new Document() { MCAttributes = new MarkupCompatibilityAttributes() { Ignorable = "w14 w15 wp14" } };
document1.AddNamespaceDeclaration("wpc", "http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas");
document1.AddNamespaceDeclaration("mc", "http://schemas.openxmlformats.org/markup-compatibility/2006");
document1.AddNamespaceDeclaration("o", "urn:schemas-microsoft-com:office:office");
document1.AddNamespaceDeclaration("r", "http://schemas.openxmlformats.org/officeDocument/2006/relationships");
document1.AddNamespaceDeclaration("m", "http://schemas.openxmlformats.org/officeDocument/2006/math");
document1.AddNamespaceDeclaration("v", "urn:schemas-microsoft-com:vml");
document1.AddNamespaceDeclaration("wp14", "http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing");
document1.AddNamespaceDeclaration("wp", "http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing");
document1.AddNamespaceDeclaration("w10", "urn:schemas-microsoft-com:office:word");
document1.AddNamespaceDeclaration("w", "http://schemas.openxmlformats.org/wordprocessingml/2006/main");
document1.AddNamespaceDeclaration("w14", "http://schemas.microsoft.com/office/word/2010/wordml");
document1.AddNamespaceDeclaration("w15", "http://schemas.microsoft.com/office/word/2012/wordml");
document1.AddNamespaceDeclaration("wpg", "http://schemas.microsoft.com/office/word/2010/wordprocessingGroup");
document1.AddNamespaceDeclaration("wpi", "http://schemas.microsoft.com/office/word/2010/wordprocessingInk");
document1.AddNamespaceDeclaration("wne", "http://schemas.microsoft.com/office/word/2006/wordml");
document1.AddNamespaceDeclaration("wps", "http://schemas.microsoft.com/office/word/2010/wordprocessingShape");
Body body1 = new Body();
Paragraph paragraph1 = new Paragraph() { RsidParagraphAddition = "00FA5335", RsidParagraphProperties = "00FA5335", RsidRunAdditionDefault = "00FA5335" };
ParagraphProperties paragraphProperties1 = new ParagraphProperties();
SpacingBetweenLines spacingBetweenLines1 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };
Justification justification1 = new Justification() { Val = JustificationValues.Center };
ParagraphMarkRunProperties paragraphMarkRunProperties1 = new ParagraphMarkRunProperties();
FontSize fontSize1 = new FontSize() { Val = "20" };
paragraphMarkRunProperties1.Append(fontSize1);
paragraphProperties1.Append(spacingBetweenLines1);
paragraphProperties1.Append(justification1);
paragraphProperties1.Append(paragraphMarkRunProperties1);
BookmarkStart bookmarkStart1 = new BookmarkStart() { Name = "_GoBack", Id = "0" };
BookmarkEnd bookmarkEnd1 = new BookmarkEnd() { Id = "0" };
Run run1 = new Run();
RunProperties runProperties1 = new RunProperties();
NoProof noProof1 = new NoProof();
FontSize fontSize2 = new FontSize() { Val = "20" };
Languages languages1 = new Languages() { EastAsia = "ru-RU" };
runProperties1.Append(noProof1);
runProperties1.Append(fontSize2);
runProperties1.Append(languages1);
AlternateContent alternateContent1 = new AlternateContent();
AlternateContentChoice alternateContentChoice1 = new AlternateContentChoice() { Requires = "wps" };
Drawing drawing1 = new Drawing();
Wp.Anchor anchor1 = new Wp.Anchor() { DistanceFromTop = (UInt32Value)0U, DistanceFromBottom = (UInt32Value)0U, DistanceFromLeft = (UInt32Value)114300U, DistanceFromRight = (UInt32Value)114300U, SimplePos = false, RelativeHeight = (UInt32Value)251659264U, BehindDoc = false, Locked = false, LayoutInCell = true, AllowOverlap = true };
Wp.SimplePosition simplePosition1 = new Wp.SimplePosition() { X = 0L, Y = 0L };
Wp.HorizontalPosition horizontalPosition1 = new Wp.HorizontalPosition() { RelativeFrom = Wp.HorizontalRelativePositionValues.Column };
Wp.PositionOffset positionOffset1 = new Wp.PositionOffset();
positionOffset1.Text = "7559955";
horizontalPosition1.Append(positionOffset1);
Wp.VerticalPosition verticalPosition1 = new Wp.VerticalPosition() { RelativeFrom = Wp.VerticalRelativePositionValues.Paragraph };
Wp.PositionOffset positionOffset2 = new Wp.PositionOffset();
positionOffset2.Text = "-180045";
verticalPosition1.Append(positionOffset2);
Wp.Extent extent1 = new Wp.Extent() { Cx = 2540000L, Cy = 635000L };
Wp.EffectExtent effectExtent1 = new Wp.EffectExtent() { LeftEdge = 0L, TopEdge = 0L, RightEdge = 0L, BottomEdge = 0L };
Wp.WrapNone wrapNone1 = new Wp.WrapNone();
Wp.DocProperties docProperties1 = new Wp.DocProperties() { Id = (UInt32Value)1U, Name = "Надпись 1" };
Wp.NonVisualGraphicFrameDrawingProperties nonVisualGraphicFrameDrawingProperties1 = new Wp.NonVisualGraphicFrameDrawingProperties();
A.Graphic graphic1 = new A.Graphic();
graphic1.AddNamespaceDeclaration("a", "http://schemas.openxmlformats.org/drawingml/2006/main");
A.GraphicData graphicData1 = new A.GraphicData() { Uri = "http://schemas.microsoft.com/office/word/2010/wordprocessingShape" };
Wps.WordprocessingShape wordprocessingShape1 = new Wps.WordprocessingShape();
Wps.NonVisualDrawingShapeProperties nonVisualDrawingShapeProperties1 = new Wps.NonVisualDrawingShapeProperties() { TextBox = true };
Wps.ShapeProperties shapeProperties1 = new Wps.ShapeProperties();
A.Transform2D transform2D1 = new A.Transform2D();
A.Offset offset1 = new A.Offset() { X = 0L, Y = 0L };
A.Extents extents1 = new A.Extents() { Cx = 2540000L, Cy = 635000L };
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();
//.........这里部分代码省略.........
示例14: addImage
//private Table GenerateTable(DataTable dt)
//{
// int columns = dt.Columns.Count;
// int rows = dt.Rows.Count;
// Table table1 = new Table();
// TableProperties tableProperties1 = new TableProperties();
// TableStyle tableStyle1 = new TableStyle() { Val = "TableGrid" };
// TableWidth tableWidth1 = new TableWidth() { Width = "0", Type = TableWidthUnitValues.Auto };
// TableIndentation tableIndentation1 = new TableIndentation() { Width = 0, Type = TableWidthUnitValues.Dxa };
// TableLook tableLook1 = new TableLook() { Val = "04A0", FirstRow = true, LastRow = false, FirstColumn = true, LastColumn = false, NoHorizontalBand = false, NoVerticalBand = true };
// tableProperties1.Append(tableStyle1);
// tableProperties1.Append(tableWidth1);
// tableProperties1.Append(tableIndentation1);
// tableProperties1.Append(tableLook1);
// TableGrid tableGrid1 = new TableGrid();
// GridColumn[] colarray = new GridColumn[columns];
// for (int i = 0; i < columns; i++)
// {
// colarray[i] = new GridColumn() { Width = "1554" };
// tableGrid1.Append(colarray[i]);
// }
// table1.Append(tableProperties1);
// table1.Append(tableGrid1);
// for (int r = 0; r < rows; r++)
// {
// TableRow tableRow1 = new TableRow() { RsidTableRowAddition = "003C5001", RsidTableRowProperties = "003C5001" };
// for (int c = 0; c < columns; c++)
// {
// tableRow1.Append(getCell(dt.Rows[r][c].ToString(), dt2.Rows[r][c].ToString(), "1000"));
// }
// table1.Append(tableRow1);
// }
// return table1;
//}
private Paragraph addImage(string filename, string shortcut)
{
Paragraph paragraph3 = new Paragraph() { RsidParagraphAddition = "00A3077F", RsidRunAdditionDefault = "00A3077F" };
Run run3 = new Run();
Drawing drawing1 = new Drawing();
Wp.Inline inline1 = new Wp.Inline() { DistanceFromTop = (UInt32Value)0U, DistanceFromBottom = (UInt32Value)0U, DistanceFromLeft = (UInt32Value)0U, DistanceFromRight = (UInt32Value)0U, AnchorId = "1323C4C5", EditId = "5E4064E0" };
Wp.Extent extent1 = new Wp.Extent() { Cx = 1905000L, Cy = 1190625L };
Wp.EffectExtent effectExtent1 = new Wp.EffectExtent() { LeftEdge = 0L, TopEdge = 0L, RightEdge = 0L, BottomEdge = 9525L };
Wp.DocProperties docProperties1 = new Wp.DocProperties() { Id = (UInt32Value)2U, Name = filename };
Wp.NonVisualGraphicFrameDrawingProperties nonVisualGraphicFrameDrawingProperties1 = new Wp.NonVisualGraphicFrameDrawingProperties();
A.GraphicFrameLocks graphicFrameLocks1 = new A.GraphicFrameLocks() { NoChangeAspect = true };
graphicFrameLocks1.AddNamespaceDeclaration("a", "http://schemas.openxmlformats.org/drawingml/2006/main");
nonVisualGraphicFrameDrawingProperties1.Append(graphicFrameLocks1);
A.Graphic graphic1 = new A.Graphic();
graphic1.AddNamespaceDeclaration("a", "http://schemas.openxmlformats.org/drawingml/2006/main");
A.GraphicData graphicData1 = new A.GraphicData() { Uri = "http://schemas.openxmlformats.org/drawingml/2006/picture" };
Pic.Picture picture1 = new Pic.Picture();
picture1.AddNamespaceDeclaration("pic", "http://schemas.openxmlformats.org/drawingml/2006/picture");
Pic.NonVisualPictureProperties nonVisualPictureProperties1 = new Pic.NonVisualPictureProperties();
Pic.NonVisualDrawingProperties nonVisualDrawingProperties1 = new Pic.NonVisualDrawingProperties() { Id = (UInt32Value)2U, Name = filename };
Pic.NonVisualPictureDrawingProperties nonVisualPictureDrawingProperties1 = new Pic.NonVisualPictureDrawingProperties();
nonVisualPictureProperties1.Append(nonVisualDrawingProperties1);
nonVisualPictureProperties1.Append(nonVisualPictureDrawingProperties1);
Pic.BlipFill blipFill1 = new Pic.BlipFill();
A.Blip blip1 = new A.Blip() { Link = shortcut };
A.Stretch stretch1 = new A.Stretch();
A.FillRectangle fillRectangle1 = new A.FillRectangle();
stretch1.Append(fillRectangle1);
blipFill1.Append(blip1);
blipFill1.Append(stretch1);
Pic.ShapeProperties shapeProperties1 = new Pic.ShapeProperties();
A.Transform2D transform2D1 = new A.Transform2D();
A.Offset offset1 = new A.Offset() { X = 0L, Y = 0L };
A.Extents extents1 = new A.Extents() { Cx = 1905000L, Cy = 1190625L };
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);
shapeProperties1.Append(transform2D1);
shapeProperties1.Append(presetGeometry1);
picture1.Append(nonVisualPictureProperties1);
picture1.Append(blipFill1);
picture1.Append(shapeProperties1);
//.........这里部分代码省略.........
示例15: GenerateMainDocumentPart1Content
// Generates content of mainDocumentPart1.
private void GenerateMainDocumentPart1Content(MainDocumentPart mainDocumentPart1)
{
Document document1 = new Document() { MCAttributes = new MarkupCompatibilityAttributes() { Ignorable = "w14 wp14" } };
document1.AddNamespaceDeclaration("wpc", "http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas");
document1.AddNamespaceDeclaration("mc", "http://schemas.openxmlformats.org/markup-compatibility/2006");
document1.AddNamespaceDeclaration("o", "urn:schemas-microsoft-com:office:office");
document1.AddNamespaceDeclaration("r", "http://schemas.openxmlformats.org/officeDocument/2006/relationships");
document1.AddNamespaceDeclaration("m", "http://schemas.openxmlformats.org/officeDocument/2006/math");
document1.AddNamespaceDeclaration("v", "urn:schemas-microsoft-com:vml");
document1.AddNamespaceDeclaration("wp14", "http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing");
document1.AddNamespaceDeclaration("wp", "http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing");
document1.AddNamespaceDeclaration("w10", "urn:schemas-microsoft-com:office:word");
document1.AddNamespaceDeclaration("w", "http://schemas.openxmlformats.org/wordprocessingml/2006/main");
document1.AddNamespaceDeclaration("w14", "http://schemas.microsoft.com/office/word/2010/wordml");
document1.AddNamespaceDeclaration("wpg", "http://schemas.microsoft.com/office/word/2010/wordprocessingGroup");
document1.AddNamespaceDeclaration("wpi", "http://schemas.microsoft.com/office/word/2010/wordprocessingInk");
document1.AddNamespaceDeclaration("wne", "http://schemas.microsoft.com/office/word/2006/wordml");
document1.AddNamespaceDeclaration("wps", "http://schemas.microsoft.com/office/word/2010/wordprocessingShape");
Body body1 = new Body();
Paragraph paragraph1 = new Paragraph() { RsidParagraphAddition = "00365B67", RsidRunAdditionDefault = "00D831F8" };
Run run1 = new Run();
RunProperties runProperties1 = new RunProperties();
NoProof noProof1 = new NoProof();
runProperties1.Append(noProof1);
Drawing drawing1 = new Drawing();
Wp.Inline inline1 = new Wp.Inline() { DistanceFromTop = (UInt32Value)0U, DistanceFromBottom = (UInt32Value)0U, DistanceFromLeft = (UInt32Value)0U, DistanceFromRight = (UInt32Value)0U };
Wp.Extent extent1 = new Wp.Extent() { Cx = 5486400L, Cy = 3200400L };
Wp.EffectExtent effectExtent1 = new Wp.EffectExtent() { LeftEdge = 0L, TopEdge = 0L, RightEdge = 19050L, BottomEdge = 19050L };
Wp.DocProperties docProperties1 = new Wp.DocProperties() { Id = (UInt32Value)1U, Name = "Chart 1" };
Wp.NonVisualGraphicFrameDrawingProperties nonVisualGraphicFrameDrawingProperties1 = new Wp.NonVisualGraphicFrameDrawingProperties();
A.Graphic graphic1 = new A.Graphic();
graphic1.AddNamespaceDeclaration("a", "http://schemas.openxmlformats.org/drawingml/2006/main");
A.GraphicData graphicData1 = new A.GraphicData() { Uri = "http://schemas.openxmlformats.org/drawingml/2006/chart" };
C.ChartReference chartReference1 = new C.ChartReference() { Id = "rId7" };
chartReference1.AddNamespaceDeclaration("c", "http://schemas.openxmlformats.org/drawingml/2006/chart");
chartReference1.AddNamespaceDeclaration("r", "http://schemas.openxmlformats.org/officeDocument/2006/relationships");
graphicData1.Append(chartReference1);
graphic1.Append(graphicData1);
inline1.Append(extent1);
inline1.Append(effectExtent1);
inline1.Append(docProperties1);
inline1.Append(nonVisualGraphicFrameDrawingProperties1);
inline1.Append(graphic1);
drawing1.Append(inline1);
run1.Append(runProperties1);
run1.Append(drawing1);
paragraph1.Append(run1);
Table table1 = new Table();
TableProperties tableProperties1 = new TableProperties();
TableWidth tableWidth1 = new TableWidth() { Width = "9527", Type = TableWidthUnitValues.Dxa };
TableBorders tableBorders1 = new TableBorders();
TopBorder topBorder1 = new TopBorder() { Val = BorderValues.Single, Color = "AAAAAA", Size = (UInt32Value)6U, Space = (UInt32Value)0U };
LeftBorder leftBorder1 = new LeftBorder() { Val = BorderValues.Single, Color = "AAAAAA", Size = (UInt32Value)6U, Space = (UInt32Value)0U };
BottomBorder bottomBorder1 = new BottomBorder() { Val = BorderValues.Single, Color = "AAAAAA", Size = (UInt32Value)6U, Space = (UInt32Value)0U };
RightBorder rightBorder1 = new RightBorder() { Val = BorderValues.Single, Color = "AAAAAA", Size = (UInt32Value)6U, Space = (UInt32Value)0U };
tableBorders1.Append(topBorder1);
tableBorders1.Append(leftBorder1);
tableBorders1.Append(bottomBorder1);
tableBorders1.Append(rightBorder1);
Shading shading1 = new Shading() { Val = ShadingPatternValues.Clear, Color = "auto", Fill = "F9F9F9" };
TableCellMarginDefault tableCellMarginDefault1 = new TableCellMarginDefault();
TopMargin topMargin1 = new TopMargin() { Width = "15", Type = TableWidthUnitValues.Dxa };
TableCellLeftMargin tableCellLeftMargin1 = new TableCellLeftMargin() { Width = 15, Type = TableWidthValues.Dxa };
BottomMargin bottomMargin1 = new BottomMargin() { Width = "15", Type = TableWidthUnitValues.Dxa };
TableCellRightMargin tableCellRightMargin1 = new TableCellRightMargin() { Width = 15, Type = TableWidthValues.Dxa };
tableCellMarginDefault1.Append(topMargin1);
tableCellMarginDefault1.Append(tableCellLeftMargin1);
tableCellMarginDefault1.Append(bottomMargin1);
tableCellMarginDefault1.Append(tableCellRightMargin1);
TableLook tableLook1 = new TableLook() { Val = "04A0", FirstRow = true, LastRow = false, FirstColumn = true, LastColumn = false, NoHorizontalBand = false, NoVerticalBand = true };
tableProperties1.Append(tableWidth1);
tableProperties1.Append(tableBorders1);
tableProperties1.Append(shading1);
tableProperties1.Append(tableCellMarginDefault1);
tableProperties1.Append(tableLook1);
//.........这里部分代码省略.........