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

微网站建设包括哪些方面/seo优化教程下载

微网站建设包括哪些方面,seo优化教程下载,做一个手机app大概需要多少钱,郑州网站模板建设原文链接http://www.cnblogs.com/dahuzizyd/archive/2007/01/08/excel_5.html 在用Excel作报表的时候,可能需要操作单元格的边框和填充颜色和纹理等操作,下面的代码说明如何设置选中的单元格的填充纹理和边框try{ThisApplication new Excel.Application…

原文链接http://www.cnblogs.com/dahuzizyd/archive/2007/01/08/excel_5.html

 

在用Excel作报表的时候,可能需要操作单元格的边框和填充颜色和纹理等操作,下面的代码说明如何设置选中的单元格的填充纹理和边框

 

try

{

       ThisApplication = new Excel.Application();

 

      ThisWorkbook = ThisApplication.Workbooks.Open("z:\\Book1.xls", Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing);

                    

 

       ThisApplication.DisplayAlerts = false;

       xlSheet = (Excel.Worksheet)ThisWorkbook.Worksheets.get_Item(1);

       Excel.Range range = xlSheet.get_Range("G4","H5");

       range.Value = "123";

                           

       Excel.Style st = ThisWorkbook.Styles.Add("PropertyBorder", Type.Missing);

                                                       

       range.Interior.Pattern = Excel.XlPattern.xlPatternCrissCross;

       range.Borders.Weight = 2;

       range.Borders.get_Item(XlBordersIndex.xlEdgeRight).LineStyle = Excel.XlLineStyle.xlContinuous;

       range.Borders.get_Item(XlBordersIndex.xlEdgeBottom).LineStyle = Excel.XlLineStyle.xlContinuous;

       range.Borders.get_Item(XlBordersIndex.xlEdgeTop).LineStyle = Excel.XlLineStyle.xlContinuous;

       range.Borders.get_Item(XlBordersIndex.xlDiagonalDown).LineStyle = Excel.XlLineStyle.xlLineStyleNone;

       range.Borders.get_Item(XlBordersIndex.xlDiagonalUp).LineStyle = Excel.XlLineStyle.xlLineStyleNone;

       range.Borders.get_Item(XlBordersIndex.xlInsideHorizontal).LineStyle = Excel.XlLineStyle.xlLineStyleNone;

       range.Borders.get_Item(XlBordersIndex.xlInsideVertical).LineStyle = Excel.XlLineStyle.xlLineStyleNone;

       range.Borders.get_Item(XlBordersIndex.xlEdgeLeft).LineStyle = Excel.XlLineStyle.xlDot;

       range.Borders.get_Item(XlBordersIndex.xlEdgeLeft).Color = System.Drawing.ColorTranslator.ToOle(Color.Red);

                           

       ThisWorkbook.SaveAs("z:\\Book2.xls", Type.Missing, Type.Missing,

              Type.Missing, Type.Missing, Type.Missing, Excel.XlSaveAsAccessMode.xlNoChange,

              Type.Missing, Type.Missing, Type.Missing, Type.Missing);

}

catch (Exception ex)

{

       MessageBox.Show(ex.Message);

}

finally

{

       ThisWorkbook.Close(Type.Missing, Type.Missing, Type.Missing);

       ThisApplication.Workbooks.Close();

 

       ThisApplication.Quit();

       System.Runtime.InteropServices.Marshal.ReleaseComObject(ThisWorkbook);

       System.Runtime.InteropServices.Marshal.ReleaseComObject(ThisApplication);

       ThisWorkbook = null;

       ThisApplication = null;

       GC.Collect();

       this.Close();

}

转载于:https://www.cnblogs.com/liutao409/archive/2010/11/05/1869602.html

http://www.lbrq.cn/news/829117.html

相关文章:

  • 哪个网站可以做职业测试/无锡百度竞价公司
  • 长春建站网站/整站排名服务
  • 关于大棚建设的网站/互联网服务平台
  • 网站类型有/软文写作实训总结
  • 贵阳公司网站建立/alexa
  • 网站开发客户需求/手机端关键词排名优化软件
  • wordpress虚拟3d网站/seo投放营销
  • wordpress多站点支付插件/怎么联系地推公司
  • 苍梧网站建设/推广运营是什么工作
  • 国外还有那种做电商的网站/谷歌推广费用
  • 人民大学网站建设/涟源网站seo
  • 做旅游网站宣传/游戏广告联盟平台
  • 黔南网站建设/成都seo培
  • 做博客网站需要工具吗/免费推广软件哪个好
  • wordpress启用多站点/优化关键词的方法正确的是
  • 链家网/如何做好网站站内优化
  • 网站建设毕业论文5000字/搜索引擎排名的三大指标
  • 网页与网站的区别/百度竞价排名商业模式
  • 西安建筑网站建设/宁波seo外包推广排名
  • 国外优秀设计网站/seo交流
  • 坪山网站开发/百度广告大全
  • asp.net做的音乐网站/推广工作的流程及内容
  • 个人摄影网站模版/网站竞价推广都有哪些
  • 做静态网站软件/优化大师的三大功能
  • 毕设做网站和app/网推团队
  • 公司网站域名如何续费/百度客服投诉中心
  • 宜春的网站建设公司/手机网页设计制作网站
  • 沈阳企业网站建设公司/知识营销
  • 做网站怎么加弹幕/网络推广公司口碑
  • 短视频免费素材网站/人工智能培训机构
  • 周末总结(2024/07/19)
  • c++——友元函数
  • AI(day10)模块化编程概念(模块、包、导入)及常见系统模块总结和第三方模块管理
  • 智象科技赋能金融、证券行业 IT 运维
  • Ansible AWX 自动化运维
  • vue中的this.$set