Search found 49 matches
- Tue Jul 11, 2017 7:33 am
- Forum: Support
- Topic: how to upload image to server and paste url as the picture to rve?
- Replies: 23
- Views: 48182
Re: how to upload image to server and paste url as the picture to rve?
Hello, when i change width and height it is strange behaviour -picture inserted with origin w,h -resizes to new w,h -disappears if to click on rve - appears, tried CurrentRVE.SetFocus; CurrentRVE.FormatAll(); CurrentRVE.Repaint(); CurrentRVE.Refresh(); CurrentRVE.Update; CurrentRVE.OnClick(Self);
- Mon Jul 10, 2017 11:09 am
- Forum: Support
- Topic: how to upload image to server and paste url as the picture to rve?
- Replies: 23
- Views: 48182
Re: how to upload image to server and paste url as the picture to rve?
Ok, solved! Your helpful forum works!
Code: Select all
ARVE.SetCurrentItemExtraIntProperty(rvepImageHeight,30,True);
ARVE.SetCurrentItemExtraIntProperty(rvepImageWidth,30,True);
- Mon Jul 10, 2017 11:03 am
- Forum: Support
- Topic: how to upload image to server and paste url as the picture to rve?
- Replies: 23
- Views: 48182
Re: how to upload image to server and paste url as the picture to rve?
One more little question - how to adjust size of pics? When i insert picture it inserts it with origin sizes, when i convert to html i see code like this <p><img width=16 height=16 alt="" style="padding : 1px;" src="http://localhost:40000/public/files/61/2017/7/8/addlist.png...
- Sun Jul 09, 2017 9:39 pm
- Forum: Support
- Topic: Encoding, WTF
- Replies: 6
- Views: 16997
Re: Encoding, WTF
there is some button, on click it saves to db, makes invisible rve or memo (depends on what is visible now), then loading back to memo and rve save in db procedure TTestsRvePanel.UpdateHTMLContenInDB; var htmlContent:string; ss:TStringStream; begin if rve.Visible then begin ss:=TStringStream.Create;...
- Sun Jul 09, 2017 3:39 pm
- Forum: Support
- Topic: how to upload image to server and paste url as the picture to rve?
- Replies: 23
- Views: 48182
Re: how to upload image to server and paste url as the picture to rve?
Perfect! It works, just works !!! Thank you very much, Sergey!!!
- Sun Jul 09, 2017 2:58 pm
- Forum: Support
- Topic: how to upload image to server and paste url as the picture to rve?
- Replies: 23
- Views: 48182
Re: how to upload image to server and paste url as the picture to rve?
As I understand, somewhere here url is not assigned again
Code: Select all
RichViewEdit1.OnImportPicture := RVAControlPanel1.DoImportPicture;
- Sun Jul 09, 2017 2:54 pm
- Forum: Support
- Topic: how to upload image to server and paste url as the picture to rve?
- Replies: 23
- Views: 48182
Re: how to upload image to server and paste url as the picture to rve?
Good evening, Sergey! yes, i use it, my code below procedure TTestsRvePanel.UpdateHTMLContenInDB; var htmlContent:string; ss:TStringStream; begin if rve.Visible then begin ss:=TStringStream.Create; try ss.Position:=0; rve.DeleteUnusedStyles(True, True, True); rve.ClearUndo; rve.SaveHTMLToStreamEx(ss...
- Sun Jul 09, 2017 9:15 am
- Forum: Support
- Topic: Encoding, WTF
- Replies: 6
- Views: 16997
Re: Encoding, WTF
Ok! Thanks!
Just i do component that is switching from rve to htmlMemo and back, so when i switch to html, in spite of <p>Привет</p> it is visible UTF - no way to fix it?
Just i do component that is switching from rve to htmlMemo and back, so when i switch to html, in spite of <p>Привет</p> it is visible UTF - no way to fix it?
- Sun Jul 09, 2017 9:04 am
- Forum: Support
- Topic: how to upload image to server and paste url as the picture to rve?
- Replies: 23
- Views: 48182
Re: how to upload image to server and paste url as the picture to rve?
Your code works perfect, but 1 problem, when i 1-st time add pic to rve i use something like this if ARVE.InsertPicture('', gr, rvvaBaseline) then // RichViewEdit1.SetCurrentItemExtraIntProperty(rvepSpacing, 0, True); ARVE.SetCurrentItemExtraStrProperty(rvespImageFileName, ALink, True); So i add url...
- Sat Jul 08, 2017 9:54 am
- Forum: Support
- Topic: Encoding, WTF
- Replies: 6
- Views: 16997
Encoding, WTF
Hello,
trying to save in HTML like this
english text ok, but russian, for example word "Привет" is saved like
WTF?
Regards,
trying to save in HTML like this
Code: Select all
rve.SaveHTMLToStreamEx(ss,'','','','','','', [rvsoUTF8,rvsoUseCheckpointsNames, rvsoUseItemImageFileNames]);
Code: Select all
<p>ПРивет</p>
Regards,
- Sun Jul 02, 2017 4:34 am
- Forum: Support
- Topic: how to upload image to server and paste url as the picture to rve?
- Replies: 23
- Views: 48182
Re: how to upload image to server and paste url as the picture to rve?
Yes, I use them, could you give a small example, please?
- Sat Jul 01, 2017 11:19 am
- Forum: Support
- Topic: how to upload image to server and paste url as the picture to rve?
- Replies: 23
- Views: 48182
Re: how to upload image to server and paste url as the picture to rve?
Hello again, tested your code. It downloads to rve well and converts well to .html file
But when i am trying to load it, using TRVHTMLImporter like this
getting the problem
https://yadi.sk/i/BQ8TpVy83Kep6C
But when i am trying to load it, using TRVHTMLImporter like this
Code: Select all
RVHTMLViewImporter.LoadFromFile(randomFilePath,rvequestion);
https://yadi.sk/i/BQ8TpVy83Kep6C
- Sat Jul 01, 2017 11:16 am
- Forum: Support
- Topic: how to upload image to server and paste url as the picture to rve?
- Replies: 23
- Views: 48182
Re: how to upload image to server and paste url as the picture to rve?
Hello again, tested your code. It downloads to rve well and converts well to .html file But when i am trying to load it to RVE, using TRVHTMLImporter like this RVHTMLViewImporter.LoadFromFile(randomFilePath,rvequestion); getting the problem (see pic on link) https://yadi.sk/i/BQ8TpVy83Kep6 how to be?
- Sun Jun 18, 2017 9:19 am
- Forum: Support
- Topic: how to upload image to server and paste url as the picture to rve?
- Replies: 23
- Views: 48182
Re: how to upload image to server and paste url as the picture to rve?
Thank you for link - that i was needed!
- Sat Jun 17, 2017 5:07 pm
- Forum: Support
- Topic: how to upload image to server and paste url as the picture to rve?
- Replies: 23
- Views: 48182
how to upload image to server and paste url as the picture to rve?
Hello, Sergey, could you give a simple idea? I want to 1. upload image to server and get url of this link ( know how to do) :D 2. paste this url as the picture to rve (don't know how to do) one idea that i can see upload pic insert file from the local storage upload to server handle OnSaveItemToFile...