unihtmlmemo使用
unihtmlmemo使用
procedure TMainForm.UniButton1Click(Sender: TObject); begin UniMemo1.Text := UniHTMLMemo1.Text; end; procedure TMainForm.UniFileUploadButton1Completed(Sender: TObject; AStream: TFileStream); begin var filename: string:='files/yn'+ formatdatetime('yyyymmddhhnnsszzz', Now) + ExtractFileExt(UniFileUploadButton1.FileName); CopyFile(PChar(AStream.FileName), PChar(filename), False); UniHTMLMemo1.Lines.Add('<img src="'+ filename +'" alt="' + ExtractFileName(UniFileUploadButton1.FileName) + '" />'); end;
本文来自博客园,作者:{咏南中间件},转载请注明原文链接:https://www.cnblogs.com/hnxxcxg/p/12723879.html