• AX中对Programmable section的动态控制


    我晕,找了半天element.mm100PageHeight()取值不同的原因,结果是报表变成了横向打印。

    element.gotoYmm100(element.currentYmm100() + 1000);
                element.execute(40);
                textes = strline(element.SalesTableNotes(),0);
                somme = strlen(textes);
                j = strlen(element.SalesTableNotes());
                while ( somme <= j )
                {
                    if ( element.currentYmm100() < element.mm100PageHeight() - 3000)//sajirs26022008 added -3000
                    {
                        element.execute(30);
                    }
                    else
                    {
                        element.newPage();
                        element.execute(30);
                    }
                    i++;
                    textes =  strline(element.SalesTableNotes(),i) ;
                    somme +=  ( strlen(textes) + 1);
                    if( i > 300 )
                    {
                        somme = 9999999;
                    }
                }

    reportStringControl.heightOfWordWrappedString100mm()是做了字换行的控件高度。

  • 相关阅读:
    抽象类的练习
    Java异常处理1
    接口的应用
    接口之代理模式
    接口之工厂方法的设计模式
    给ubuntu系统换新装
    2的幂次方表示(OJ 8758)
    Fibonacci【矩阵乘法】(POJ 3070)
    斐波那契公约数(luogu 1306)
    枪战Maf (bzoj 1124)
  • 原文地址:https://www.cnblogs.com/yanluckly/p/1315962.html
Copyright © 2020-2023  润新知