?
Solved

View and Edit PDF Files in VB6

Posted on 2006-11-07
4
Medium Priority
?
2,099 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 2000 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses
Course of the Month15 days, 4 hours left to enroll

840 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