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

Trigger External App

edited March 2005 in General
I would like to have my report generate a text file and then trigger an
external application, passing it the text file name. Is that possible?
Todd

Comments

  • edited March 2005
    Hi Todd,

    You could perhaps use the Report.AfterPrint event to call the Windows API
    function ShellExecute method if you want to maybe open the text file in
    notepad after it has been exported. See the ShellExecute topic in the
    Windows API help for more information.

    The PDF Device in RB 9.02 uses the ShellExecute method to open PDF files
    automatically once they have been created. If you would like to see how
    this method is used, take a look at the TppPDFDevice.ShellExec routine
    located in the ppPDFDevice.pas file.

    --
    Best Regards,

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