zoukankan      html  css  js  c++  java
  • AX 2012 Excel sheet copy 和BorderLine

     //**********************************************

    //sheet copy

    abstract class SysExcelWorksheet extends SysExcel
    {
        MSOfficeVersion   version;
    }

    public SysExcelWorksheet copy()
    {
        COM newSheet = worksheet.copy(COMArgument::NoValue, this.comObject()); //add

        return SysExcelWorksheet::construct(version, newSheet);
    }

    //**********************************************

    //BorderLine

    abstract class SysExcelRange extends SysExcel
    {
        MSOfficeVersion   version;
    }

    public void BorderLine()//Add
    {
        Com        borders;
        ComVariant  LineStyle,Weight,ColorIndex;
        int        xlEdgeBottom = 9;
        int        xlContinuous = 1;
        int        xlThin =       1;
        int        xlAutomatic  = -4105;

       borders    = range.Borders() ;
       LineStyle  = borders.LineStyle(xlContinuous);
       Weight     = borders.Weight(xlThin);
       ColorIndex = borders.ColorIndex(xlAutomatic);
    }

  • 相关阅读:
    Linux中-POSIX 线程详解
    sql server 2008如何导入mdf,ldf文件
    div浏览器兼容问题
    桥(Bridge)模式
    JSTL核心标签
    filter中的dispatcher解析
    synchronized探究
    最全设计模式(转载)
    面试题总结
    企业为什么要去竞争?
  • 原文地址:https://www.cnblogs.com/fogfog/p/6472070.html
Copyright © 2011-2022 走看看