Jump to content


Photo

UniHtmlMemo Nesnesine Resim Ekleme


  • Please log in to reply
9 replies to this topic

#1 pro_imaj

pro_imaj

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 619 posts

Posted 13 January 2018 - 08:40 PM

Merhaba;

 

UniHtmlMemo nesnesine resim nasıl ekleyebilirim.

 

Teşekkürler.


  • 0

#2 Delphi Developer

Delphi Developer

    Advanced Member

  • Moderators
  • 5314 posts

Posted 13 January 2018 - 08:58 PM

Hi,

This post can help you:
http://forums.unigui...nigui-possible/

Best regards,
  • 0

#3 pro_imaj

pro_imaj

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 619 posts

Posted 14 January 2018 - 09:38 AM

Thank you very much @DelphiDeveloper. There's only one thing I need to solve.
How to add images added to the original dimensions?
 
image upload width ?  height ?

  • 0

#4 Delphi Developer

Delphi Developer

    Advanced Member

  • Moderators
  • 5314 posts

Posted 14 January 2018 - 11:00 AM

Hi,

 

Try this, without width and height:

 

4. UniFileUpload1 -> OnCompleted:

procedure TMainForm.UniFileUpload1Completed(Sender: TObject;
  AStream: TFileStream);
var
  DestName : string;
  DestFolder : string;
begin
  DestFolder:=UniServerModule.StartPath+'UploadFolder\';
  DestName:=DestFolder+ExtractFileName(UniFileUpload1.FileName);
  CopyFile(PChar(AStream.FileName), PChar(DestName), False);
  //UniSession.AddJS(UniHTMLMemo1.JSName + '.execCmd(''InsertHTML'', ''<img width="138" height="87" src="'+ 'UploadFolder/' + UniFileUpload1.FileName +'"></img>'')');
  UniSession.AddJS(UniHTMLMemo1.JSName + '.execCmd(''InsertHTML'', ''<img src="'+ 'UploadFolder/' + UniFileUpload1.FileName +'"></img>'')');
end;

Best regards,


  • 0

#5 pro_imaj

pro_imaj

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 619 posts

Posted 14 January 2018 - 01:17 PM

Thank you very much.


  • 0

#6 pro_imaj

pro_imaj

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 619 posts

Posted 06 February 2018 - 04:17 PM

It's the name I added before, but when I add a different picture, it always gets the old picture.
 
I unzipped the Debug \ UploadFolder folder and delete on and I copy these files one more time, but where?
 
C:\fakepath\2.png ?
 
9mGAPr.png

  • 0

#7 Delphi Developer

Delphi Developer

    Advanced Member

  • Moderators
  • 5314 posts

Posted 06 February 2018 - 04:43 PM

Hi,

 

Sorry, can you clarify your question, issue ?!


  • 0

#8 pro_imaj

pro_imaj

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 619 posts

Posted 08 February 2018 - 10:25 AM

I told him about the video. Link here

 

Thanks


  • 0

#9 Delphi Developer

Delphi Developer

    Advanced Member

  • Moderators
  • 5314 posts

Posted 09 February 2018 - 07:23 AM

Ok, I will try to analyze it

 

Best regards,


  • 0

#10 Delphi Developer

Delphi Developer

    Advanced Member

  • Moderators
  • 5314 posts

Posted 09 February 2018 - 04:04 PM

Hi,

 

I told him about the video. Link here

 

Thanks

 

I did not fully analyze your issue, but I guess that this post can help you:

 

http://forums.unigui...ge-2#entry30321


  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users