Thanks Dave - I downloaded it this morning (as well as a few other goodies
from that same blog) 

Have put it into the project and now the purchase orders are printing to PDF
perfectly, ready to email directly to supplier.

God (or whoever floats your boat) bless the FoxPro community - I am a happy
girl again..!

Tina

P.S.  It really made a difference that you put the instructions for use in
your post - thanks extra for that.


-----Original Message-----
From: Dave Thayer [mailto:[email protected]] 
Sent: Saturday, 31 July 2010 2:36 AM
To: [email protected]
Subject: Re: Print FRX to PDF

Have a look at Luis Guillermo Navas Dangel's PDFx PDF Report Listener
<http://weblogs.foxite.com/luisnavas/default.aspx>. It's free and
super easy:

>   To use it, just follow these simple steps:
>
>       1. Include PDFx.VCX in your project.
>       2. Include Dummy.Prg in your project and marked as excluded.
>       3. Copy System.APP (GDIPLUSX library) to the project folder
>       4. Copy libhpdf.dll to your Project folder.

I just added it to a project of mine and only had to use the following
VFP lines:

Local loRptLsnr As PdfListener of lib\PDFx, lcPDFFile
*
* Do some data stuff here, and populate lcPDFFile with the file name
*
loRptLsnr = NewObject('PdfListener', 'PDFx.vcx')
loRptLsnr.cTargetFileName = lcPDFFile
loRptLsnr.lOpenViewer = .T. && Optional, opens PDF after creation
Report Form reports\toc_page To Printer Prompt Object loRptLsnr

Works for me on XP and VFP 9.

HTH
dt
--
Dave Thayer
Denver, CO




_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to