Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void ExcelExportHelper::SetCellValue(int lineIndex, int columnIndex, QString value)
- {
- if(!m_sheet ) {
- qDebug() << Q_FUNC_INFO << "!m_sheet";
- return;
- }
- QAxObject *cell = m_sheet->querySubObject("Cells(int,int)", lineIndex, columnIndex);
- if(!cell ) {
- qDebug() << Q_FUNC_INFO << "!cell";
- return;
- }
- cell->setProperty("Value",value);
- }
- cell->setProperty("Width",300);
- Помогла статья : [Редактирование высоты, ширины строк или столбцов][1]
Add Comment
Please, Sign In to add comment