简体   繁体   中英

Itextsharp - Automatic open print preview

Itextsharp auto open windows print priview like windows.print() in javascipt. how? i want that after displaying the pdf in browser it will automatic print preview.

You could do something like this:

setTimeout(function(){ window.print(); },5000);

Where the 5000 is the time in milliseconds you want to wait before the popup

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM