"'Create a list of documents to Merge Dim DocList() As String ReDim DocList(0 To 1) DocList(0) = InputFile1 DocList(1) = InputFile2 ' Load Documents to merge gtPDFDocumentX1.MergeDocs (DocList) ' Save the Document gtPDFDocumentX1.SaveToFile (OutputFile) ' Free the List ReDim DocList(0)"FoxPro code:
LOCAL doclist[2] doclist[1] = FULLPATH("somefile.pdf") doclist[2] = FULLPATH("somefile2.pdf") && the array is zero based COMARRAY(gtPDFDocumentX1,0) && you may also try 10, but 0 should do it gtPDFDocumentX1.MergeDocs(@doclist) ...additionally forget about hacking with strings - this will definitly not work, cause FoxPro's COM marshaling code (the code that tranlates parameter's from the binary representation in FoxPro to the representation that is used by COM parameters) is fixed and you cannot get around it like with a normal C DLL where you can DECLARE function parameters yourself and 'fake' types by building string variables with the correct binary representation.