none
.net 4.5 causing image to not render in report RRS feed

  • Question

  • Any suggestions as to why dynamic images will not render in the report if the user has .net 4.5 installed, but it will for previous versions?

    I posted this question before elsewhere, with no response.  Any suggestions is appreciated.

    Update:

    Here are the image properties:

     <Image Name="image2">
                          <Source>Database</Source>
                          <Value>=Fields!Image.Value</Value>
                          <MIMEType>image/bmp</MIMEType>
                          <Sizing>FitProportional</Sizing>
                          <ZIndex>22</ZIndex>
                          <Style />
                        </Image>

    Here is how we bind the image in code:

    [DataMember]
    public byte[] Image { get; set; }

    ...
    imgStream = new MemoryStream();
                    Image img;
                    string imagePath = Application.StartupPath + "\\Images";

                    switch (envelope.EnvelopeType)
                    {
                        case Envelope.EnvelopeTypes.liquidSealability:
                            switch (envelope.EnvelopeStatus)
                            {
                                case Envelope.EnvelopeStatuses.notEvaluated:
                                    liquidChart.Visible = false;
                                    liquidBox.Visible = true;

                                    img = Bitmap.FromFile(imagePath + "\\neLiquid.bmp");

                                    liquidBox.Image = img;

                                    img.Save(imgStream, System.Drawing.Imaging.ImageFormat.Bmp);
                                    break;
                                case Envelope.EnvelopeStatuses.noRating:
                                    liquidChart.Visible = false;
                                    liquidBox.Visible = true;

                                    img = Bitmap.FromFile(imagePath + "\\nrLiquid.bmp");

                                    liquidBox.Image = img;

                                    img.Save(imgStream, System.Drawing.Imaging.ImageFormat.Bmp);
                                    break;
                                case Envelope.EnvelopeStatuses.envelopesAvailable:
                                default:
                                    PlotEnvelope(liquidChart, envelope, imgStream);
                                    break;
    ...

    envelope.Image = imgStream.GetBuffer();
    imgStream.Close();

     
    • Edited by keimye Wednesday, February 18, 2015 3:12 PM
    Tuesday, February 17, 2015 6:23 PM