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

Programming result of report to a RichEdit control

edited October 2003 in General
Hi,

To quickly explain my plan, I want to email results of a report but allow
the result to be edited first by the end-user. I am limiting output to
richtext capabilities so that this can be fed to a RichEdit control and
modified, then I plan on feeding that result to a database that will
eventually trigger off an email at a specified date and time.

I want to use ReportBuilder to create the templates, stored in a database.
I want to then retrieve the template, run the report against a particular
record, and send those results to the RichEdit control. How would I go
about programmatically doing this? I realise there's probably a few steps,
so all help appreciated.

Regards

Alex

Comments

  • edited October 2003
    Hi Alex,

    You may want to think about using one of the third party export tools to
    export your entire repor to RichText format rather than trying to dump your
    results into a TppRichText component. This way you could export an entire
    report to a RTF file, load it into a TRichEdit and email it from there
    automatically. I believe TExtraDevices and Pragnaan have built in emailing
    capabilities so this could also potentially be another step you could skip.

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited October 2003
    Hi Nico,

    I have TExtraDevices so understand this is one way of exporting to a file,
    and then loading into a TRichEdit, but was wondering whether there was away
    to avoid the step of sending to a physical file.

    Also what is required to retrieve a template and output it in the background
    with out the user being aware of this process ie do I need an explorer
    component to retrieve the template or is there another way? All I want the
    user to see is the TRichEdit text created from the hidden process.

    Regards

    Alex

  • edited October 2003
    You can use the ExportToStream procedure in the TXUtils unit to avoid
    creating a physical file. An example of its usage is in the manual.

    James Waler
    Waler Ltd
    http://www.waler.com
  • edited October 2003
    Great thanks James

    Alex

This discussion has been closed.