My goal is to print a single .pdf file on my desktop from VB6.
Can anyone help me do this?
Thank you.
Chris
Printable View
My goal is to print a single .pdf file on my desktop from VB6.
Can anyone help me do this?
Thank you.
Chris
You can use a third part pdf print driver so its nothing more then printing to that "printer". Or you can also google for many of the third party utilities for this too.
Thanks Rob...
I had googled it prior. Found some stuff but nothing too helpful. I will continue to search!
Thanks.
I had found this:
http://www.vb-helper.com/howto_print_pdf.html
However the code is not compatible with Adobe Reader 7.0!
Any help would be appreciated.
Thanks!
Yea, thats using DDE so its application version specific.
Try pdf995.
Oh, I see. Wasn't sure obviously what DDE was.
I hope I was clear too on my initial goal... when I say "print" I mean to send the pdf file to my default printer.
Thanks.
I did download pdf995...
There is always the ShellExecute API that can be used for printing.
http://support.microsoft.com/kb/238245 --> Here is the link for shellexecute API.Quote:
Originally Posted by Hack
:wave:
Thanks!
Seems to be working smoothly.
Could you please post your code? I get the Adobe Reader splash screen getting displayed when I use it.Quote:
Originally Posted by chris.cavage
ShellExecute 0&, "Print", "C:\yourfilepath.pdf", "", "", vbNormalFocus
I am getting that screen too...
Instead I used the printout property for the excel sheet I was saving as pdf.
I couldn't figure out how to silently print the .pdf
This doesn't seem to work for me. But my pdf file is stored in an internet location and so the filename starts with "http://........xxx.pdf"
The document opens if the code verb is "open" but when I do "print", nothing happens. Any help would be appreciated. thanks,
Is it possible for you to download that file to a local folder, before printing it?
This thread is 2 years old and started by another memeber. It is general policy to start new threads for your questions, rather than reviving old ones, especially if they were not started by yourself. If your question is similar or has something to do with another thread, like you have here, then just post a link to that thread in your own.