vue-html-to-paper icon indicating copy to clipboard operation
vue-html-to-paper copied to clipboard

On cancel or close the main window opened where a print button is embedded closes too! how do i only close the print and preview and not my main tab?

Open jovi09 opened this issue 3 years ago • 2 comments

jovi09 avatar Nov 16 '21 11:11 jovi09

@ open the index.js for VueHtmlToPaper by click on . after the line 76 add this line win.close()

MixinsSmartSystem avatar Dec 09 '21 19:12 MixinsSmartSystem

To stay on your main tab and to close only print dialogue, you need to do the following changes.

open index.js and search for the line

setTimeout(function () {window.close();}, 1); cb(); }, 1000);

and replace this code with

setTimeout(function () {}, 1); cb(); }, 1000);

Now add win.close(); after win.print(); statement.

syx-pravin avatar Jan 27 '22 08:01 syx-pravin

Just replace setTimeout(function () {window.close();}, 1); cb(); }, 1000);

with

setTimeout(function () {win.close();}, 1); cb(); }, 1000);

rayamjad avatar Apr 20 '23 09:04 rayamjad