Home Server

Attachment name when using TrsClientReport

edited August 2006 in Server
I have created a handy 'command line' program that talks to a report
server using parameters that are passed in at runtime. The intended
purpose is to use this through some sort of scheduling process so that
reports can be created in folders through some automated scheduled
process. Seems to work fine.

I got the idea of adding the capability to email the result as an
attachment since the TrsClientReport object has EmailSettings and the
SendMail method.

Sending email this way also works, but the attachment is attached to
the email with the name '.pdf'. It would really be nice to get
something in there even if it is generic like 'Report.pdf'. But I
can't seem to figure out where or how this would be accomplished.

I hope I'm missing something simple here, is there a way to do this?



  • edited August 2006
    Never mind. I found EmailSettings.FileName, could have sworn I tried
    that earlier.

This discussion has been closed.