Wrox Programmer Forums
|
Beginning VB 6 For coders who are new to Visual Basic, working in VB version 6 (not .NET).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 6th, 2006, 01:10 AM
Friend of Wrox
 
Join Date: Jan 2006
Posts: 180
Thanks: 1
Thanked 1 Time in 1 Post
Send a message via ICQ to dpkbahuguna Send a message via MSN to dpkbahuguna Send a message via Yahoo to dpkbahuguna
Default Excel to PDF through VB

Hi ALL !!!

  Can somebody help me. I need to make PDF file from Excel
  using VB.

  Thanks for any suggestion !!!!!

DPK..
__________________
DPK..
 
Old September 8th, 2006, 09:42 AM
Friend of Wrox
 
Join Date: Nov 2004
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts
Default

PDFs (in any environment) are created by printing to the "printer" that is actually the PDF creating software. You add this through the Add Printer process in the start menu of Windows. Once added, it can be selected as the printer of any Windows program.

So, from VB you would call Excel’s printing process, specifying the PDF printer driver as the printer. (Since this is a Print-To-File operation, I’m sure there will be a need to supply the destination file.)
 
Old September 9th, 2006, 05:47 AM
Friend of Wrox
 
Join Date: Jan 2006
Posts: 180
Thanks: 1
Thanked 1 Time in 1 Post
Send a message via ICQ to dpkbahuguna Send a message via MSN to dpkbahuguna Send a message via Yahoo to dpkbahuguna
Default

Thanks Brian for your reply,

can u give me that printing source..
how can i give the print command from vb..

thank you very much...

DPK..
 
Old September 13th, 2006, 02:59 PM
Friend of Wrox
 
Join Date: Nov 2004
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts
Default

Purchase Adobe Acrobat would be one way.

There are clones available, some are free. I don't know the name of any of them.

Once you "install" the software, you would go to Start > [u]S</u>ettings > [u]P</u>rinters. In the dialog that opens double-click the “Add Printer” icon, or select it then hit “Enter.” Add the PDF creating driver as a printer. Then all applications will have that “Printer” available in their list of available printers.

Regarding your question, “how [sic] can i [sic] give the print command from vb” I need to ask, “How are you handling the contact with the Excel resources (*.xls, etc.)?” Are you using a Excel.Application object?





Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel 2000 Create PDF with VBA [email protected] Excel VBA 8 March 5th, 2008 03:36 PM
Convert Excel to PDF shivavalkyre Beginning VB 6 1 March 15th, 2007 03:44 PM
Need help w/ creating PDF files in Excel ArtDecade VB.NET 2002/2003 Basics 2 June 14th, 2006 11:06 PM
excel to pdf dpkbahuguna Beginning VB 6 3 May 30th, 2006 07:00 AM
convert PDF file to XLS for Excel crmpicco Classic ASP Basics 2 November 30th, 2005 05:51 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.