Lazarus

Programming => Packages and Libraries => RichMemo => Topic started by: Fabius on June 30, 2021, 06:15:35 pm

Title: RichMemo and next page for print
Post by: Fabius on June 30, 2021, 06:15:35 pm
Hello

I can search google duck and others
I can't find how to print a next page for richmemo

you have an idea ?

thank you in advance


My code ...
   if(NnnnLignes > 65) then
   begin
   RichMemo1.
   end; 
Title: Re: RichMemo and next page for print
Post by: skalogryz on July 01, 2021, 07:45:23 pm
when you call Print() method, you need to pass TPrintParams structure.
TPrintParams contains "SelStart" and "SelLength" parameters.
Those are the first character (not the line or page) to be printed. SelLength is the number of characters to print.

It's up to you how you would consider the when the "next page" starts as long as you provide the proper SelStart and SelLength values
Title: Re: RichMemo and next page for print
Post by: Fabius on July 04, 2021, 11:17:27 am
Thank

I Try
TinyPortal © 2005-2018