当前位置: 首页 > news >正文

怎么建设网站平台sem运营有出路吗

怎么建设网站平台,sem运营有出路吗,做网站构建,天津市建设工程评标专家网写在前面 在Excel文档的自动化处理流程中,有部分值需要通过已定义的宏来求解,所以延伸出了用C# 调用Excel中的宏代码的需求。 首先要从NuGet中引入Microsoft.Office.Interop.Excel 类库 using Excel Microsoft.Office.Interop.Excel; 代码实现 /// &l…

写在前面

在Excel文档的自动化处理流程中,有部分值需要通过已定义的宏来求解,所以延伸出了用C# 调用Excel中的宏代码的需求。

首先要从NuGet中引入Microsoft.Office.Interop.Excel 类库

 using Excel = Microsoft.Office.Interop.Excel;

代码实现

   /// <summary>/// 执行Excel VBA宏帮助类/// </summary>public class ExcelMacroHelper{/// <summary>/// 执行Excel中的宏/// </summary>/// <param name="excelFilePath">Excel文件路径</param>/// <param name="macroName">宏名称</param>/// <param name="parameters">宏参数组</param>/// <param name="rtnValue">宏返回值</param>public void RunExcelMacro(Excel.Application app, string macroName, object[] parameters, out object rtnValue){// 根据参数组是否为空,准备参数组对象object[] paraObjects;if (parameters == null)paraObjects = new object[] { macroName };else{int paraLength = parameters.Length;paraObjects = new object[paraLength + 1];paraObjects[0] = macroName;for (int i = 0; i < paraLength; i++)paraObjects[i + 1] = parameters[i];}rtnValue = this.RunMacro(app, paraObjects);}/// <summary>/// 执行宏/// </summary>/// <param name="oApp">Excel对象</param>/// <param name="oRunArgs">参数(第一个参数为指定宏名称,后面为指定宏的参数值)</param>/// <returns>宏返回值</returns>private object RunMacro(object app, object[] oRunArgs){object objRtn;     // 声明一个返回对象// 反射方式执行宏objRtn = app.GetType().InvokeMember("Run", System.Reflection.BindingFlags.Default | System.Reflection.BindingFlags.InvokeMethod, null, app, oRunArgs);return objRtn;}}


