rberti
4th November 2009, 15:01
Hi All.

I have a session that display a report after some processing, to show errors.
Now I´ll have to send the same report by e-mail to another user.
I wonder if is possible to use the same file, I mean, a report must be a file that is displayed, right?
I would like to get that file name to send it appended to the email...

Does anybody knows if exists a usefull variable or function? :confused:

thank's in advance!

rberti
4th November 2009, 15:26
Hi,

I found a thread with two options:

r.datafile$ and g.tmp.file.

Both at this (http://www.baanboard.com/baanboard/showthread.php?p=5194#poststop) thread.

Regards!

Hitesh Shah
9th November 2009, 06:51
If u want to send the report by email personally without any automation , print the report to bwprint preview and use file--> send to to invoke the mail agent used by u . Recipient needs to have bwclient on his machines . Same will apply to outut printed to wordpad .

If u want email to sedn automatically using other tools through program, search 'outlook automation' / mailx in this forum .

rberti
9th November 2009, 13:21
Hi Hitesh,

It works automatically, using mailx. Actualy, I thought that I could use the displayed report file to attach to a email. But then I saw that the report file needed to be interpreted :p. So I´ve found easier call another spool with the ASCIF device, manipulate the output and send the file attached.

Thanks for the reply.