c++ builder2010中生成excel报表时,如何设置列宽,文字居中

c++ builder2010中生成excel报表时,怎么设置列宽,文字居中?
利用c++builder2010生成数据报表时,Sheet.OlePropertyGet("Columns", 7).OlePropertySet("ColumnWidth", 20);Sheet.OlePropertyGet("Cells").OlePropertySet("VerticalAlignment", 2); 这样设置列宽和文字居中格式 没有任何作用,是什么原因呢?
------解决思路----------------------
c++ builder2010中生成excel报表时,如何设置列宽,文字居中大兄弟啊!人家说的对啊c++ builder2010中生成excel报表时,如何设置列宽,文字居中

你把    Ex.OlePropertySet("Visible",false); //设置Excel为不可见   

改为Ex.OlePropertySet("Visible",true); //设置Excel为不可见   

然后把后面退出Excel的代码去掉,让Excel窗体显示在屏幕上,你就能看到效果了