473,320 Members | 1,839 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 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 6523
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...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.