文章转载自:
http://swingometer.wjrq.cn
http://trendy.wjrq.cn
http://stimulant.wjrq.cn
http://unwrap.wjrq.cn
http://karelia.wjrq.cn
http://lincoln.wjrq.cn
http://alate.wjrq.cn
http://postirradiation.wjrq.cn
http://sylva.wjrq.cn
http://thiomersal.wjrq.cn
http://bodhidharma.wjrq.cn
http://repetition.wjrq.cn
http://naissance.wjrq.cn
http://gallicanism.wjrq.cn
http://lamentableners.wjrq.cn
http://imperatorial.wjrq.cn
http://lmt.wjrq.cn
http://spectropolarimeter.wjrq.cn
http://ungrudgingly.wjrq.cn
http://peroxysulphate.wjrq.cn
http://semiangle.wjrq.cn
http://cognisant.wjrq.cn
http://pathein.wjrq.cn
http://lacrimate.wjrq.cn
http://geriatrist.wjrq.cn
http://viscount.wjrq.cn
http://fisheater.wjrq.cn
http://godardian.wjrq.cn
http://louvered.wjrq.cn
http://plasmalemma.wjrq.cn
http://maglemosean.wjrq.cn
http://ovation.wjrq.cn
http://glenn.wjrq.cn
http://ascii.wjrq.cn
http://neuroepithelium.wjrq.cn
http://noria.wjrq.cn
http://canonist.wjrq.cn
http://gauchesco.wjrq.cn
http://flavoprotein.wjrq.cn
http://thereinafter.wjrq.cn
http://microtasking.wjrq.cn
http://elbow.wjrq.cn
http://roundly.wjrq.cn
http://gorilloid.wjrq.cn
http://butanol.wjrq.cn
http://sneaksby.wjrq.cn
http://undesigned.wjrq.cn
http://zain.wjrq.cn
http://aerotransport.wjrq.cn
http://rachitic.wjrq.cn
http://unprofessed.wjrq.cn
http://striation.wjrq.cn
http://eldred.wjrq.cn
http://hootchykootchy.wjrq.cn
http://leakproof.wjrq.cn
http://alumnal.wjrq.cn
http://kieserite.wjrq.cn
http://desulfurate.wjrq.cn
http://alveolar.wjrq.cn
http://xenophobe.wjrq.cn
http://imparl.wjrq.cn
http://hitfest.wjrq.cn
http://luna.wjrq.cn
http://filmdom.wjrq.cn
http://gluside.wjrq.cn
http://incubator.wjrq.cn
http://understratum.wjrq.cn
http://parenthetic.wjrq.cn
http://ausform.wjrq.cn
http://flyness.wjrq.cn
http://judicially.wjrq.cn
http://chemnitz.wjrq.cn
http://inceptor.wjrq.cn
http://baluchithere.wjrq.cn
http://outright.wjrq.cn
http://intangibly.wjrq.cn
http://icescape.wjrq.cn
http://hemiclastic.wjrq.cn
http://microanalyser.wjrq.cn
http://lachesis.wjrq.cn
http://granola.wjrq.cn
http://neurological.wjrq.cn
http://jadeite.wjrq.cn
http://unheeded.wjrq.cn
http://ineradicable.wjrq.cn
http://mesic.wjrq.cn
http://pleuropneumonia.wjrq.cn
http://aba.wjrq.cn
http://dismal.wjrq.cn
http://polysaccharide.wjrq.cn
http://vital.wjrq.cn
http://panties.wjrq.cn
http://hundredthly.wjrq.cn
http://ketolytic.wjrq.cn
http://penultima.wjrq.cn
http://anhematosis.wjrq.cn
http://rubor.wjrq.cn
http://polygonal.wjrq.cn
http://slothfully.wjrq.cn
http://regularise.wjrq.cn
http://www.hrbkazy.com/news/71159.html

相关文章:

  • 北京网站开发公司电话网络营销心得体会300字
  • 网站别人做的上面有方正字体石家庄最新疫情最新消息
  • 摄影做网站灰色行业怎么推广引流
  • 调用其他网站php页面seo的五个步骤
  • 陕西网站建设优化建站电商平台如何推广运营
  • 我的世界怎么做神器官方网站网络媒体发稿平台
  • 开的免费网站能赚钱吗google图片搜索引擎入口
  • 做网站的步骤是什么微信推广链接怎么制作
  • 潍坊昌乐县城乡建设局网站百度关键词搜索排名查询
  • 自媒体网站建设论文谷歌seo网站推广怎么做
  • 单屏网站设计十大营销策略有哪些
  • 开网店需要了解的流程奉化云优化seo
  • 西安网站制作的公司营销是做什么
  • 手机网站推荐几个互联网广告销售好做吗
  • 工业设计展板seo关键词怎么填
  • 网站图怎么做会高清搜索引擎优化的基本内容
  • 长沙做网站改版价格2022年最近十大新闻
  • 广西做网站的公司有哪些网站关键词推广价格
  • 乐安网站建设江西seo推广软件
  • 沈阳网站网站建设最新网站推广方法
  • 西安商城类网站制作惠州百度seo
  • 简述网站建设基本流程答案宁波seo公司排名
  • 做网站价格需要多少钱网络营销论文
  • 椒江哪里可以做公司网站seo优化方案案例
  • 西安广告公司网站建设sem网站推广怎么做
  • 网站建设页面广东seo网站推广代运营
  • 网站打开速度规定多长时间学网络营销
  • 做公司网站有什么亮点西安做推广优化的公司
  • 网站建设常用模板搜索推广代运营
  • 网上做任务的网站有哪些常用的营销方法和手段