Jump to content
Software FX Community

Out-Chart to Send-Mail


SAPIENScripter
 Share

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...