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

Report screenshots

edited May 2007 in End User
Hello,
I want to save a screenshot(.bmp, .jpg...) of a report in my database. The
problem is that I don't know how to launch my report and generate an event
( OnReportPreview or something like that ) to launch my screenshot procedure.

I want to do something like that :

procedure OnReportPosted(Sender:TObject);
begin
screenshot();
end;

Report Builder version : 9.01
Delphi version : 7
OS : Widows XP Pro

Is someone can tell me how can I do that ?
Is someone can help me ?
Thanks a lot



--- posted by geoForum on http://delphi.newswhat.com

Comments

  • edited May 2007
    Have you considered printing an archive report and saving that in your
    database, then using the archive viewer to display it?
  • edited May 2007
    >Have you considered printing an archive report and saving that in your
    First, thanks for your answer.
    I never heard about any archive viewer in report builder.
    Do you talk about one seen before printing a report or is a module
    Archive viewer exist that I could launch from my program?

    I want to save the screenshot in my database (that already contains the
    template of my report). Your solution seem good but

    I don't know the functions to launch the archive viewer from DELPHI.

    After that, I know how to take a screenshot of a zone of my screen.

    Great thanks.



    --- posted by geoForum on http://delphi.newswhat.com
  • edited May 2007
    A report archive is a "snapshot" of a generated report that can be viewed at
    any time using the TppArchinveReader object (located on the component
    palette in Delphi. Once you generate a report, you can save it to an
    archive file or stream it to a database blob field to be viewed at a later
    time. For more information on archives, take a look at the
    TppArchiveReader, TppDBArchiveReader, topics in the ReportBuilder help and
    see the archive demos located in the \RBuilder\Demos\1. Reports\...
    directory.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited May 2007
    Great thanks !!
    Now I can display a preview of my report when my mouse is over the report
    name!
    With congratulations.



    --- posted by geoForum on http://delphi.newswhat.com
This discussion has been closed.