Scheduled Emails with Report xls File Attached

A forum devoted to the discussion of all topics having to do with scripting and other advanced programming using iX Developer.
Post Reply
pmolix
Posts: 1
Joined: Tue May 20, 2014 5:31 pm

Scheduled Emails with Report xls File Attached

Post by pmolix »

I’ve been reading yours samples about email and report generator, and both are understood.

My challenge now is to schedule a once a day email with one attached report of that day activity.

How can I attach a file witch name is always changing?

As you know, when we create a report xls file its name contains date and hour (ex: BasicReport 21-05-2014 22.34.14.xls)

Can someone help me here.

Thanks

User avatar
Chris T.
Posts: 109
Joined: Mon Nov 20, 2017 5:29 pm

Re: Scheduled Emails with Report xls File Attached

Post by Chris T. »

Please have a look here: https://www.beijerelectronics.us/en-US/ ... ocId=58767 for attaching the report to the email.

For the name being dynamic it would be best to script the entire report generation this way you get to dictate the name.

public void GenerateReport(
GenerateReportAction generateReportAction,
string reportName,
FileDirectory fileDirectory,
string destinationPath
)


You can find more information by pressing F1 in the script section and searching reports.
Best regards,
Christopher
(801) 708-6690
Technical Support
Contact Us

Beijer Electronics AB
http://www.beijerelectronics.us

Post Reply