Hi I am trying to create a pdf with several layout items and later draw text from an sqlite.
I am struggling to understand how to draw a multi line label to the canvas?
Can I create the label with text in the designer, position the label,set visible to false, and then drawview that label to the canvas, using the left,top,height,bottom values for Rect, from the label properties in the designer ?
The code below fails to draw the LblAddress label..
Thank you
I am struggling to understand how to draw a multi line label to the canvas?
Can I create the label with text in the designer, position the label,set visible to false, and then drawview that label to the canvas, using the left,top,height,bottom values for Rect, from the label properties in the designer ?
The code below fails to draw the LblAddress label..
B4X:
Dim rect As Rect
logo = LoadBitmap(File.DirAssets, "47A.png")
pcvs.InitializePDF(File.DirDocuments, "3.pdf", 612, 792)
rect.Initialize(200,0,500,100)
pcvs.DrawBitmap(logo, rect)
rect.Initialize(300,110,500,300)
pcvs.DrawView(LblAddress,rect)
pcvs.Release
Thank you