Create excel CustomTaskPane in delphi (add-in) -


how create simple customtaskpane using delphi without add-in express , add customtaskpane excel.

taskpane have 1 button(close )

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; 

using xe7,office2010.pas,excel2010.pas

managed myself. have same issue, posting solution here

  • create add-in
  • add activex form add-in project
  • add below code addin .pas file
procedure tmyaddin.ctpfactoryavailable(const ctpfactoryinst: ictpfactory); safecall; var      ctp: _customtaskpane; //  np: tactivexformclass; begin        ctp:= ctpfactoryinst.createctp('<replace add-in name>.<replace activexform name>', 'pane caption', emptyparam); //  np := tnavigationpane(ctp.contentcontrol);     ctp.visible := true; end; 

Comments

Popular posts from this blog

How to connect android app to App engine -

gcc - MinGW's ld cannot perform PE operations on non PE output file -

php - display validation error message next to the textbox in codeigniter -