footer and header in muti line

General TRichView support forum. Please post your questions here
Post Reply
coolbeab
Posts: 6
Joined: Sun Jul 24, 2016 10:20 pm

footer and header in muti line

Post by coolbeab »

Hello,
is it possible to put the header in multi-line.
thanks
Sergey Tkachenko
Site Admin
Posts: 17253
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

If you use RichViewActions and TRichViewEdit, RichViewActions can draw a single line plain text headers and footers.

However, there are different ways to make headers and footers. You can prepare them in separate editors and assign to TRVPrint using SetHeader and SetFooter methods. In this case, header may be not only multiline, it can be contain any document, with tables and images.
The example can be found in Demos\DelphiUnicode\Assorted\Printing\Headers\

Alternatively, you can consider using ScaleRichView. In TSRichViewEdit, you can edit main document and headers in the same component.
coolbeab
Posts: 6
Joined: Sun Jul 24, 2016 10:20 pm

Post by coolbeab »

Hi
How can i do it, code please!
thanks
Sergey Tkachenko
Site Admin
Posts: 17253
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Please explain what do you want to see in this demo.
A combination of using RichViewActions and headers/footer defined in separate editors?
Post Reply