printing a pdf file with javascript

wxdqz

New Member
I need to print pdf files automatically from an ASP.
Ideally I would like to just print the pdf without opening it up in a child window but I haven't been successful with any of this so far.
I currently have the pdf file opening in a child window. I have tried the window.print() command for the child and I receive Access Denied. When the child window displays the pdf, it has focus and all I have to do is press CTRL-P to print. I don't want to even display the window much less make the user press additional keys. If there isn't a way to use window.print() is there a way to pass CTRL-P?
If the user is using this app then they expect this pdf to print whether it comes up in a window or not.

I'm desperate for a solution and I'd appreciate any ideas.
 
Back
Top