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
RVPrint does not work, pls help ...
-
- Site Admin
- Posts: 17559
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
-
- Site Admin
- Posts: 17559
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
-
- Site Admin
- Posts: 17559
- Joined: Sat Aug 27, 2005 10:28 am
- Contact: