After setting data in B4xtable, I take snapshot as follows:
But snapshot taken is of full phone screen. How can I take snapshot of only complete B4xtable, as I have to further use it to make pdf files as per Erel's Printing library? What am doing wrong here? Thanks..
Note: s is runtimepermission
B4X:
Sub button1_click
Dim bmp As B4XBitmap=B4XTable1.mBase.Snapshot
Dim out As OutputStream
out = File.OpenOutput(s.GetSafeDirDefaultExternal("yo"), DateTime.Now&".png", False)
bmp.WriteToStream(out, 100, "PNG")
out.Close
ToastMessageShow("check snapshot.example/.jpg",False)
End Sub
Note: s is runtimepermission