As the Title suggests, i am trying to find how to insert image in MS Word(.doc file) using ruby Win32Ole api.
I have tried the function InsertFile of Range Object but it seems, it is only made for inserting other doc file in our file in question.
Does anyone know anything related to this . It will very helpful.
相关问题
- Views base64 encoded blob in HTML with PHP
- How to get the background from multiple images by
- the application was unable to start correctly 0xc0
- Handle button click in another application
- CV2 Image Error: error: (-215:Assertion failed) !s
相关文章
- Ruby using wrong version of openssl
- Use savefig in Python with string and iterative in
- Difference between Thread#run and Thread#wakeup?
- how to call a active record named scope with a str
- System.Runtime.InteropServices.COMException (0x800
- “No explicit conversion of Symbol into String” for
- Where does this quality loss on Images come from?
- Why windows 64 still makes use of user32.dll etc?
You can do this by calling the
Document.InlineShapes.AddPicture()
method.The following example inserts an image into the active document, before the second sentence.
Documentation on the AddPicture() method can be found here.
Additional details on automating Word with Ruby can be found here.
David