"Any ideas?" is the most frequently-asked question in technical forums. My answer is: yes.

Regarding PDFListener and SP2

A small clarification is obviously in order, because a couple of people have asked me when I'm "releasing" the SP2 version of PDFListener, to go with the changes I've made in RunReports.

The answer is: there is nothing I need to release. The code in PDFListener.PRG looks like this:


             FFC_HOME + "_reportlistener.vcx"

#DEFINE CLASS PDFListener AS utilityReportListener ;


... If you re-compile PDFListener.PRG with an SP2 copy of _reportlistener.vcx, you get the SP2 improvements.

The latest version of the PDFListener source is here:, but I haven’t changed anything in that source zip except for adding a non-VFP 9 version of the facility (PDFClass.PRG), as I explained when I posted the article (

PDFClass does not descend from any reportlistener class, and it is the code I used in earlier versions of FoxPro. In fact, I have used similar code, all the way back to FoxPro DOS. (I think I refactored the code for OOP around VFP 5.)

I have not made the equivalent changes in PDFClass.PRG to improve its exposure of page numbers because PDFClass does not even have a pages array. I suppose I could add one, but there isn't much point. By definition, PDFClass doesn't need to consider a report run with mixed old-style and new-style syntax, or chained reports.

Comments (10) -

  • Jamil Wright

    3/18/2009 9:07:47 PM |

    thanks for sharing this kind of information. I'll try PDFListener

  • director

    6/19/2009 4:53:05 AM |

    PDFListener helped me a lot

  • flooring

    12/8/2009 10:08:42 PM |

    What is PDFlistener and SP2?Where it is used?What are its features?

  • >L<

    12/9/2009 11:03:53 PM |


    the references are in the blog post, but (just in case you are not a bot) please see for more info on PDFListener.  If you are not a VFP programmer, don't bother, this is not for you.  (Notice the category of this post.)

  • Uwe

    12/11/2009 6:42:20 AM |


    thanks a lot

  • Day Spa Sydney

    11/21/2010 5:36:41 PM |

    Just wondering if there are going to be any further updates to PDFListener.

  • Ted

    5/11/2011 12:44:02 AM |

    Great work on the PDF post! Will give it  go

Comments are closed