freedowsRoO Posted May 27, 2020 Author Share Posted May 27, 2020 1 hour ago, Sherzod said: In this case. And with our solution, you can use it like this. 1. For example, you can use a combobox for select the another component id. ... YourMainButton.JSInterface.JSAssign('screenshotObjId', [YourCustomComponent.JsID]); ... 2. function click(sender, e, eOpts) { html2canvas(document.getElementById(sender.screenshotObjId), { dpi: 144 }).then(function(canvas) { var ctx = canvas.getContext("2d"); ctx.webkitImageSmoothingEnabled = false; ctx.mozImageSmoothingEnabled = false; ctx.imageSmoothingEnabled = false; var myImage = canvas.toDataURL("image/jpeg,1.0"); ajaxRequest(sender, "getData", ["base64Data= " + myImage]); }); } Sorry, it works but the problem continue =( The uniSession.SendFile still send a lot of files to save like if i had a loop im my function. I think the problem is not in the function, I think is some problem with the uniSession.SendFile command because in the second time that i click de button the Event is call just one time but de UniSession.SendFile keep send the file BEFORE the AjaxEvent be call in delphi. There is a way to clear the cache or buffer of the session? SendFile with clientEvents.rar Quote Link to comment Share on other sites More sharing options...
Sherzod Posted May 27, 2020 Share Posted May 27, 2020 3 hours ago, freedowsRoO said: but the problem continue I will try to check. 1 Quote Link to comment Share on other sites More sharing options...
freedowsRoO Posted May 27, 2020 Author Share Posted May 27, 2020 26 minutes ago, Sherzod said: I will try to check. Ok, thank you so mutch for try... Quote Link to comment Share on other sites More sharing options...
freedowsRoO Posted May 28, 2020 Author Share Posted May 28, 2020 up Quote Link to comment Share on other sites More sharing options...
freedowsRoO Posted October 13, 2020 Author Share Posted October 13, 2020 up?? Any Help? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted June 4, 2022 Share Posted June 4, 2022 On 10/13/2020 at 7:12 AM, freedowsRoO said: up?? Any Help? Hello! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.