Einzelnen Beitrag anzeigen

Benutzerbild von KodeZwerg
KodeZwerg

Registriert seit: 1. Feb 2018
3.685 Beiträge
 
Delphi 11 Alexandria
 
#2

AW: Prüfen, ob Excel installiert ist

  Alt 22. Aug 2018, 15:10
Hilft Dir das weiter?
Delphi-Quellcode:
Function IsExcelInstalled : Boolean;
var
  ClassID: TCLSID;
  strOLEObject: string;
begin
  Result := False;
  strOLEObject := 'Excel.Application';
  if (CLSIDFromProgID(PWideChar(WideString(strOLEObject)), ClassID) = S_OK) then
    Result := True
   else
    Result := False;
end;
Gruß vom KodeZwerg
  Mit Zitat antworten Zitat