I am trying to put pictures from SQL database to MS Word. I'm using the MS.Office.Interop
interface. The picture is in binary format.
The only comannd I found was the following:
Public Sub Add_RowWithPictures(XMLFile As String)
'### Füge Zeile mit definierten Spalten ein'
Dim wTab As Word.Table = oDoc.Tables.Add(oDoc.Paragraphs(oDoc.Paragraphs.Count).Range, 1, 1)
Dim rng = wTab.Cell(1, 1).Range
rng.InsertXML(XMLFile)
End Sub
But for this I need a conversion to XML.
Could anyone please help me? It is the first time i work with binary files.
Thank you very much!