That is great. Thanks to you! I think this is first time ever that someones change their code so it be able to works with VFP!
>Hi Borislav,
>I tried the code below:
>
>IF FILE(FULLPATH(nextform))
> IF nextform <> firstform
> IF FILE(FULLPATH(firstform))
> DIMENSION doclist(2)
> doclist(1) = fullpath(firstform)
> doclist(2) = fullpath(nextform)
>
> *--Tried with and without the next line and also ,0 in lieu of 10
> COMARRAY(ofrmPDFTool,10)
> > WITH ofrmPDFTool.oPDFTool
> .MergeDocs(@doclist)
> .SaveToFile(newfile)
> ENDWITH
> IF FILE(FULLPATH(newfile))
> COPY FILE (FULLPATH(newfile)) TO (FULLPATH(firstform))
> ENDIF
> ENDIF
> ENDIF
>ENDIF
>
>But it returns the error:
>
>OLE Exeption error: Exception code eedfade. OLE Object may be corrupt.
>
>I contacted Gnostice (they are in India so it took overnight for a response). They were able to reproduce my problems in VFP and are building a new ocx for me to use for Foxpro. We'll see if it makes a difference on Monday hopefully.
>
>Thanks for your help.
>
>Tracy
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.