Demo -
[Demo] Window Open and Print Preview[
^].
In this demo, I removed all the dependent codes and just tried to print
Hello World in the
Div
and it is working perfectly. You can check.
So, my suggestion to you is that, look at the
Developer Tool Console (like
FireBug
console in
FireFox
) and find out whether any errors are listed or not. If listed, then correct them.