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

View and/or Print Archive file with WMF?

edited October 2001 in General
I am using rb6.02 with Delphi 5:
I had a report that print to a preprinted form and I want to save it to an
archive file (raf) that can be printed later on a plain paper.
Is it possible to view and print a report archive file with WMF image? if so
how I can do it?
Thanks,
Vinh

Comments

  • edited October 2001
    RB can't output to a WMF file natively and TExtradevices supports BMP, JPEG,
    and Tiff graphic device output, not WMF.

    RB does have an ArchiveReader component which can display and print report
    archive files.


    Cheers,

    Jim Bennett
    Digital Metaphors


  • edited October 2001
    Jim,
    You misunderstood my question.
    I am printing report a an archive files. My question is can the
    ArchiveReader print the archive report along with a WMF file(window image
    file)?
    In one of your tutorial you have a w2 and paycheck report that has a WMF
    file included. What I try to do is to not have the image file included in
    the report archive.
    Thanks,
    Vinh,

  • edited November 2001
    I think I understand a little better. In the main reports demo project
    demo#151 is using the archive reader. If you open dm0023.raf from the
    reader, you'll see that it is priting a wmf. If you do not want to archive
    the image in the .raf then in the Report.BeforePrint event you can check the
    Report.DeviceType = dtArchiveFile to set the visibility of the image
    component to false so that it won't be generated in the report.


    Cheers,

    Jim Bennett
    Digital Metaphors


  • edited November 2001
    If it does not generated in the archive report, can I print the image when I
    print from the archive file?

  • edited November 2001
    The archive report only stores the report output. The basic architecture is
    that there are page objects which hold drawcommands for each component which
    is generated on that page. If the image isn't generated as part of the
    report when it is archived, then no draw command for it is created, hence
    the report can't be regenerated f rom archive with the image. You will have
    to archive the report with the image if you want the image to appear when
    printing from archive.


    Cheers,

    Jim Bennett
    Digital Metaphors


This discussion has been closed.