OK... I'm printing an HTML page... Using uniURLFrame .
This function works when viewing PDF, but HTML does not work...
UniURLFrame1.URL :=UniMainModule.AUrlPrint + '#page=1&zoom=150';
I understand. But I have to click My button on my form and then click SEARCH Button again
Isn't there a way for me to just click on my FORM button and run the button without showing the UNIFILEUPLOAD FORM?
What is the solution to this?
I want to click on a button to apply CTR + V,
But Clipboard does not work on the client only on the server
procedure TUniNF.UniButton1Click (Sender: TObject);
begin
Uniedit1.text: = Clipboard.AsText;
end;
How can I implement this for printing? UNIMHTMFRAME, OR URLFRAME
function sendUrlToPrint(url){
var beforeUrl = 'intent:';
var afterUrl = '#Intent;';
// Intent call with component
afterUrl += 'component=ru.a402d.rawbtprinter.activity.PrintDownloadActivity;'
afterUrl += 'package=ru.a402d.rawbtprinter;end;';
document.location=beforeUrl+encodeURI(url)+afterUrl;
return false;
}
// jQuery: set onclick hook for css class print-file
$(document).ready(function(){
$('.print-file').click(function () {
return sendUrlToPrint($(this).attr('href'));
});
});
// or direct
<a href="#" onclick="return sendUrlToPrint('http(s)://yousite.com/test.txt');">.txt</a>";
link: https://rawbt.ru/start.html