【发布时间】:2010-12-22 00:29:18
【问题描述】:
您好,有人可以帮我解决以下问题: 我想通过 Delphi 和 OOoTools 工具包在 scalc open office 电子表格单元格中将文本居中。
以下代码不起作用:
sRange := '$A$3:$A$3';
ooParams := CreateUnoStruct('com.sun.star.beans.PropertyValue', 1);
ooParams[0].Name := 'ToPoint';
ooParams[0].Value := sRange;
execDispatch('.uno:GoToCell', ooParams);
ooParams := CreateUnoStruct('com.sun.star.beans.PropertyValue', 1);
ooParams[0].Name := 'HorizontalJustification';
ooParams[0].Value := 'com.sun.star.table.CellHoriJustify.CENTER';
execDispatch('.uno:HorizontalJustification', ooParams);
有人知道为什么不吗? 感谢广告
【问题讨论】:
-
Bernard Marcelly 的 OOoTools 的最新版本 1.3 现已发布:bernard.marcelly.perso.sfr.fr/index2.html
标签: delphi automation openoffice.org cells centering