Don
The code below will create a report xxxxx and insert it into a pdf called nameofpdf using xfrx.
The .t. in ..setparams( ) inserts the new report into the existing pdf without opening the pdf. Change it to .f. will open up Acrobat after the report is inserted.
The 1 in the ...setparams tell it to place the new report at the beginning of the document.
Check the xfrx documentation for the other parameters as to where to place the new pages etc.
lcfilename = nameofpdf
oxfrx = XFRX("XFRX#LISTENER")
lnret = oxfrx.setparams(lcfilename,,.T.,,,,"PDF",,,,1)
If lnret = 0
Select yyyyyy
Report Form xxxxx Object oxfrx
Else
Messagebox("ERROR Adding Final " + Alltrim(Str(lnret))) Endif
Hope this helps
Gaylen
>>How do I close a PDF Document from within Foxpro?
>>
>>I'm basically using XFRX to append a foxpro report to the end of an existing PDF but it leaves the PDF open and I want to close it, I would prefer to have the Acrobat remain open b/c more files need to be generated.
>>
>>Thanks.
>
>Hi Roy,
>I've been trying to get XFRX to create a PDF report but so far unsuccessfully. Do you have a code sample you could share?