Hello
Is there a simple way to generate a Report and sent it with mail?
I'm using IX 2 SP1 Runtime, on a Box PC.
Right now i have a button there generates a report file in a folder, and then opens the folder in windows. But then the user must right click on the file, and use "Send To"....
I want a smarter solution for that..
.csv export can be made in to a file called fx. export.csv.
Then it can be attached in the Mail Script example, but i think it's a problem then the report files are named differenty every time. fx. "Forbrug_rapport 31-10-2012 23.59.10.xls"
Mailing a Report
-
- Posts: 40
- Joined: Tue Nov 22, 2011 3:54 am
- Location: Gjerlev, Denmark
- Contact:
Mailing a Report
--
Emil Gundersen
JCJelektro.dk
Emil Gundersen
JCJelektro.dk
-
- Posts: 824
- Joined: Tue Mar 13, 2012 9:53 am
Re: Mailing a Report
You could use C# to look at all the files in the directory and select the one with the latest creation date. Then you can use the Mail script and send that file.
You could either look at the name of the files, or look at the file attributes and find the file with the latest creation date.
You could either look at the name of the files, or look at the file attributes and find the file with the latest creation date.
Best Regards,
Mark Monroe
Beijer Electronics, Inc. | Applications Engineer
Mark Monroe
Beijer Electronics, Inc. | Applications Engineer