behnam_tr Active Member Licensed User Longtime User Aug 8, 2019 #1 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 Code: 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 Code: 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
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 Code: 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 Code: 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
Solution Erel Aug 9, 2019 Do you call it right after you add the data? If so then add Sleep(100) to allow the interface to be updated.
Do you call it right after you add the data? If so then add Sleep(100) to allow the interface to be updated.
Erel B4X founder Staff member Licensed User Longtime User Aug 9, 2019 #2 Do you call it right after you add the data? If so then add Sleep(100) to allow the interface to be updated. Upvote 0 Solution
Do you call it right after you add the data? If so then add Sleep(100) to allow the interface to be updated.
behnam_tr Active Member Licensed User Longtime User Aug 9, 2019 #3 yes problem solved with sleep thanks Upvote 0