oldeast Active Member Licensed User Longtime User Jan 31, 2019 #1 Hi, how to write the full image path that contains spaces in html Code: Copy If File.exists(txtImageFolder,txtID&"-1.jpg")Then Image1= txtImageFolder&"\"&txtID &"-1.jpg" Report=Report &"<tr><td> </td><td><img border='1' height='80' src="& Image1 &"></td></tr>" End If if there is a space in the path the full path is truncated, tried Code: Copy Image1= "'" & txtImageFolder &"\"&txtID &"-1.jpg" & "'" Thanks
Hi, how to write the full image path that contains spaces in html Code: Copy If File.exists(txtImageFolder,txtID&"-1.jpg")Then Image1= txtImageFolder&"\"&txtID &"-1.jpg" Report=Report &"<tr><td> </td><td><img border='1' height='80' src="& Image1 &"></td></tr>" End If if there is a space in the path the full path is truncated, tried Code: Copy Image1= "'" & txtImageFolder &"\"&txtID &"-1.jpg" & "'" Thanks
mangojack Expert Licensed User Longtime User Feb 1, 2019 #2 B4J ? possibly posted in wrong forum. anyway ... try using Smart String Literals ... Code: Copy Image1= $" ${txtImageFolder}\${txtID}-1.jpg"$ Report=Report & $"<tr><td>${nbsp}</td><td><img border='1' height='80' src=" Image1"></td></tr>"$ Not full bottle on HTML so unsure if this solves your issue .. you might also want to recheck output. Upvote 0
B4J ? possibly posted in wrong forum. anyway ... try using Smart String Literals ... Code: Copy Image1= $" ${txtImageFolder}\${txtID}-1.jpg"$ Report=Report & $"<tr><td>${nbsp}</td><td><img border='1' height='80' src=" Image1"></td></tr>"$ Not full bottle on HTML so unsure if this solves your issue .. you might also want to recheck output.
Erel B4X founder Staff member Licensed User Longtime User Feb 1, 2019 #3 Moved to B4J forum. Upvote 0
oldeast Active Member Licensed User Longtime User Feb 3, 2019 #4 Thank you, will try that solution. Yes that works with slight modification Code: Copy Image1= $" ${txtImageFolder}\${txtID}-1.jpg"$ Report=Report & $"<tr><td> </td><td><img border='1' height='40' src="${Image1}"></td></tr>"$ Thanks I have leaned about smart string literals. Last edited: Feb 3, 2019 Upvote 0
Thank you, will try that solution. Yes that works with slight modification Code: Copy Image1= $" ${txtImageFolder}\${txtID}-1.jpg"$ Report=Report & $"<tr><td> </td><td><img border='1' height='40' src="${Image1}"></td></tr>"$ Thanks I have leaned about smart string literals.
Daestrum Expert Licensed User Longtime User Feb 3, 2019 #5 Try Code: Copy Report = Report & $"<tr><td> </td><td><img border='1' height='80' src='${File.GetUri(txtImageFolder,txtID&"-1.jpg")}'></td></tr>"$ Upvote 0
Try Code: Copy Report = Report & $"<tr><td> </td><td><img border='1' height='80' src='${File.GetUri(txtImageFolder,txtID&"-1.jpg")}'></td></tr>"$
oldeast Active Member Licensed User Longtime User Feb 5, 2019 #6 Thanks for another solution. Upvote 0