Home End User
New Blog Posts: Merging Reports - Part 1 and Part 2

"Demo Version" stamp on end-user reports

edited April 2003 in End User
Hi

This has probably been asked hundreds of times, but I can't find it
anywhere.

Before we upgraded from 6 to 7 I downloaded the demo version (Enterprise).

I was really impressed with the yellow "Unregistered Copy" stuff that
appeared at the top of every page and thought it would be nice to include
something like that in unregistered versions of our own app.

I was thinking along the lines of the BeforePrint event, check for a footer,
if not one add it, then add a suitable label, but would this prevent the
user's own BeforePrint event from firing?

Can anyone give me any pointers?

Roj

Comments

  • edited April 2003
    Let you users code anything they want to in RAP. However, you can use the
    (public) Report.Template.OnLoadEnd event to set up a Delphi event handler
    that they can't override. Assign the Report.OnEndPage event in the OnLoadEnd
    event handler. In the OnEndPage event handler, create the draw commands for
    the demo copy. You can create TppDrawShape's and TppDrawText's that the user
    can't get rid of. Also, set the Report.PageLimit to 5 in the OnLoadEnd event
    handler. Here is an example of adding a draw command to a page:

    http://www.digital-metaphors.com/tips/AddDrawCommandToPage.zip

    Cheers,

    Jim Bennett
    Digital Metaphors


  • edited April 2003
    Thanks Jim, for the usual rapid and helpful reply.

    Roj


This discussion has been closed.