Comments (7)
This seems to happen due to the arrow function in
<body onload="window.print(); setTimeout(()=>{ window.close(); }, 0)">
if you replace the code with
<body onload="window.print(); setTimeout(function() { window.close(); }, 0)">
it will work in IE 11
from ngx-print.
I'm experiencing the same issue. Where should I apply that fix? Name of the file? Thanks
from ngx-print.
I'm experiencing the same issue. Where should I apply that fix? Name of the file? Thanks
Check out the print()
method in src/lib/ngx-print.directive.ts
from ngx-print.
created a pull request: https://github.com/selemxmn/ngx-print/pull/71
from ngx-print.
this should be fixed with @MiroKov 's pr
from ngx-print.
@broem
Hi Ben, it wasn't fixed, probably because there was another timeout function in there that I missed.
Hopefully #74 shoud fix it.
from ngx-print.
With #74 will work. I have applied the change to the sintax in node_modules' scripts, and then it worked.
from ngx-print.
Related Issues (20)
- Select elements do not print currently selected item HOT 1
- 'ngx-print' package not perfectly working in my angular project HOT 7
- Replace about:blank with hostname in footer on chrome
- Is there a plan for converting to standalone ?
- Preview mode on older versions HOT 1
- ngx-print printing extra page when printing one page HOT 3
- Blank Space After First Page HOT 3
- Error in install ngx-print with angular 15.0.1 HOT 1
- Release versions for Angular 16 (and 17) HOT 2
- Cannot compile with ngx-print after this weekend HOT 5
- Property '"previewOnly"' is incompatible with index signature. Type '{ alias: "previewOnly"; required: false; }' is not assignable to 'string' HOT 3
- Optional Parameter printTitle Set Function Not Working HOT 1
- NgxPrintService is missing in v1.3.1 HOT 2
- printTitle is not working in Angular 17 HOT 1
- It works fine on the browser but with electron there is no preview available
- Direct download as pdf. HOT 2
- not able to download as pdf not working HOT 1
- onafterprint event HOT 1
- Property '"previewOnly"' is incompatible with index signature. HOT 2
- Don't remove canvas or replace it to image! and don't use remove node element to change it!
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ngx-print.