Insert into a word document an Image from Database

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Ghaleon
    New Member
    • Aug 2013
    • 28

    Insert into a word document an Image from Database

    Does anybody know how to insert a picture from a database to a bookmark in a Word Document using vb. ?

    I know how to insert image by the path, like
    Code:
    Word_App.Selection.InlineShapes.Add.Picutre FileName:="C:\Images\winter.jpg"
    Also, I Know how to bring the image from the database and store it on a RecordSet.

    All I need to know is how may I insert this image into a word document?

    Obs: The field that stores the image is LongBlob type.
  • Rabbit
    Recognized Expert MVP
    • Jan 2007
    • 12517

    #2
    You will need to export the image from the database into a file and then insert that newly created file.

    Comment

    • Ghaleon
      New Member
      • Aug 2013
      • 28

      #3
      Got ya...
      BUt how do I do that? I'm not used to work with VB ;s
      I used to work with C# '-'
      Could you give me a hand ?

      Comment

      • Rabbit
        Recognized Expert MVP
        • Jan 2007
        • 12517

        #4
        The process in VB and C# would be the same.

        Comment

        Working...