|
|
|||
Home Products Downloads Registered users Support Prices Order Primary Subscription |
|
||
TaxpFactory methodsCreateCreates and initializes a new TaxpAddIn object.
public
constructor Create(ComServer: TComServerObject;
AutoClass: TAutoClass;const ClassID: TGUID;
ASupportedApp: TaxpOfficeHostApp; const AAddInName, ADescription: string); Calls TAutoObjectFactory.Create. The class factory should be instantiated in the initialization section of the unit that includes the code for the TaxpAddIn it instantiates.
inherited Create(ComServer, AutoClass, ClassID,
ciMultiInstance, tmApartment);
Parameters:
Sample code:
initialization
TaxpFactory.Create(ComServer, TMySecondAddIn,
end.
Class_MySecondAddIn,ohaExcel, 'MySecondAddIn',
'This is my second COM add-in for MS Excel'); CreateExCreates and initializes a new TaxpAddIn object.
public
constructor CreateEx(ComServer: TComServerObject;
AutoClass: TAutoClass; const ClassID: TGUID;
ASupportedApps: TaxpHostAppSet; const AAddInName, ADescription: string); Calls TAutoObjectFactory.Create. The class factory should be instantiated in the initialization section of the unit that includes the code for the TaxpAddIn it instantiates.
inherited Create(ComServer, AutoClass, ClassID,
ciMultiInstance, tmApartment);
Parameters:
Sample code:
initialization
TaxpFactory.CreateEx(ComServer, TMySecondAddIn,
end.
Class_MySecondAddIn, [ohaExcel, ohaWord,
ohaOutlook], 'MySecondAddIn', 'This is my second COM add-in for MS Excel'); |
Developed forDelphi 5, 6, 7
[ Download it ] Immediate shipment
|