5,928
社区成员




var
IE: Variant;
Doc:IHTMLDocument2;
InputEle: IHTMLInputElement;
begin
IE := CreateOleObject('InternetExplorer.Application');
IE.Visible := True;
IE.Navigate('C:\Test.html');
Doc := (IDispatch(IE.document) as IHTMLDocument2);
if Doc=nil then exit;
InputEle:=(Doc.all.item('A204098',0) as IHTMLInputElement);
InputEle.Value := 'TestText';
end;
最后实现处理