Add picture in Powerpoint from Memorystream

Bopibaer 1 Reputation point
2021-01-22T09:00:43.553+00:00

Hi, I am trying to add a picture to Powerpoint directly from a Memorystream, i.e. without saving the file to disk. Unfortunately Shapes.AddPicture seems to only accept actual file paths.

I want to use a Memorystream mainly for performance reasons (compared to saving to disk).

I found some quite old topics about this but without any real solution. It seems to be possible in Word and to some extent also in Excel.

Any ideas?
Thanks!

Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
3,684 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Miguel C 1 Reputation point
    2021-01-31T07:27:18.947+00:00

    Este hilo es muy interesante y tratan sobre tu problema, espero que te sea de ayuda.

    https://forums.asp.net/t/1742210.aspx?Write+contents+of+Memory+Stream+to+Microsoft+Word+Document

    0 comments No comments