Solved

View and Edit PDF Files in VB6

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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

747 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

14 Experts available now in Live!

Get 1:1 Help Now