Question
· Aug 7, 2017

Producing zen reports and send them via email

 Hi,

I have a process in which at the end i produce a zen report and then i need to send it to the appropriate person.

I've used "GenerateReportToStream" method.

after that i set a context var of type %stream.Object and send to an operation that's send's out the email. 

the email is received with the attachment, but upon opening the error is "Cannot display (fileName) is of invalid format".

If i need to attach or show something please let me know.

Thank's 

Guy

Discussion (1)0
Log in or sign up to continue

Hello Guy,

it is difficult to say what the problem is. The problem could be the report generation or the way you attach the report to the email. Is the file empty? What is the size of the file? In your code you could write the report to a file on server and sent it via email and then compare the two.

Without a code review it is probably impossible to help. This is a valid case for the WRC.

Regards,

Sascha