trichview.com

trichview.support




Re: letterhead and watermark questions


Return to index


Author

Message

David Novo

Posted: 04/15/2005 9:43:54


The onPagePrepaint event has all the information you need. if pageNo=1

then draw a jpeg , otherwise, draw a watermark....



TRVPagePrepaintEvent = procedure (Sender: TRVPrint;

    PageNo: Integer; Canvas: TCanvas; Preview: Boolean;

    PageRect, PrintAreaRect: TRect) of object;



Robert Baker wrote:


> Sergey,

>

> That should solve the issue of getting the header and footer to print

> on the 1st page only.

> I am building a mail merge program, could you please draft a bit of

> code that would

> insert an image on the 1st page only if for example RichView1.tag = 1

> and page =1 then

> load a jpg and draw it at the top of the page.  It would also need to

> suppress the watermark

> [background image]  on the 1st page but show it on all subsequent

> pages [if page > 1]..

>

> Thank you,

>

> Robert

>

>

> "Sergey Tkachenko" <[email protected]> wrote in message

> news:[email protected]...

> > You can draw images on pages using OnPagePrepaint or

> > OnPagePostPaint events

> >

> >





Powered by ABC Amber Outlook Express Converter