Jump to content

Print from UniHTMLMemo


choo

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...

 

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?

Link to comment
Share on other sites

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...

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...