|
-
Jun 18th, 2009, 01:54 AM
#1
Thread Starter
Not NoteMe
Show PDF AND print dialog
Is it possible. Currently i have an ashx handler file which is generating a PDF and writing it to the response stream.
Is it possible to also include some javascript or similar to show the print dialog?
Cheers for any help!
Quotes:
"I am getting better then you guys.." NoteMe, on his leet english skills.
"And I am going to meat her again later on tonight." NoteMe
"I think you should change your name to QuoteMe" Shaggy Hiker, regarding NoteMe
"my sweet lord jesus. I've decided never to have breast implants" Tom Gibbons
Have I helped you? Please Rate my posts. 
-
Jun 18th, 2009, 02:11 AM
#2
Re: Show PDF AND print dialog
Hey,
You can certainly call print using javascript, that is as simple as:
However, how you combine this with the response stream for your pdf, I am not quite sure.
Gary
-
Jun 21st, 2009, 04:53 PM
#3
Re: Show PDF AND print dialog
When streaming a file, you cannot send anything else along with it because that goes against the concept of the stream representing a resource.
If you want the PDF printed, then embed it on a page in an iframe/object tag, and call print on that element.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|