Solved

View and Edit PDF Files in VB6

Posted on 2006-11-07
4
1,949 Views
Last Modified: 2011-03-22
I am looking for a solution in VB6 that would allow me to view existing PDF files, as well as convert MS Word files to PDF. I'm able to automate MS Word to view/edit .DOC files by adding a reference to Microsoft Word 11.0 Object Library, however, when trying to do the same thing with Adobe Acrobat 7.0 Type Library it appears that Acrobat is severely limited in the same functionality.

I don't require the file to be viewing within my application itself. I would like to open in Acrobat (or Acrobat Reader) just like Word files do in MS Word when being called from my application.

I would also like to avoid any 3rd party DLL's or ActiveX controls. If there is one that is high-quality then I might consider it.

Thank you in advance for any suggestions you might have. This question will be worth the maximum points available due to my limited time available to find a solution.

Luke
0
Comment
Question by:lbussey
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 10

Expert Comment

by:cool12399
ID: 17895229
Take a look here, it gives you VB6 source code w/the purchase ($99 i guess):
http://www.p3ptools.com/index.php?category=libpdfx
0
 
LVL 10

Accepted Solution

by:
cool12399 earned 500 total points
ID: 17895231
0
 
LVL 1

Author Comment

by:lbussey
ID: 17898457
Thanks cool12399.

I actually got some of the code for the Acrobat Type lib working after find a few source code snippets for Java and ASP. After some monkeying around it now displays the PDF file. My next step is to get it to convert Word to PDF but from what I've been seeing all that requires is to use the Distiller printer.

Thanks again. I'll reward you full points, but I haven't yet had time to review either website fully to see if they contain any useful information. I'll report back here when I get things working a little more so that others can see some specifics.

Luke
0
 
LVL 10

Expert Comment

by:cool12399
ID: 17902737
Sure, thanks, np.

PS, wouldn't mind seeing some of the code you come up with after (I might be interested in creating PDFs down the road, but not sure how
easy/complicated it is... If I could simply take regular printer output and output it to a PDF, that might be useful...)
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

691 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question