PDA

View Full Version : How with using ActiveQT to merge cells in Excell



sawerset
25th March 2009, 22:28
I have connected to Excell with ActiveQT.
I need to merge several Cells. I know only numerical coordinates of cells range like (5,5) (10,10)
tried this


QAxObject* ExcelCell=ExcelCells->querySubObject("Range(Cells(int,int),Cells(int,int))",5,5,10,10);
ExcelCell->dynamicCall("Merge");


but this does not work.
What is the right way?
Please show me the sample please.