472,371 Members | 1,586 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,371 software developers and data experts.

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 6442
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

14
by: Steven T. Hatton | last post by:
I'm trying to write a program like hexel. I guess I could fish out the source for hexel and look at that, but for now I'm trying to figure out how I can do with with std::stringstream and...
0
by: notregister | last post by:
Ji, i tried to use tcpclient to send a series of PCL command to a printer, but after going thru this, it print out a series of junk...the same series work well with another code i written for...
2
by: Beginner | last post by:
I have to print a Fedex shipping label on a Zebra(thermal) printer. I initially had the label information in a base64 string which I decoded into a memory stream. Now I need to send this memory...
6
by: Siv | last post by:
Hi, I am getting into printing with VB.NET 2005 and want to implement the usual capability that a user can select a selection of pages. I have a report that is generated by my application that if...
0
by: Davy | last post by:
Hi, i'm writing a .Net application for printing barcodes to my climbing club. For simplicity reasons, i've embedded my barcode font as a ressource file. When loading my font as a private font...
8
by: Microsoft News | last post by:
Greetings community at large. I have a c# app that generates a PDF file. I have a printer that prints PDF natively. But I cannot figure out how to programatically print in C# ... I can...
0
by: Iain Wilson | last post by:
I am pulling my hair out trying to print various objects from a .net web page My apologies for cross posting but I need an answer and my previous post has attracted no interest. ASP.Net 2.0...
7
by: Iain Wilson | last post by:
I am pulling my hair out trying to print various objects from a .net web page My apologies for cross posting but I need an answer and my previous post has attracted no interest. ASP.Net 2.0...
7
by: SpaceMarine | last post by:
hello, i have an application that builds up a large "incident report" for a law enforcement agency. In the end this is represented in a large object containing many properties and collections...
1
by: Glenn | last post by:
I am writing a program for field work that will use a receipt printer. I need to be able to adjust the page settings prior to printing depending on how much needs to be printed. I have been able...
2
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and efficiency. While initially associated with cryptocurrencies...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge required to effectively administer and manage Oracle...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was proposed, which integrated multiple engines and...
0
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and credentials and received a successful connection...
1
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web server and have made sure to enable curl. I get a...
0
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand. Background colors can be used to highlight important...
0
BLUEPANDA
by: BLUEPANDA | last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS starter kit that's not only easy to use but also...
0
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python has gained popularity among beginners and experts...
0
by: jack2019x | last post by:
hello, Is there code or static lib for hook swapchain present? I wanna hook dxgi swapchain present for dx11 and dx9.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.