Home General

Retrieve email recipients from archivereader

edited June 2010 in General
Hi,

Is it possible to retrieve a list of recipients from the ppArchiveReader? By
this I mean:

User creates a report with group emails and prints it to several archives
due to the NewFile flag being true. Later, the ppArchiveReader is used to
load the archive file (which, if you open in a text editor, you can see
contains the recipients generated when the report was sent to archive). Is
it possible to retrieve this list of recipients at a later stage, for
example when the archive is previewed before printing it would be nice to be
able to get the list of intended recipients when the user clicks 'email'. I
can use a custom preview form to do the previewing, but there doesn't seem
to be a way to access the recipients as the
ppArchiveReader.emailsettings.recipients object is always empty.

Thanks,

Steve Branley

Comments

  • edited June 2010
    Hi Stephen,

    An archive is essentially a binary representation of each TppPage object
    generated by the report engine. With the addition of the EmailGroups
    feature, the TppPage was given a EmailSettings property that is updated each
    time a new file is created for a group.

    The Archive Reader loads the binary information into a TppPage object then
    sends each created page to the Screen Device to be processed. If you would
    like to access the Page properties, you can try using the
    ArchiveReader.OnReadPage property or try getting at the page using the
    OnReceivePage event of the Screen Device

    --
    Regards,

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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.