jahlxx Posted June 27, 2017 Posted June 27, 2017 Hi. Is possible to print the conten6t of a htmlmemo? I've tested some solutions posted in this forum, but allways print some blank pages. And, is possible to save the content and open later with msword? Or open directly? I've tested copy from htmlmemo, and paste in word, but don't paste the images in the memo. Thanks. Quote
Sherzod Posted June 28, 2017 Posted June 28, 2017 Hi. Is possible to print the conten6t of a htmlmemo? I've tested some solutions posted in this forum, but allways print some blank pages. Hi, Can you make a simple testcase, how you do it ? Best regards, Quote
jahlxx Posted June 28, 2017 Author Posted June 28, 2017 Ok. In the unigui demo of htmleditor, I put a button, and set this code, from some topic in the forum: procedure TMainForm.UniButton4Click(Sender: TObject);begin UniSession.AddJs(UniHTMLMemo1.jsname+'.iframeEl.dom.contentWindow.print();');end; when press the button, I print, but get some blank pages, tested with printers, and printing to pdf. And for the copy/paste issue, I insert an image in the htmlmemo, mark the whole content of the memo, copy, open msword, and paste, and only paste the text, not the images. Quote
Sherzod Posted June 28, 2017 Posted June 28, 2017 Ok. In the unigui demo of htmleditor, I put a button, and set this code, from some topic in the forum: procedure TMainForm.UniButton4Click(Sender: TObject); begin UniSession.AddJs(UniHTMLMemo1.jsname+'.iframeEl.dom.contentWindow.print();'); end; when press the button, I print, but get some blank pages, tested with printers, and printing to pdf. Hi, I couldn't reproduce this issue. Which browser are you using ?! Best regards, Quote
Sherzod Posted June 28, 2017 Posted June 28, 2017 And for the copy/paste issue, I insert an image in the htmlmemo, mark the whole content of the memo, copy, open msword, and paste, and only paste the text, not the images. How ? For this, you need to specify the path completely, including the network address (IP, port) Quote
jahlxx Posted June 28, 2017 Author Posted June 28, 2017 I'm using firefox. And for the 2nd. question, is possible to open the content of the memo in word? I'm trying to use html instead of richtext (I use richtext in my vlc apps, but with unigui can't), and trying to find any way to do same, or similar for the end user. Really, the 2nd. question is the important for me. Thanks. Quote
Sherzod Posted June 28, 2017 Posted June 28, 2017 With chrome works. Firefox issue? For me works in FF Quote
jahlxx Posted June 28, 2017 Author Posted June 28, 2017 Ok. works. Copy from memo and paste in word, works ok. but can't print. I've tested with chrome and works, but not with firefox Quote
Sherzod Posted June 28, 2017 Posted June 28, 2017 Ok. works. Copy from memo and paste in word, works ok. Fine but can't print. I've tested with chrome and works, but not with firefox Make a testcase for analyze your issue, we will try to check it Quote
jahlxx Posted June 28, 2017 Author Posted June 28, 2017 Ok. Here is. Is the htmleditor demo of unigui, with a print button HTMLEditor.zip Quote
jahlxx Posted June 28, 2017 Author Posted June 28, 2017 The name is: PDFill PDF&Image Writer The pdf is an empty pdf with 4 blank pages Quote
jahlxx Posted June 29, 2017 Author Posted June 29, 2017 I've checked with IE, FF and chrome, with the results: UniSession.AddJs(UniHTMLMemo1.jsname+'.iframeEl.dom.contentWindow.print();'); IE-> dont work. the result of print is like a screenshot FF-> don't work. the result is blank pages Chrome-> works OK Any solution? Thanks. 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.