New Forum | Previous | Next | (P-PDF) Developers
Topic: Display MULTIPLE PDF files using OLE
Conf: (P-PDF) Developers, Msg: 123934
Date: 12/16/2004 01:25 AM
I have integrated Acrobat 6.0 into a Visual Foxpro application. The app launches Acrobat 6 from a button in order to display a random number of PDF files all having a similar (but different) file name. Code follows:
AcroExchApp = CreateObject("AcroExch.App")
FOR x = 1 TO 9
name_that_file = drive+folder+"fff"+str(x) +".PDF"
IF FILE(name_that_file) && checks for existence of file
AVDoc = AcroExchApp.GetActiveDoc
All works well EXCEPT that Acrobat only ever shows the FIRST PDF file (x=1), NEVER anything beyond the first file.
What am I missing???