Ax 导出EXCEL给范围内的每个单元格加边框
2024-08-26 05:09:29
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();
最新文章
- 4.5 .net core下直接执行SQL语句并生成DataTable
- transform图形变化
- 安装双系统window +ubuntu
- sqlserver 分区表
- Oracle自动增长的序列号
- Eclipse清除SVN密码
- django 执行原始SQL
- GZIP压缩、解压缩工具类
- Android绘画板(普通绘画模式和缩放平移绘画模式)
- 微信小程序-制作简易豆瓣笔记
- [PHP] 理解依赖注入
- C#获取文件类型
- 如何禁止复制电脑文件到U盘、禁止U盘拷贝文件
- GPG key retrieval failed
- advance shading——菲涅耳现象
- Codeforces Round #356 (Div. 1) D. Bear and Chase 暴力
- JBoss Data Grid 7.2 在OpenShift环境中的Quick Start
- C#-XML-数据传输
- JavaScript 四种显示数据方式
- POJ-2777-CountColor(线段树,位运算)
热门文章
- css3 animation实现风车转动
- Timberwolves forward Kevin Garnett to retire _洛杉矶时报
- TTS通过JavaScript调用
- NSSM - windows 服务安装工具
- cellmap for iphone
- python获取字典的key列表
- [转]C/C++ 实现文件透明加解密
- UICollectionView的使用小记录和一些说明
- Validate Disk Failover Failed
- Linux MySql install and use with c++