choo Posted June 3, 2014 Posted June 3, 2014 Good afternoon. Please tell me how to print text from UniHTMLMemo. If I select all the text, the context menu by right mouse button appears, click "Print" and the text is printed . But if no text is selected, then there is no such item. How to print without selecting text? Sincerely, Alex Choo. Добрый день. Подскажите, пожалуйста, как вывести на печать текст из UniHTMLMemo. Если я выделяю весь текст, то в контекстном меню по правой кнопке мыши появляется пункт "Печать" и текст печатается прекрасно. Но если текст не выделен, то этого пункта нет. Как вывести на печать не выделяя текст? С уважением, Alex Choo. Quote
stas Posted June 4, 2014 Posted June 4, 2014 Hello try this UniSession.AddJs(MyMemo.jsname+'.iframeEl.dom.contentWindow.print();'); works on http://prime.fmsoft.net/demo/htmled.dll Regards; Quote
choo Posted June 4, 2014 Author Posted June 4, 2014 Stas, thank you very much, everything works fine. Tested in browsers: IE, Mozilla, Opera, Yahoo, Safari, Chrome. Stas, большое спасибо, все работает прекрасно. Проверил в браузерах: IE, Mozilla, Opera, Yandex, Safari, Chrome. Quote
Alessandro Posted March 7, 2017 Posted March 7, 2017 Hi... the command : UniSession.AddJs(UniURLFrame1.jsname+'.iframeEl.dom.contentWindow.print();'); works in browsers: IE, Mozilla, Opera, Yahoo, Safari, Chrome, but in new Microsoft EDGE Does not work. Can someone help me? Quote
Sherzod Posted March 7, 2017 Posted March 7, 2017 Hi, Can you try this for Microsoft EDGE?!: UniSession.AddJs(UniURLFrame1.jsname+'.iframeEl.dom.contentWindow.document.execCommand("print", false, null);'); Best regards. 1 Quote
Alessandro Posted March 7, 2017 Posted March 7, 2017 Hi, Can you try this for Microsoft EDGE?!: UniSession.AddJs(UniURLFrame1.jsname+'.iframeEl.dom.contentWindow.document.execCommand("print", false, null);'); Best regards. I may have done something wrong? The command does not work. I put the command on a button, but nothing happened. Quote
Sherzod Posted March 8, 2017 Posted March 8, 2017 Hi, Please, can you make a small testcase for this?! Best regards. Quote
Mike Posted March 18, 2017 Posted March 18, 2017 Hi, Is it possible to send a picture loaded in uniImage to the printer with this procedure? Quote
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.