Jump to content
Software FX Community

Out-Chart to Send-Mail


SAPIENScripter

Recommended Posts

I tried out the sample expression to pipe Out-chart to Send-Mail and it works just fine. However, it only will send the default .png format of the chart. If I try to use -output and specify a bmp file, I don't get the bitmap version of the chart, only the png.  I can get around this by splitting the expressions so that out-chart creates the bmp and then I use send-mail to send it as an attachment. But I would think I should be able to combine the two.

Link to comment
Share on other sites

We thought nobody would care much about this because bmps are not compressed so may not be too suitable for email. I am guessing that you are using a particular email client that does not support png.

Our next public build will support the output parameter when sending email (wmf will not be supported at this time, only bmp and png). An addtional advantage of -output is that we will use the file name to name the attachment, e.g.

out-chart -output MyChart.bmp | send-mail ...

This will send the email including the attachment as a bitmap named MyChart. Note that we will be using a content type of "image/x-windows-bmp", please let us know if you think this content type will not work for you.

Regards,

JuanC

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...