I\'m trying to print a page using this code
actually you can create an extension css and place all your css in there...
Default
mywindow.document.write('');
Then just replace it like this
just add media='print' to recognize it..
Hope it will help...