Viewing acrobat files in VB6

Hi,

Consider a simple application which lists a number of pdf files. On clicking a filename, a new window opens, which allows the user to read the appropriate file. How can this be done (Note: I am not asking you about standard dialog box for opening files. The pdf file should open as a part of the application and be confined to the mdi form and the existance of the application.)

Alternatively, can the contents of the pdf file be copied to a form at runtime If so, how do you align the text justify



Answer this question

Viewing acrobat files in VB6

  • Mehmet Metin

    For VB6 or VB-NET

    I suggest you use the Adobe Acrobat ActiveX (COM). You select that COM component, make sure it gets to your toolbox, then pull it from the Toolbox to your form (named AxAcroPDF1 on the forms). You then have access to code commands to size it, make it visible (or not) and to Load pdf files. You can display the file within a window on your form (Load) - you then use the commands available within the Acro window - such as Zoom and Print.

    You need a full version of Acrobat to develop your program, but other users only need the free Reader.

    After the user clicks on the pdf file, you would have a codeline such as:

    AxAcroPDF1.LoadFile(filename)
    I do not see what you mean by the text aligment (justify). Loading and editing the pdf file are two different animals.



  • Viewing acrobat files in VB6