B4J Question An image in xlsx table

miga

Member
Licensed User
Longtime User
Hi,

Im trying to insert an image into a cell of xls table viw XLUtils/jPOI with no success. Cannot find an example.
 
Solution
With XLUtils:
B4X:
Dim ImageIndex As Int = workbook.PoiWorkbook.AddImage(File.DirAssets, "logo.png")
Dim TopLeft As XLAddress = xl.AddressName("D5")
Dim BottomRight As XLAddress = xl.AddressName("F8")
sheet.PoiSheet.SetImage(ImageIndex, TopLeft.Col0Based, TopLeft.Row0Based, BottomRight.Col0Based, BottomRight.Row0Based)

teddybear

Well-Known Member
Licensed User
Hi,

Im trying to insert an image into a cell of xls table viw XLUtils/jPOI with no success. Cannot find an example.
Here is a tutorial it tells you how to add an image.
 
Last edited:
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
With XLUtils:
B4X:
Dim ImageIndex As Int = workbook.PoiWorkbook.AddImage(File.DirAssets, "logo.png")
Dim TopLeft As XLAddress = xl.AddressName("D5")
Dim BottomRight As XLAddress = xl.AddressName("F8")
sheet.PoiSheet.SetImage(ImageIndex, TopLeft.Col0Based, TopLeft.Row0Based, BottomRight.Col0Based, BottomRight.Row0Based)
 
Upvote 1
Solution
Top