EvotecIT / PSWriteOffice

Experimental PowerShell Module to create and edit Microsoft Word, Microsoft Excel, and Microsoft PowerPoint documents without having Microsoft Office installed.
110 stars 9 forks source link

Possible to add images? #17

Closed OneFreemanWill closed 7 months ago

OneFreemanWill commented 7 months ago

Hello,

I noticed a method $Document.Images.Add, but not having any luck.

Tried specifying full and relative paths to a jpeg image but I always get error "InvalidOperation: You cannot call a method on a null-valued expression."

Am I doing it wrong, or this feature not yet implemented?

PrzemyslawKlys commented 7 months ago

I believe it's AddImage(xx) on Paragraph that works.

OneFreemanWill commented 7 months ago

Thank you, that did it!