trichview.com

trichview.support




Re: A blank page between pages


Return to index


Author

Message

Sergey Tkachenko

Posted: 01/28/2003 0:24:26


So, you need to print empty page between every page of document?


Use the following code instead of calling TRVPrint.Print:


for i := 1 to RVPrint.PagesCount do begin

  RVPrint.rv.DrawPage(i, Printer.Canvas,False,False);

  if i<>RVPrint.PagesCount  then begin

    Printer.NewPage;

    Printer.NewPage;

  end;

end;




> >   with RichViewEdit1 do begin

> >     Clear;

> >     AddNL('First page',0,0);

> >     AddNL('',0,0);

> >     PageBreaksBeforeItems[ItemCount-1] := True;

> >     AddNL('Third page',0,0);

> >     PageBreaksBeforeItems[ItemCount-1] := True;

> >     Format;

> >   end;

>

> The problem is that I get the RichView content

> from a field in a database, therefore I don't

> know where will be the PageBreak.

>

>





Powered by ABC Amber Outlook Express Converter