同意楼上的!
procedure TForm1.pdTriangleCreate(Aleft,Atop, Awidth, Aheight:integer;Atext:string);
begin
MyDocument:=ExcelDoc.worksheets[1];
MyDocument.Shapes.AddTextbox(1, Aleft-5,Atop-Aheight/2-3,Awidth, Aheight-5).Select;
ExcelSelection:=ExcelApp.selection;
ExcelSelection.Characters.Text := Atext;
ExcelSelection.Characters.Font.size:=8;
ExcelSelection.AutoSize:=true;
ExcelSelection.ShapeRange.Line.Transparency := 0;
ExcelSelection.ShapeRange.Line.Visible := False;
MyDocument.Shapes.AddShape(7, Aleft,Atop, Awidth, Aheight).Select;
ExcelSelection:=ExcelApp.selection;
ExcelSelection.ShapeRange.IncrementRotation(180);
end;
给你段代码参考一下!