Mailing a Report

Discussion of application development using iX Developer, including but not limited to getting started, using the functions tab, properties, objects and installation.
Post Reply
jcjelektro
Posts: 40
Joined: Tue Nov 22, 2011 3:54 am
Location: Gjerlev, Denmark
Contact:

Mailing a Report

Post by jcjelektro »

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"
--
Emil Gundersen
JCJelektro.dk

mark.monroe
Posts: 824
Joined: Tue Mar 13, 2012 9:53 am

Re: Mailing a Report

Post by mark.monroe »

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.
Best Regards,
Mark Monroe

Beijer Electronics, Inc. | Applications Engineer

Post Reply