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

Flickering on tppviewer

edited June 2002 in General
How can I avoid flickering on a custom TppViewer?

The flickering is really bad when i scroll the contents of the viewer...

Thank you in advance

Yiannis Ioannidis

--

Comments

  • edited June 2002
    You can generate the entire report and cache the pages so the report doesn't
    generate the pages as you preview them.

    For a OnePass report, try this:

    ...
    uses
    ppTypes, ppViewr, ppDevice;

    procedure TForm1.Button1Click(Sender: TObject);
    var
    lDevice: TppDevice;
    begin
    lDevice := TppDevice.Create(Self);
    lDevice.PageSetting := psAll;
    lDevice.Publisher := ppReport1.Publisher;
    ppReport1.CachePages := True;
    ppReport1.PrintToDevices;
    ppReport1.Print;
    end;


    Cheers,

    Jim Bennett
    Digital Metaphors

  • edited June 2002
    The flickering problem happens when i use the mouse to scroll the current
    page left or right..


  • edited June 2002
    We've tested this here and it is working fine on our machines. We'll run it
    on a slower performance machine to see if there is any further optimizations
    we can add.


    Cheers,

    Jim Bennett
    Digital Metaphors

  • edited June 2002
    "Yiannis Ioannidis" wrote in message
  • edited June 2002
    Well regarding the video card, it an Intel 82815 Graphics Controler (on
    board), and i am using a Pentium III 800 MHz computer, with windows 2000.

    Anyway i did the following "trick" and seems that the problem has been
    solved..
    I ceated a descendant of tppviewer and i overrided the loaded method where I
    added the following line of code
    ScrollBox.DoubleBuffered:=True;

    I don't know how much memory consuming is this solution but the scrollbox
    doen't flicker any more

    Yiannis

This discussion has been closed.