Recent

Author Topic: RichMemo and next page for print  (Read 3686 times)

Fabius

  • New Member
  • *
  • Posts: 48
RichMemo and next page for print
« 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; 

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2718
    • havefunsoft.com
Re: RichMemo and next page for print
« Reply #1 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

Fabius

  • New Member
  • *
  • Posts: 48
Re: RichMemo and next page for print
« Reply #2 on: July 04, 2021, 11:17:27 am »
Thank

I Try

 

TinyPortal © 2005-2018