1. 首先在Class\SysExcelRange加画边框的方法

思路用EXCEL录宏的功能得到给一批单元格画格子的VBA代码,在AX将对象转为COM对象,基本VBA代码也能装为AX内能用的内容。

public void BorderLine()
{
Com borders;
ComVariant LineStyle,Weight,ColorIndex;
int xlEdgeBottom = ;
int xlContinuous = ;
int xlThin = ;
int xlAutomatic = -; borders = range.Borders() ;
LineStyle = borders.LineStyle(xlContinuous);
Weight = borders.Weight(xlThin);
ColorIndex = borders.ColorIndex(xlAutomatic);
}

2. 在外调用

LineNum = 100;
sheet.range(Strfmt("A1:AU%1",LineNum)).BorderLine();

最新文章

  1. 4.5 .net core下直接执行SQL语句并生成DataTable
  2. transform图形变化
  3. 安装双系统window +ubuntu
  4. sqlserver 分区表
  5. Oracle自动增长的序列号
  6. Eclipse清除SVN密码
  7. django 执行原始SQL
  8. GZIP压缩、解压缩工具类
  9. Android绘画板(普通绘画模式和缩放平移绘画模式)
  10. 微信小程序-制作简易豆瓣笔记
  11. [PHP] 理解依赖注入
  12. C#获取文件类型
  13. 如何禁止复制电脑文件到U盘、禁止U盘拷贝文件
  14. GPG key retrieval failed
  15. advance shading——菲涅耳现象
  16. Codeforces Round #356 (Div. 1) D. Bear and Chase 暴力
  17. JBoss Data Grid 7.2 在OpenShift环境中的Quick Start
  18. C#-XML-数据传输
  19. JavaScript 四种显示数据方式
  20. POJ-2777-CountColor(线段树,位运算)

热门文章

  1. css3 animation实现风车转动
  2. Timberwolves forward Kevin Garnett to retire _洛杉矶时报
  3. TTS通过JavaScript调用
  4. NSSM - windows 服务安装工具
  5. cellmap for iphone
  6. python获取字典的key列表
  7. [转]C/C++ 实现文件透明加解密
  8. UICollectionView的使用小记录和一些说明
  9. Validate Disk Failover Failed
  10. Linux MySql install and use with c++