xbrowse Email|PDF

Post Reply
User avatar
Iris Gesser
Posts: 32
Joined: Fri Apr 22, 2016 10:19 pm

xbrowse Email|PDF

Post by Iris Gesser »

Good evening,
is it possible to send an Email with the data exported to TXT or PDF directly out of xbrowse?
Thank you and kind regards
Iris
User avatar
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Re: xbrowse Email|PDF

Post by nageswaragunupudi »

You need to write your own function for this.

Here is a sample function:

Code: Select all

function SendMail( oBrw, cPdf, cAddress )

   local oMail, cFile

   cPdf     := TrueName( cPdf )
   cFile    := cFileNoPath( cPdf )

   oBrw:Report( nil, .F., nil, nil, nil, cPDF )

   DEFINE MAIL oMail ;
      TO cAddress ;
      SUBJECT cFile ;
      TEXT "" ;
      FILES cPdf, cFile ;
      FROM USER

   ACTIVATE MAIL oMail

return nil
 
You may modify this function according to your requirements.
Regards

G. N. Rao.
Hyderabad, India
Post Reply