53
Views
4
Comments
Anyone has idea on how to Open print preview on IE with a button click? 
Question

I wan't to open the Print preview of IE 11 autimatically instead of the usual print pop up box.

2026-02-26 06-29-24
Rahul
 
MVP

Hi Jan,

can you clear more?

If you want this preview you can simple use js code-

"window.print();"



Regards

Rahul Sahu

UserImage.jpg
Jan Tyrone Valderama

Rahul Sahu wrote:

Hi Jan,

can you clear more?

If you want this preview you can simple use js code-

"window.print();"



Regards

Rahul Sahu

 

 hi, thank you for your response. I want to open the preview on Internet Explorer 11 not in chrome. if i use window.print() it shows the print popup directly not the preview:

UserImage.jpg
Jan Tyrone Valderama

Rahul Sahu wrote:

Hi Jan,

yes you are right,

see below link

https://forums.asp.net/t/1095049.aspx?access+print+preview+option+of+internet+explorer

https://stackoverflow.com/questions/230205/how-can-print-preview-be-called-from-javascript

https://stackoverflow.com/questions/2555697/window-print-not-working-in-ie 


Regards

Rahul sahu

 Hi @Rahul sahu, i already tried those solutions, but when i apply it to the outsystems i'm getting this error:
"DOM7011: The code on this page disabled back and forward caching. "

thank you
Regards,
Tyrone.

 

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.