469,927 Members | 1,237 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,927 developers. It's quick & easy.

Printing a pdf stream?

I am retrieving a pdf file from a database blob field. I want to be
able to print it out on a printer now. There doesn't seem to be a way
to do this. I've seen the RawPrinterHelper class on MSDN but it
doesn't work with pdf's since they are in postscript and not RAW
format. Also the pdf.ocx print method requires you to load a pdf from
disk, which I'm not doing here. I've also tried the ShellExecute
method but once again it requires the pdf to be loaded from the disk.
I've looked at a ton of third party controls but none of them handle
printing in this way, they all require you to load from the disk first
or they only spit out pdfs for you and its up to you to handle
printing them.

Thanks

Craig

p.s. my email shown is not correct, please don't reply to it.
Nov 15 '05 #1
3 6195
can you save the pdf to disk first?
"craigg75" <cr****@gasullivan.com> wrote in message
news:45**************************@posting.google.c om...
I am retrieving a pdf file from a database blob field. I want to be
able to print it out on a printer now. There doesn't seem to be a way
to do this. I've seen the RawPrinterHelper class on MSDN but it
doesn't work with pdf's since they are in postscript and not RAW
format. Also the pdf.ocx print method requires you to load a pdf from
disk, which I'm not doing here. I've also tried the ShellExecute
method but once again it requires the pdf to be loaded from the disk.
I've looked at a ton of third party controls but none of them handle
printing in this way, they all require you to load from the disk first
or they only spit out pdfs for you and its up to you to handle
printing them.

Thanks

Craig

p.s. my email shown is not correct, please don't reply to it.

Nov 15 '05 #2
Yes I can. That's my solution for now. Save to disk then read from
disk to print. Kind of a kludge. Was hoping for a cleaner way of doing
it with in memory streams. Thanks for the reply.

"Leo Lin" <le*****@hotmail.com> wrote in message news:<ev**************@TK2MSFTNGP12.phx.gbl>...
can you save the pdf to disk first?
"craigg75" <cr****@gasullivan.com> wrote in message
news:45**************************@posting.google.c om...
I am retrieving a pdf file from a database blob field. I want to be
able to print it out on a printer now. There doesn't seem to be a way
to do this. I've seen the RawPrinterHelper class on MSDN but it
doesn't work with pdf's since they are in postscript and not RAW
format. Also the pdf.ocx print method requires you to load a pdf from
disk, which I'm not doing here. I've also tried the ShellExecute
method but once again it requires the pdf to be loaded from the disk.
I've looked at a ton of third party controls but none of them handle
printing in this way, they all require you to load from the disk first
or they only spit out pdfs for you and its up to you to handle
printing them.

Thanks

Craig

p.s. my email shown is not correct, please don't reply to it.

Nov 15 '05 #3
hi

From http://www.developmentnow.com/g/36_2...pdf-stream.htm

Posted via DevelopmentNow.com Groups
http://www.developmentnow.com
Nov 17 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

14 posts views Thread by Steven T. Hatton | last post: by
reply views Thread by notregister | last post: by
2 posts views Thread by Beginner | last post: by
reply views Thread by Iain Wilson | last post: by
7 posts views Thread by Iain Wilson | last post: by
7 posts views Thread by SpaceMarine | last post: by
1 post views Thread by Glenn | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.