Цитата:
Сообщение от
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);
}