Einzelnen Beitrag anzeigen

youuu

Registriert seit: 2. Sep 2008
Ort: Kleve
822 Beiträge
 
Delphi 2010 Professional
 
#1

Get Dokument : IDispatch

  Alt 29. Jun 2014, 12:22
Hi, bis Delphi 2010 ging noch

Delphi-Quellcode:
function GetDocument( const markup: WideString ): IDispatch;
var
  doc: OleVariant;
begin
  Result := CoHtmlDocument.Create;
  doc := Result;
  doc.Open;
  doc.Write( markup );
  doc.Close;
end;
Seit XE bekomm ich die Fehlermeldung das "Die Methode Close nicht mehr vom Automatisierungsobjekt unterstützt wird"
Steven
  Mit Zitat antworten Zitat