none
Save image locally then display it back RRS feed

  • Question

  • i'm developing add-in that get reports from SSRS then display it in word or excel.

    what i want to do is that i 'll call some function that in return 'll connect to the server and return to me image as byte[], so my question is

    1. How can i display this byte[] directly to the office application?
    2. Or i have to save it first locally then display it (and how i can save it locally) ?

    Thanks for help.


    Saturday, June 1, 2013 12:17 PM

Answers

  • Hi Ebram

    For any Office application except Word you'd need to save the image locally, as a file. Or, possibly, you could put it on the Clipboard then paste it into the application.

    You'll need to ask about how to do either of these things in a .NET forum appropriate for these topics. The VSTO technology supplies nothing for performing either of these tasks.

    With Word 2007 and later you'd have the option of converting the byte[] information to valid Word Open XML then using the InsertXml method to put it into the document.


    Cindy Meister, VSTO/Word MVP, my blog

    Sunday, June 2, 2013 12:24 PM
    Moderator