Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Close a PDF Document
Message
From
16/04/2008 22:59:18
 
 
To
16/04/2008 19:58:32
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
01311299
Message ID:
01311348
Views:
18
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

*** create report to insert into the auditors notes
	oxfrx = XFRX("XFRX#LISTENER")
	lnret = oxfrx.setparams(lcfilename,,.T.,,,,"PDF",,,,1)

	If lnret = 0
		Select yyyyyy && table
		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?
Previous
Reply
Map
View

Click here to load this message in the networking platform