添加一addTextBox成功,如何设置其属性并填充字符串,在线等,谢谢!!!!!!
解决方案 »
- Dlephi 7 子窗体与工具栏
- 报表问题!急死了
- 这样的代码既然不执行!此贴为讨论贴!
- 关于sqlserver7.0事务的问题
- DELPHI不用BDE怎样访问ACCESS数据库?
- 请问ASCII的255代表什么?
- 用adoquery1.sql.add('select sum(price/0.97) from order')提示出错,解决后马上结铁
- 如何知道一个数是否在in一个动态数组中(不知数组的Length)?
- 怎么样将一个表中的相应字段的数据写到另一个表中去??高分奉送!
- 如何设置listview行的宽度,我想把它做宽点!
- 谁知道哪里有好的打印控件下载!
- TstringGrid右侧框图的问题!
const msoTextBox=17;
begin
TextToTextBox:=true;
try
if w.ActiveDocument.Shapes.Item(TextBox).Type = msoTextBox then
W.ActiveDocument.Shapes.Item(TextBox).TextFrame.TextRange.Text:=Text
else TextToTextBox:=false;
except
TextToTextBox:=false;
end;
End;
var name:string):boolean;
const msoTextOrientationHorizontal=1;
begin
CreateTextBox:=true;
try
name:=W.ActiveDocument.Shapes.AddTextbox
(msoTextOrientationHorizontal,Left,Top,Width,Height).Name;
except
CreateTextBox:=false;
end;
End;
var i: integer; TextBox:variant;
begin
TextBox:= workSheet.Shapes.AddTextBox(1, 20, 20,50,20).name;
workSheet.Shapes.Item(TextBox).TextFrame.TextRange.Text:='Text'; //出错行
end;出错信息:ProjectAcReport.exe raised exception class EOleError with Message 'Method 'TextRange' not supported by automation object'