如何在没有插件 express 的情况下使用 Delphi 创建一个简单的 customtaskpane 并将 customtaskpane 添加到 excel。
任务窗格将有 1 个按钮(关闭)
procedure TMyAddin.OnConnection(const Application: IDispatch; ConnectMode: ext_ConnectMode; const AddInInst: IDispatch; var custom: PSafeArray);
var FApp:ExcelApplication;
CTP:TCustomTaskPane;
begin
...
CTP:=TCustomTaskPane.Create(Self);
//?
CTP.Visible:=True;
end;
使用 XE7,office2010.pas,excel2010.pas