2014年2月25日
摘要: 今天在AX2009里面写一个导出EXCEL,没有模版,这是第一次碰到,之后写完之后发现导出的数据格式不对。到处取经之后得到一下结果:定义一个Com range;SysExcelCellsexcelCells;另 range =excelCells.item(row, col).comObject(); //此处是获得区域对象之后设置格式 range.NumberFormatLocal("@"); //此处意思是设置该区域为文本格式 range.NumberFormatLocal("0.00");//设置格式为带两位小数的数字 range.NumberFo 阅读全文
posted @ 2014-02-25 22:08 AX凡人学习传 阅读(724) 评论(0) 推荐(0) 编辑