About Watermarks

  • Zitat

    There must be a lot of advantages/reasons to using watermarks (in view of how much energy and code you put into that feature). What are some of them?

    Also, what triggers the <TWPRichText>.OnPaintWatermark event?
    - diamond

    WPTools 5 has additional watermark support you might have seen in the code. This is not active now - the idea is to handle watermarks which habe been loaded from file *inside* the WPTools core.

    You might also have seen references to "External Pages" - this feature is already operational but not documented yet. It is a unique feature WPTools 5 to insert pages which are drawn by different code (such as metafiles exported from a RAVE or RB report) into the stream of RTF pages - - Imagine you can show the user a letter (which can be edited) and attached to this s/he sees the report which will be also sent to the client but consists of readonly pages!

    The OnPaintWatermark event is always triggered, no ViewOptions is used anymore to enable it.

    You can use it to render some lines on the background of the virtual page, draw a filling pattern or draw your letter head.

    This is the piece of code from the watermark demo - it works close to the OnPaintPage event of WPTools 4 but still different. See the comments:


    Julian Ziersch