"Demo Version" stamp on end-user reports
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
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
This discussion has been closed.
Comments
(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
http://www.digital-metaphors.com
info@digital-metaphors.com
Roj