private void WriteFirstPage(Costing model) { m_wordApp.Selection.ParagraphFormat.Alignment = WdParagraphAlignment.wdAlignParagraphCenter; m_wordApp.Selection.Font.Bold = 5; m_wordApp.Selection.Font.Size = 40; // m_wordApp.Selection.ParagraphFormat.Alignment = WdParagraphAlignment.wdAlignParagraphCenter; m_wordApp.Selection.TypeText("评价项目成本分析表"); //测试结束 Word.Table basicInfo = m_doc.Tables.Add(m_wordApp.Selection.Range, 23, 11); basicInfo.Borders.Enable = 1; basicInfo.Borders.OutsideLineStyle = WdLineStyle.wdLineStyleNone; basicInfo.Borders[WdBorderType.wdBorderTop].LineStyle = WdLineStyle.wdLineStyleSingle; basicInfo.Borders[WdBorderType.wdBorderBottom].LineStyle = WdLineStyle.wdLineStyleSingle; basicInfo.Columns[1].Width = 90; basicInfo.Rows[1].Height = 20; basicInfo.Cell(1, 1).Merge(basicInfo.Cell(1, 11)); basicInfo.Cell(1, 1).Select(); SetCellHeaderText("基本信息"); basicInfo.Rows[2].Height = 20; basicInfo.Cell(2, 1).Merge(basicInfo.Cell(2, 3)); basicInfo.Cell(2, 1).Select(); SetCellHeaderText("项目名称"); basicInfo.Cell(2, 2).Merge(basicInfo.Cell(2, 6)); basicInfo.Cell(2, 2).Select(); SetCellHeaderText(model.ProjectName); basicInfo.Cell(2, 3).Select(); SetCellHeaderText("项目简称"); basicInfo.Cell(2, 4).Merge(basicInfo.Cell(2, 5)); basicInfo.Cell(2, 4).Select(); SetCellHeaderText(model.ProjectSynopsis); basicInfo.Rows[3].Height = 20; basicInfo.Cell(3, 1).Merge(basicInfo.Cell(3, 3)); basicInfo.Cell(3, 1).Select(); SetCellHeaderText("业务负责人"); basicInfo.Cell(3, 2).Merge(basicInfo.Cell(3, 6)); basicInfo.Cell(3, 2).Select(); SetCellHeaderText(""); basicInfo.Cell(3, 3).Select(); SetCellHeaderText("项目编号"); basicInfo.Cell(3, 4).Merge(basicInfo.Cell(3, 5)); basicInfo.Cell(3, 4).Select(); SetCellHeaderText(""); basicInfo.Rows[4].Height = 20; basicInfo.Cell(4, 1).Merge(basicInfo.Cell(4, 3)); basicInfo.Cell(4, 1).Select(); SetCellHeaderText("项目类型"); basicInfo.Cell(4, 2).Merge(basicInfo.Cell(4, 6)); basicInfo.Cell(4, 2).Select(); SetCellHeaderText(HYZK.FrameWork.Utility.EnumHelper.GetEnumTitle((EnumType)@Convert.ToInt32(model.Type))); basicInfo.Cell(4, 3).Select(); SetCellHeaderText("客户区县"); basicInfo.Cell(4, 4).Merge(basicInfo.Cell(4, 5)); basicInfo.Cell(4, 4).Select(); SetCellHeaderText(model.CustomerCounty); basicInfo.Rows[5].Height = 20; basicInfo.Cell(5, 1).Merge(basicInfo.Cell(5, 3)); basicInfo.Cell(5, 1).Select(); SetCellHeaderText("联系人"); basicInfo.Cell(5, 2).Merge(basicInfo.Cell(5, 6)); basicInfo.Cell(5, 2).Select(); SetCellHeaderText(model.ContactsPserson); basicInfo.Cell(5, 3).Select(); SetCellHeaderText("所属乡镇"); basicInfo.Cell(5, 4).Merge(basicInfo.Cell(5, 5)); basicInfo.Cell(5, 4).Select(); SetCellHeaderText(model.Towns); basicInfo.Rows[6].Height = 20; basicInfo.Cell(6, 1).Merge(basicInfo.Cell(6, 3)); basicInfo.Cell(6, 1).Select(); SetCellHeaderText("联系方式"); basicInfo.Cell(6, 2).Merge(basicInfo.Cell(6, 6)); basicInfo.Cell(6, 2).Select(); SetCellHeaderText(model.Relation); basicInfo.Cell(6, 3).Select(); SetCellHeaderText("备注"); basicInfo.Cell(6, 4).Merge(basicInfo.Cell(6, 5)); basicInfo.Cell(6, 4).Select(); SetCellHeaderText(model.Remark); basicInfo.Rows[7].Height = 20; basicInfo.Cell(7, 1).Merge(basicInfo.Cell(7, 11)); basicInfo.Cell(7, 1).Select(); SetCellHeaderText("项目利润分析"); basicInfo.Rows[8].Height = 20; basicInfo.Cell(8, 1).Select(); SetCellHeaderText(""); basicInfo.Cell(8, 2).Merge(basicInfo.Cell(8, 3)); basicInfo.Cell(8, 2).Select(); SetCellHeaderText("项目内容"); basicInfo.Cell(8, 3).Merge(basicInfo.Cell(8, 8)); basicInfo.Cell(8, 3).Select(); SetCellHeaderText("明细"); basicInfo.Cell(8, 4).Select(); SetCellHeaderText("金额(元)"); basicInfo.Cell(8, 5).Select(); SetCellHeaderText("备注"); basicInfo.Rows[9].Height = 20; basicInfo.Cell(9, 1).Select(); SetCellHeaderText("1"); basicInfo.Cell(9, 2).Merge(basicInfo.Cell(9, 3)); basicInfo.Cell(9, 2).Select(); SetCellHeaderText("销售额"); basicInfo.Cell(9, 3).Merge(basicInfo.Cell(9, 8)); basicInfo.Cell(9, 3).Select(); SetCellHeaderText(""); basicInfo.Cell(9, 4).Select(); SetCellHeaderText(model.Sales.ToString()); basicInfo.Cell(9, 5).Select(); SetCellHeaderText("备注"); basicInfo.Rows[10].Height = 20; basicInfo.Cell(10, 1).Select(); SetCellHeaderText("2"); basicInfo.Cell(10, 2).Merge(basicInfo.Cell(10, 3)); basicInfo.Cell(10, 2).Select(); SetCellHeaderText("技术成本"); basicInfo.Cell(10, 3).Merge(basicInfo.Cell(10, 4)); basicInfo.Cell(10, 3).Select(); SetCellHeaderText("咨询类型"); basicInfo.Cell(10, 4).Select(); SetCellHeaderText("所需工时"); basicInfo.Cell(10, 5).Select(); SetCellHeaderText("咨询单价"); basicInfo.Cell(10, 6).Select(); SetCellHeaderText("外聘专家数量"); basicInfo.Cell(10, 7).Select(); SetCellHeaderText("其他"); basicInfo.Cell(10, 8).Select(); SetCellHeaderText(""); basicInfo.Cell(10, 9).Select(); SetCellHeaderText(""); basicInfo.Rows[11].Height = 20; basicInfo.Cell(11, 1).Select(); SetCellHeaderText(""); basicInfo.Cell(11, 2).Select(); SetCellHeaderText(""); basicInfo.Cell(11, 3).Select(); SetCellHeaderText(""); basicInfo.Cell(11, 4).Select(); SetCellHeaderText(""); basicInfo.Cell(11, 5).Select(); SetCellHeaderText(""); basicInfo.Cell(11, 6).Select(); SetCellHeaderText(""); basicInfo.Cell(11, 7).Select(); SetCellHeaderText(""); basicInfo.Cell(11, 8).Select(); SetCellHeaderText(""); basicInfo.Cell(11, 9).Select(); SetCellHeaderText(""); basicInfo.Cell(11, 10).Select(); SetCellHeaderText(""); basicInfo.Cell(11, 11).Select(); SetCellHeaderText(""); basicInfo.Rows[12].Height = 20; basicInfo.Cell(12, 1).Select(); SetCellHeaderText("3"); basicInfo.Cell(12, 2).Merge(basicInfo.Cell(12, 3)); basicInfo.Cell(12, 2).Select(); SetCellHeaderText("推广费(1)"); basicInfo.Cell(12, 3).Merge(basicInfo.Cell(12, 8)); basicInfo.Cell(12, 3).Select(); SetCellHeaderText("按实际发生"); basicInfo.Cell(12, 4).Select(); SetCellHeaderText(model.PromotionFee.ToString()); basicInfo.Cell(12, 5).Select(); SetCellHeaderText(""); basicInfo.Rows[13].Height = 20; basicInfo.Cell(13, 1).Select(); SetCellHeaderText("4"); basicInfo.Cell(13, 2).Merge(basicInfo.Cell(13, 3)); basicInfo.Cell(13, 2).Select(); SetCellHeaderText("推广费(2)"); basicInfo.Cell(13, 3).Merge(basicInfo.Cell(13, 8)); basicInfo.Cell(13, 3).Select(); SetCellHeaderText("按实际发生"); basicInfo.Cell(13, 4).Select(); SetCellHeaderText(""); basicInfo.Cell(13, 5).Select(); SetCellHeaderText(""); basicInfo.Rows[14].Height = 20; basicInfo.Cell(14, 1).Select(); SetCellHeaderText("5"); basicInfo.Cell(14, 2).Merge(basicInfo.Cell(14, 3)); basicInfo.Cell(14, 2).Select(); SetCellHeaderText("协作费"); basicInfo.Cell(14, 3).Merge(basicInfo.Cell(14, 8)); basicInfo.Cell(14, 3).Select(); SetCellHeaderText("(销售额-推广费)*15%"); basicInfo.Cell(14, 4).Select(); SetCellHeaderText(model.CollaborationFee.ToString()); basicInfo.Cell(14, 5).Select(); SetCellHeaderText(""); basicInfo.Rows[15].Height = 20; basicInfo.Cell(15, 1).Select(); SetCellHeaderText("6"); basicInfo.Cell(15, 2).Merge(basicInfo.Cell(15, 3)); basicInfo.Cell(15, 2).Select(); SetCellHeaderText("提成"); basicInfo.Cell(15, 3).Merge(basicInfo.Cell(15, 8)); basicInfo.Cell(15, 3).Select(); SetCellHeaderText("(销售额-推广费-协作费)*10%"); basicInfo.Cell(15, 4).Select(); SetCellHeaderText(model.Commission.ToString()); basicInfo.Cell(15, 5).Select(); SetCellHeaderText(""); basicInfo.Rows[16].Height = 20; basicInfo.Cell(16, 1).Select(); SetCellHeaderText("8"); basicInfo.Cell(16, 2).Merge(basicInfo.Cell(16, 3)); basicInfo.Cell(16, 2).Select(); SetCellHeaderText("其他费用"); basicInfo.Cell(16, 3).Merge(basicInfo.Cell(16, 8)); basicInfo.Cell(16, 3).Select(); SetCellHeaderText("实际发生费用"); basicInfo.Cell(16, 4).Select(); SetCellHeaderText(model.OtherFees.ToString()); basicInfo.Cell(16, 5).Select(); SetCellHeaderText(""); basicInfo.Rows[17].Height = 20; basicInfo.Cell(17, 1).Select(); SetCellHeaderText("9"); basicInfo.Cell(17, 2).Merge(basicInfo.Cell(17, 3)); basicInfo.Cell(17, 2).Select(); SetCellHeaderText("税金"); basicInfo.Cell(17, 3).Merge(basicInfo.Cell(17, 8)); basicInfo.Cell(17, 3).Select(); SetCellHeaderText("销售额/1.06*0.06"); basicInfo.Cell(17, 4).Select(); SetCellHeaderText(model.Tax.ToString()); basicInfo.Cell(17, 5).Select(); SetCellHeaderText(""); basicInfo.Rows[18].Height = 20; basicInfo.Cell(18, 1).Select(); SetCellHeaderText("10"); basicInfo.Cell(18, 2).Merge(basicInfo.Cell(18, 3)); basicInfo.Cell(18, 2).Select(); SetCellHeaderText("毛利润"); basicInfo.Cell(18, 3).Merge(basicInfo.Cell(18, 8)); basicInfo.Cell(18, 3).Select(); SetCellHeaderText("10=1-2-3-4-5-6-7-8-9"); basicInfo.Cell(18, 4).Select(); SetCellHeaderText(model.GrossProfit.ToString()); basicInfo.Cell(18, 5).Select(); SetCellHeaderText(""); basicInfo.Rows[19].Height = 20; basicInfo.Cell(19, 1).Select(); SetCellHeaderText("11"); basicInfo.Cell(19, 2).Merge(basicInfo.Cell(19, 3)); basicInfo.Cell(19, 2).Select(); SetCellHeaderText("毛利润率"); basicInfo.Cell(19, 3).Merge(basicInfo.Cell(19, 8)); basicInfo.Cell(19, 3).Select(); SetCellHeaderText("毛利润/销售额"); basicInfo.Cell(19, 4).Select(); SetCellHeaderText(model.GrossProfitMargin.ToString()); basicInfo.Cell(19, 5).Select(); SetCellHeaderText(""); basicInfo.Rows[20].Height = 20; basicInfo.Cell(20, 1).Merge(basicInfo.Cell(20, 11)); basicInfo.Cell(20, 1).Select(); SetCellHeaderText("审批签字栏"); basicInfo.Rows[21].Height = 20; basicInfo.Cell(21, 1).Merge(basicInfo.Cell(21, 2)); basicInfo.Cell(21, 1).Select(); SetCellHeaderText(""); basicInfo.Cell(21, 2).Merge(basicInfo.Cell(21, 3)); basicInfo.Cell(21, 2).Select(); SetCellHeaderText("签约人"); basicInfo.Cell(21, 3).Merge(basicInfo.Cell(21, 4)); basicInfo.Cell(21, 3).Select(); SetCellHeaderText("市场部"); basicInfo.Cell(21, 4).Merge(basicInfo.Cell(21, 5)); basicInfo.Cell(21, 4).Select(); SetCellHeaderText("副总经理"); basicInfo.Cell(21, 5).Merge(basicInfo.Cell(21, 6)); basicInfo.Cell(21, 5).Select(); SetCellHeaderText("总经理"); basicInfo.Cell(21, 6).Select(); SetCellHeaderText("其他"); basicInfo.Rows[22].Height = 20; basicInfo.Cell(22, 1).Merge(basicInfo.Cell(22, 2)); basicInfo.Cell(22, 1).Select(); SetCellHeaderText("签字栏"); basicInfo.Cell(22, 2).Merge(basicInfo.Cell(22, 3)); basicInfo.Cell(22, 2).Select(); SetCellHeaderText(""); basicInfo.Cell(22, 3).Merge(basicInfo.Cell(22, 4)); basicInfo.Cell(22, 3).Select(); SetCellHeaderText(""); basicInfo.Cell(22, 4).Merge(basicInfo.Cell(22, 5)); basicInfo.Cell(22, 4).Select(); SetCellHeaderText(""); basicInfo.Cell(22, 5).Merge(basicInfo.Cell(22, 6)); basicInfo.Cell(22, 5).Select(); SetCellHeaderText(""); basicInfo.Cell(22, 6).Select(); SetCellHeaderText(""); basicInfo.Rows[23].Height = 20; basicInfo.Cell(23, 1).Merge(basicInfo.Cell(23, 2)); basicInfo.Cell(23, 1).Select(); SetCellHeaderText("日期"); basicInfo.Cell(23, 2).Merge(basicInfo.Cell(23, 3)); basicInfo.Cell(23, 2).Select(); SetCellHeaderText(""); basicInfo.Cell(23, 3).Merge(basicInfo.Cell(23, 4)); basicInfo.Cell(23, 3).Select(); SetCellHeaderText(""); basicInfo.Cell(23, 4).Merge(basicInfo.Cell(23, 5)); basicInfo.Cell(23, 4).Select(); SetCellHeaderText(""); basicInfo.Cell(23, 5).Merge(basicInfo.Cell(23, 6)); basicInfo.Cell(23, 5).Select(); SetCellHeaderText(""); basicInfo.Cell(23, 6).Select(); SetCellHeaderText(""); m_wordApp.Selection.TypeText("\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n"); m_doc.Paragraphs.Add(); Word.Range range = m_doc.Paragraphs.First.Range; //Word.InlineShape shap = range.InlineShapes.AddPicture(@"NETofficeTest\NETofficeTest\bin\Debug\fv.png"); m_doc.Sections[1].Headers[WdHeaderFooterIndex.wdHeaderFooterPrimary].Range.Text = Header; m_doc.Sections[1].Footers[WdHeaderFooterIndex.wdHeaderFooterPrimary].Range.Text = Footer; m_wordApp.Selection.TypeText("\r\n"); Word.PageNumbers pns = m_wordApp.Selection.Sections[1].Headers[WdHeaderFooterIndex.wdHeaderFooterEvenPages].PageNumbers; pns.NumberStyle = WdPageNumberStyle.wdPageNumberStyleNumberInDash; pns.HeadingLevelForChapter = 0; pns.IncludeChapterNumber = false; pns.ChapterPageSeparator = WdSeparatorType.wdSeparatorHyphen; pns.RestartNumberingAtSection = false; pns.StartingNumber = 0; object pagenmbetal = WdPageNumberAlignment.wdAlignPageNumberRight; object first = true; m_wordApp.Selection.Sections[1].Footers[WdHeaderFooterIndex.wdHeaderFooterEvenPages].PageNumbers.Add(pagenmbetal, first); m_wordApp.Selection.Sections[1].Headers[WdHeaderFooterIndex.wdHeaderFooterEvenPages].PageNumbers.Add(pagenmbetal, first); }
public virtual NetOffice.WordApi.Field MarkCitation(NetOffice.WordApi.Range range, string shortCitation, object longCitation, object longCitationAutoText) { return(InvokerService.InvokeInternal.ExecuteKnownReferenceMethodGet <NetOffice.WordApi.Field>(this, "MarkCitation", typeof(NetOffice.WordApi.Field), range, shortCitation, longCitation, longCitationAutoText)); }
public virtual NetOffice.WordApi.Range Insert(NetOffice.WordApi.Range where) { return(InvokerService.InvokeInternal.ExecuteKnownReferenceMethodGet <NetOffice.WordApi.Range>(this, "Insert", typeof(NetOffice.WordApi.Range), where)); }
public virtual NetOffice.WordApi.TableOfAuthorities Add(NetOffice.WordApi.Range range, object category, object bookmark, object passim, object keepEntryFormatting) { return(InvokerService.InvokeInternal.ExecuteKnownReferenceMethodGet <NetOffice.WordApi.TableOfAuthorities>(this, "Add", typeof(NetOffice.WordApi.TableOfAuthorities), new object[] { range, category, bookmark, passim, keepEntryFormatting })); }
public virtual NetOffice.WordApi.TableOfAuthorities Add(NetOffice.WordApi.Range range, object category, object bookmark, object passim, object keepEntryFormatting, object separator, object includeSequenceName, object entrySeparator, object pageRangeSeparator, object includeCategoryHeader) { return(InvokerService.InvokeInternal.ExecuteKnownReferenceMethodGet <NetOffice.WordApi.TableOfAuthorities>(this, "Add", typeof(NetOffice.WordApi.TableOfAuthorities), new object[] { range, category, bookmark, passim, keepEntryFormatting, separator, includeSequenceName, entrySeparator, pageRangeSeparator, includeCategoryHeader })); }
public virtual NetOffice.WordApi.MailMergeField AddAsk(NetOffice.WordApi.Range range, string name, object prompt, object defaultAskText, object askOnce) { return(InvokerService.InvokeInternal.ExecuteKnownReferenceMethodGet <NetOffice.WordApi.MailMergeField>(this, "AddAsk", typeof(NetOffice.WordApi.MailMergeField), new object[] { range, name, prompt, defaultAskText, askOnce })); }
public virtual NetOffice.WordApi.Table Add(NetOffice.WordApi.Range range, Int32 numRows, Int32 numColumns, object defaultTableBehavior) { return(InvokerService.InvokeInternal.ExecuteKnownReferenceMethodGet <NetOffice.WordApi.Table>(this, "Add", typeof(NetOffice.WordApi.Table), range, numRows, numColumns, defaultTableBehavior)); }
public virtual NetOffice.WordApi.TableOfFigures Add(NetOffice.WordApi.Range range, object caption, object includeLabel, object useHeadingStyles, object upperHeadingLevel, object lowerHeadingLevel) { return(InvokerService.InvokeInternal.ExecuteKnownReferenceMethodGet <NetOffice.WordApi.TableOfFigures>(this, "Add", typeof(NetOffice.WordApi.TableOfFigures), new object[] { range, caption, includeLabel, useHeadingStyles, upperHeadingLevel, lowerHeadingLevel })); }
public virtual NetOffice.WordApi.TableOfFigures Add(NetOffice.WordApi.Range range, object caption, object includeLabel, object useHeadingStyles, object upperHeadingLevel, object lowerHeadingLevel, object useFields, object tableID, object rightAlignPageNumbers, object includePageNumbers, object addedStyles, object useHyperlinks) { return(InvokerService.InvokeInternal.ExecuteKnownReferenceMethodGet <NetOffice.WordApi.TableOfFigures>(this, "Add", typeof(NetOffice.WordApi.TableOfFigures), new object[] { range, caption, includeLabel, useHeadingStyles, upperHeadingLevel, lowerHeadingLevel, useFields, tableID, rightAlignPageNumbers, includePageNumbers, addedStyles, useHyperlinks })); }
public virtual NetOffice.WordApi.TableOfFigures Add(NetOffice.WordApi.Range range) { return(InvokerService.InvokeInternal.ExecuteKnownReferenceMethodGet <NetOffice.WordApi.TableOfFigures>(this, "Add", typeof(NetOffice.WordApi.TableOfFigures), range)); }
public virtual NetOffice.WordApi.TableOfFigures Add(NetOffice.WordApi.Range range, object caption, object includeLabel) { return(InvokerService.InvokeInternal.ExecuteKnownReferenceMethodGet <NetOffice.WordApi.TableOfFigures>(this, "Add", typeof(NetOffice.WordApi.TableOfFigures), range, caption, includeLabel)); }
public virtual NetOffice.WordApi.Field MarkEntry(NetOffice.WordApi.Range range, object entry, object entryAutoText, object tableID) { return(InvokerService.InvokeInternal.ExecuteKnownReferenceMethodGet <NetOffice.WordApi.Field>(this, "MarkEntry", typeof(NetOffice.WordApi.Field), range, entry, entryAutoText, tableID)); }
public virtual NetOffice.WordApi.Field MarkEntry(NetOffice.WordApi.Range range) { return(InvokerService.InvokeInternal.ExecuteKnownReferenceMethodGet <NetOffice.WordApi.Field>(this, "MarkEntry", typeof(NetOffice.WordApi.Field), range)); }
public virtual NetOffice.WordApi.BuildingBlock Add(string name, NetOffice.WordApi.Range range, object description) { return(InvokerService.InvokeInternal.ExecuteKnownReferenceMethodGet <NetOffice.WordApi.BuildingBlock>(this, "Add", typeof(NetOffice.WordApi.BuildingBlock), name, range, description)); }
public virtual NetOffice.WordApi.EmailSignatureEntry Add(string name, NetOffice.WordApi.Range range) { return(InvokerService.InvokeInternal.ExecuteKnownReferenceMethodGet <NetOffice.WordApi.EmailSignatureEntry>(this, "Add", typeof(NetOffice.WordApi.EmailSignatureEntry), name, range)); }
public virtual NetOffice.WordApi.BuildingBlock Add(string name, NetOffice.WordApi.Enums.WdBuildingBlockTypes type, string category, NetOffice.WordApi.Range range, object description) { return(InvokerService.InvokeInternal.ExecuteKnownReferenceMethodGet <NetOffice.WordApi.BuildingBlock>(this, "Add", typeof(NetOffice.WordApi.BuildingBlock), new object[] { name, type, category, range, description })); }
public virtual void Apply(NetOffice.WordApi.Range range) { InvokerService.InvokeInternal.ExecuteMethod(this, "Apply", range); }
public virtual NetOffice.WordApi.TableOfAuthorities Add(NetOffice.WordApi.Range range, object category, object bookmark) { return(InvokerService.InvokeInternal.ExecuteKnownReferenceMethodGet <NetOffice.WordApi.TableOfAuthorities>(this, "Add", typeof(NetOffice.WordApi.TableOfAuthorities), range, category, bookmark)); }
public virtual NetOffice.WordApi.MailMergeField AddAsk(NetOffice.WordApi.Range range, string name, object prompt) { return(InvokerService.InvokeInternal.ExecuteKnownReferenceMethodGet <NetOffice.WordApi.MailMergeField>(this, "AddAsk", typeof(NetOffice.WordApi.MailMergeField), range, name, prompt)); }
public virtual NetOffice.WordApi.Endnote Add(NetOffice.WordApi.Range range, object reference) { return(InvokerService.InvokeInternal.ExecuteKnownReferenceMethodGet <NetOffice.WordApi.Endnote>(this, "Add", typeof(NetOffice.WordApi.Endnote), range, reference)); }