I have an image in a byte array (read it in from a MySQL blob column) and I need to insert that into a document using VBA and MS Word. Can I create a shape and use EnhMetaFileBits to “re-hydrate” it?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You could write the byte array to a temporary file and load this file as an image into your word document. Should not be too hard to find out how to do this last step in VBA using the macro recorder.
P.S.: without having checked it myself, since I have only Office XP here, EnhMetaFileBits seems to be read-only.