Page 1 of 1

footer and header in muti line

Posted: Tue Jul 26, 2016 5:36 pm
by coolbeab
Hello,
is it possible to put the header in multi-line.
thanks

Posted: Tue Jul 26, 2016 9:29 pm
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.

Posted: Tue Jul 26, 2016 10:40 pm
by coolbeab
Hi
How can i do it, code please!
thanks

Posted: Mon Aug 01, 2016 6:17 pm
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?