|
-
Apr 7th, 2008, 02:39 PM
#1
Thread Starter
Fanatic Member
[RESOLVED] Print .pdf from VB6
My goal is to print a single .pdf file on my desktop from VB6.
Can anyone help me do this?
Thank you.
Chris
-
Apr 7th, 2008, 03:59 PM
#2
Re: Print .pdf from VB6
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.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Apr 7th, 2008, 04:45 PM
#3
Thread Starter
Fanatic Member
Re: Print .pdf from VB6
Thanks Rob...
I had googled it prior. Found some stuff but nothing too helpful. I will continue to search!
Thanks.
-
Apr 7th, 2008, 05:13 PM
#4
Thread Starter
Fanatic Member
Re: Print .pdf from VB6
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!
-
Apr 7th, 2008, 06:45 PM
#5
Re: Print .pdf from VB6
Yea, thats using DDE so its application version specific.
Try pdf995.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Apr 7th, 2008, 07:44 PM
#6
Thread Starter
Fanatic Member
Re: Print .pdf from VB6
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...
-
Apr 8th, 2008, 06:39 AM
#7
Re: Print .pdf from VB6
There is always the ShellExecute API that can be used for printing.
-
Apr 14th, 2008, 09:20 AM
#8
Re: Print .pdf from VB6
 Originally Posted by Hack
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.
Everything that has a computer in will fail. Everything in your life, from a watch to a car to, you know, a radio, to an iPhone, it will fail if it has a computer in it. They should kill the people who made those things.- 'Woz'
save a blobFileStreamDataTable To Text Filemy blog
-
Apr 14th, 2008, 12:25 PM
#9
Thread Starter
Fanatic Member
Re: Print .pdf from VB6
Thanks!
Seems to be working smoothly.
-
Apr 14th, 2008, 10:14 PM
#10
Re: Print .pdf from VB6
 Originally Posted by chris.cavage
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.
Everything that has a computer in will fail. Everything in your life, from a watch to a car to, you know, a radio, to an iPhone, it will fail if it has a computer in it. They should kill the people who made those things.- 'Woz'
save a blobFileStreamDataTable To Text Filemy blog
-
Apr 15th, 2008, 06:34 PM
#11
Thread Starter
Fanatic Member
Re: [RESOLVED] Print .pdf from VB6
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
-
Aug 11th, 2010, 10:02 AM
#12
New Member
Re: [RESOLVED] Print .pdf from VB6
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,
-
Aug 11th, 2010, 02:32 PM
#13
Re: [RESOLVED] Print .pdf from VB6
Is it possible for you to download that file to a local folder, before printing it?
Everything that has a computer in will fail. Everything in your life, from a watch to a car to, you know, a radio, to an iPhone, it will fail if it has a computer in it. They should kill the people who made those things.- 'Woz'
save a blobFileStreamDataTable To Text Filemy blog
-
Aug 11th, 2010, 02:55 PM
#14
Re: [RESOLVED] Print .pdf from VB6
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.
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
|