Page 1 of 1

RVPrint does not work, pls help ...

Posted: Tue Jan 30, 2007 4:44 pm
by CoLT
Some time ago i build a project and everything works fine with the rvprint.

Now, i compile the code with a new version of richview and the result is bad.

the preview works as before, but the printresult is squeezed in the top left of the page. i've tried to solve the problem without success

i load the text so richview

rv.Format;

RVPrint1.AssignSource(rv);
RVPrint1.FormatPages(rvdoAll);
Scrollbar1.Min := 1;
Scrollbar1.PageSize := 1;

Scrollbar1.Max := RVPrint1.PagesCount;
RVPP.ZoomMode := rvzmFullPage;
RVPP.First;

then i push the print button



procedure TForm1.PrintFile;
begin
if RV.ItemCount = 0 then
exit;

RVPrint1.AssignSource(rv);
RVPrint1.FormatPages(rvdoAll);

PrintDialog1.MinPage := 1;
PrintDialog1.MaxPage := RVPrint1.PagesCount;
PrintDialog1.FromPage := 1;
PrintDialog1.ToPage := RVPrint1.PagesCount;

if PrintDialog1.Execute then
begin
case PrintDialog1.PrintRange of
prAllPages:
RVPrint1.Print(form1.Caption, PrintDialog1.Copies, PrintDialog1.Collate);
prPageNums:
RVPrint1.PrintPages(PrintDialog1.FromPage, PrintDialog1.ToPage, 'EasyConcepts', PrintDialog1.Copies, PrintDialog1.Collate);
end;

end;

end;



What is wrong ?

thx CoLT

Posted: Wed Jan 31, 2007 8:07 am
by Sergey Tkachenko
Please send me a simple project reproducing this problem.

Posted: Wed Jan 31, 2007 9:00 am
by CoLT

Posted: Thu Feb 01, 2007 2:11 pm
by Sergey Tkachenko
On my side, your project prints text starting from 2 cm from left and top edges of paper, as it is specified in rvp1.LeftMarginMM and rvp1.TopMarginMM.

Posted: Thu Feb 01, 2007 4:16 pm
by CoLT
Image

Posted: Fri Feb 02, 2007 6:28 am
by Sergey Tkachenko
May be the problem is in PDF printer?