B4J Question B4XTable and Snapshot problem

behnam_tr

Member
hello

i want to take snapshop from b4xtable
but final image is null

in designer i add b4xtable to pane
and i load this layout with this code in b4j form

B4X:
Dim p As Pane
    p.Initialize("")
    p.LoadLayout("myleyout")
    p.SetSize(750dip,900dip)
    p.Visible=true
    MainForm.RootPane.AddNode(p,0,0,750,900)
after insert data to b4xtable i take snapshot with this code

B4X:
Dim bmp As B4XBitmap = p.Snapshot
    Dim out As OutputStream
    out = File.OpenOutput(File.DirApp&"/user_reports", DateTime.Now&".png", False)
    bmp.WriteToStream(out, 100, "PNG")
    out.Close

panel border and color is shown in image but b4xtable area is white
even b4xtable border color is in the image but data is null and white color

i do this with normal tableview and no problem
thanks
 
Top