Header and Footer - how to work with it?

General TRichView support forum. Please post your questions here
Post Reply
alexandreq
Posts: 184
Joined: Wed Jan 18, 2012 6:22 pm

Header and Footer - how to work with it?

Post by alexandreq »

Hello Sergery

I dropped a DBSrichViewEdit on my form and linked it to my table.

I want to have header and footer on my page.

My questions are:

1) Can I make it like MS WORD where I can see the header and footer with my page?

2) How can I give it 2,5 cm for header and footer and give a double click on them and edit them?

3) Do you have any simple example how to do this?

Thanks
Alex
Sergey Tkachenko
Site Admin
Posts: 17559
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

You can edit headers and footers directly in TDBSRichViewEdit, if you have a version that is new enough. They are positioned using PageProperty.HeaderY and FooterY properties (they can be assigned in the page setup dialog - TsrvActionPageSetup).

No additional code is required for this. On the contrary, you need to set some properties to hide header/footer or make them readonly.

PS: some old version of ScaleRichView may already have editable headers and footers, but they may have problems storing them in DB when used in TDBSRichViewEdit. So the newest version is highly recommended.
Post Reply