Показать сообщение отдельно
Старый 16.04.2012, 12:40   #7  
AxPr-r is offline
AxPr-r
Участник
Axapta Retail User
 
44 / 11 (1) +
Регистрация: 13.03.2006
Цитата:
Сообщение от alvares Посмотреть сообщение
Может кто решал эту задачу..
я решил так, думаю смысл понятен

X++:
    str getBookMark(int _fromCol, int _fromRow, int _toCol, int _toRow)
    {
        return strFmt("%1:%2", ComExcelDocument_RU::numToNameCell(_fromCol, _fromRow), ComExcelDocument_RU::numToNameCell(_toCol, _toRow));
    }
    
    void setRowHeight(str _s, int _strLen, int _row)
    {
        if(strlen(_s) > _strLen)
        {
            rowHeight = strlen(_s) / _strLen + 1;
            rowHeight = 15 * rowHeight;
        }
        else
            rowHeight = #RowHeight;

        excellDocument.setRowHeight(getBookMark(1, _row, #endColumn, _row) ,rowHeight);
    }

Последний раз редактировалось AxPr-r; 16.04.2012 в 12:47.