Solved

View and Edit PDF Files in VB6

Posted on 2006-11-07
4
1,862 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
  • 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
LINQ return type for nested group query 6 74
ms access #TYPE! error on report when no data 4 68
VBA Shell can't Find Word document 11 77
VB6 - Convert HH:MM into Decimal 8 53
Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

861 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

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now