Jump to content

Print from UniHTMLMemo


choo
 Share

Recommended Posts

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.

 

Link to comment
Share on other sites

Stas, thank you very much, everything works fine.

Tested in browsers: IE, Mozilla, Opera, Yahoo, Safari, Chrome.

 

Stas, большое спасибо, все работает прекрасно.

Проверил в браузерах: IE, Mozilla, Opera, Yandex, Safari, Chrome.

Link to comment
Share on other sites

  • 2 years later...

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.
Link to comment
Share on other sites

  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...