Answer the question
In order to leave comments, you need to log in
How to display those columns that are not hidden in the file?
Hello.
This is how I remove the visibility from the column: ui->tableView->setColumnHidden(19, true);
The database header is displayed in Excel, in this way:
int rows = ui->tableView->horizontalHeader()->count();
int columns = ui->tableView->verticalHeader()->count();
for(int k=1; k<rows;k++)
{
QVariant header = ui->tableView->model()->headerData(k, Qt::Horizontal);
QAxObject *cell = StatSheet->querySubObject("Cells(QVariant,QVariant)", 1, k);
cell->setProperty("Value", QVariant(header));
cell->dynamicCall("Select()");
cell->dynamicCall("WrapText",1);
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question