用OLE的Word.Application 制作的表格怎么调整列宽?<特急>
my_word2 = Variant::CreateObject("word.application");
my_doc = my_word2.OlePropertyGet("Documents");
my_doc.OleProcedure("Add");
my_word2.OlePropertySet("Visible", (Variant)True);
my_word3 = my_word2.OlePropertyGet("ActiveDocument");
my_range = my_word3.OleFunction("Range");
my_tables = my_range.OlePropertyGet("Tables");
my_table = my_tables.OleFunction("Add", my_range,(Variant)num_rows,(Variant)num_columns);
制作的表格列等宽,怎么入参调整大小?
帮忙啊!
问题点数:0、回复次数:2Top
1 楼runnerrunning(千寻失业ing&那是我所不能了解的事)回复于 2003-09-19 15:47:21 得分 0
好久没有做报表了
好久没有做报表了
好久没有做报表了
好久没有做报表了
好久没有做报表了
Top
2 楼7rainbow(七彩虹)回复于 2003-09-19 16:21:35 得分 0
//设置行高
int row_heigth;
Variant table_row =my_table.OlePropertyGet("rows").OleFunction("Item",i);//i=第几行
table_row.OlePropertySet("Height",row_heigth);
//设置列宽
int row_Width;
Variant table_col =my_table.OlePropertyGet("Columns").OleFunction("Item",j);j=第几列
table_col.OlePropertySet("Width",row_Width);
Top



