MList Active Member Licensed User Jul 23, 2024 #1 Hi, i am trying to add an image to a word document B4X: Document.Append($" [img Dir=${Var.Filepath} FileName="${Var.ProjektName}.png"/] "$) Document.Append($" [img Dir="C:\" FileName="Bluetooth.jpg" Width=50 Height=50/] "$) Both commands don't work, filepath and filename is correct, file exists. Therefore i tried the second command with file Bluetooth.jpg Can someone kindly help me Thanks Marion
Hi, i am trying to add an image to a word document B4X: Document.Append($" [img Dir=${Var.Filepath} FileName="${Var.ProjektName}.png"/] "$) Document.Append($" [img Dir="C:\" FileName="Bluetooth.jpg" Width=50 Height=50/] "$) Both commands don't work, filepath and filename is correct, file exists. Therefore i tried the second command with file Bluetooth.jpg Can someone kindly help me Thanks Marion
Solution P P PaulMeuris Jul 24, 2024 Have you tried putting the image in a paragraph like this: B4X: Document.Append($" [p][img Dir="e:\_temp\icons\" FileName="save.png" Width=50 Height=50/][/p] "$) Reference: Creating Word documents
Have you tried putting the image in a paragraph like this: B4X: Document.Append($" [p][img Dir="e:\_temp\icons\" FileName="save.png" Width=50 Height=50/][/p] "$) Reference: Creating Word documents
P PaulMeuris Active Member Licensed User Jul 24, 2024 #2 Have you tried putting the image in a paragraph like this: B4X: Document.Append($" [p][img Dir="e:\_temp\icons\" FileName="save.png" Width=50 Height=50/][/p] "$) Reference: Creating Word documents Last edited: Jul 24, 2024 Upvote 1 Solution
Have you tried putting the image in a paragraph like this: B4X: Document.Append($" [p][img Dir="e:\_temp\icons\" FileName="save.png" Width=50 Height=50/][/p] "$) Reference: Creating Word documents
MList Active Member Licensed User Jul 24, 2024 #3 Thanks a lot, that works.. Did not know to use [p] for the image. Upvote 0