Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

ppViewer

edited August 2002 in General
Hi,

I want to use the ppViewer component to view certain reports which may NOT
be printed by the user.
Using the Internal PrintPreview function from the ppReport Component has the
printbutton on it and other controls that i don't want. Using ppViewer.Show
in combination with ppReport.Print (to screen) causes both previews to be
seen by the user.

Anyone who knows how to deal with this ?


JW

Comments

  • edited August 2002
    Call Report.PrintToDevices instead of Report.Print. Use the Viewer.NextPage
    and PriorPage routines to traverse through the pages.


    procedure TForm1.Button1Click(Sender: TObject);
    begin
    ppReport1.PrintToDevices;
    end;

    procedure TForm1.Button2Click(Sender: TObject);
    begin
    ppViewer1.NextPage;
    end;

    procedure TForm1.Button3Click(Sender: TObject);
    begin
    ppViewer1.PriorPage;
    end;



    Cheers,

    Jim Bennett
    Digital Metaphors

This discussion has been closed.