Programmatically insert images from xml into Word 2003
Posted on 2008-11-10
I am pretty new to vb.net so please bare with my newness...
What I need to do is read xml files that are provided to me. For each base64 image I find, I will decode and insert them programmatically into a Word document. I have accomplished this in my older vb6 application but we are now updating all our applications to .net and am having some issues.
So now, in .net, I decode [Convert.FromBase64String(xmlStr)] my base64 image into a byte array and.....what?? From here how do I add the image to my bookmark in my document? In vb6 I was saving the decoded image to a file and then inserting the image - will I need to do this still?? or is there a way to do this without saving anything out to a file. I have been looking and looking but have not been able to find any examples (I could be wording my inquiries wrong??) that will insert a decoded image without saving it to file first.
Please let me know if you need any further information or if I need to clarify anything. And many thanks in advance for any info!!