|
![]() |
#1 |
Программер
|
X++: RNumDateInWordConverter converter = new RNumDateInWordConverter("ru"); //direct setup "ru" for external templates com comapp, comapp2; COMVariant cv; ; if (this.makeDocument()) { ....... rowCount = 0; while select assetInventoryTrans where assetInventoryTrans.InventoryTableRecId == assetInventoryTable.RecId && assetInventoryTrans.assetStandardId == assetStandardId { assetTable = RAssetTable::find(assetInventoryTrans.AccountNum); rowCount++; excellDocument.insertRow(j); excellDocument.insertValue(ComExcelDocument_RU::numToNameCell(1, j), rowCount); ........ j++; comapp = excellDocument.getComDocument();//.Application(); comapp2 = comapp.application(); cv = comapp2.ExecuteExcel4Macro('GET.DOCUMENT(50)'); info( strfmt("%1", cv.char() )); } excellDocument.deleteRow(40); excellDocument.deleteRow(40 + rowCount); excellDocument.insertValue(ComExcelDocument_RU::numToNameCell(4, 43 + rowCount), converter.numeralsToTxt(rowCount)); excellDocument.insertValue(ComExcelDocument_RU::numToNameCell(9, 62 + rowCount), rowCount); excellDocument.visible(true); } } |
|
![]() |
#2 |
Moderator
|
Оператору info( strfmt("%1", cv.char() )); - отказать! И даже моему cv.int() - тоже... (уф!пошёл исправлять выше)
А вот cv.double() - пойдёт как надо! Потому что если мы посмотрим на конец строки, возвращаемой cv.toString(), то увидим там VT_R8, что и есть double. |
|