I have been trying to print a simple list in a letter size page to the default printer, either by converting first to pdf or directly sending from table to printer or
taking snapshot of screen and send it away, I cant seem to understand what I am missing or what I am doing, I already have the table part, just cant send to printer,
for now any method would work to fullfill the schedule
 , I will of course try to make it better but now I have been 2 days trying to no avail.
	
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
If possible can anyone help me with android printing framework code, it could be html formatting or image output to printer, right now I just want printer to do something. have tried the jfx8 library but that one is apparently for b4j only, I need b4a or a way to call b4j from it.
			
			taking snapshot of screen and send it away, I cant seem to understand what I am missing or what I am doing, I already have the table part, just cant send to printer,
for now any method would work to fullfill the schedule
			
				B4X:
			
		
		
		#Region  Project Attributes
    #ApplicationLabel: Shiplists
    #VersionCode: 1
    #VersionName:
    'SupportedOrientations possible values: unspecified, landscape or portrait.
    #SupportedOrientations: unspecified
    #CanInstallToExternalStorage: False
#End Region
    
#Region  Activity Attributes
    #FullScreen: False
    #IncludeTitle: True
#End Region
    #FullScreen: False
    #IncludeTitle: True
    
Sub Process_Globals
    'These global variables will be declared once when the application starts.
    'These variables can be accessed from all modules.
    
End Sub
Sub Globals
    'These global variables will be redeclared each time the activity is created.
    Private Done As Button
    Private ShipList As EditText
    Private Tbl1 As B4XTable
    Private xui As XUI
    Dim IME As IME
    Private WebView1 As WebView
End Sub
Sub Activity_Create(FirstTime As Boolean)
    Activity.LoadLayout("Layout")
    Tbl1.AddColumn("Item", Tbl1.COLUMN_TYPE_TEXT)
    Tbl1.AddColumn("Qty", Tbl1.COLUMN_TYPE_NUMBERS)
    IME.Initialize("IME")
    IME.HideKeyboard
End Sub
Sub Activity_Resume
    IME.HideKeyboard
End Sub
Sub Activity_Pause (UserClosed As Boolean)
    IME.ShowKeyboard(ShipList)
End Sub
Private Sub Done_Click
    Dim myitems() As String
    Dim l As List
    l.initialize   
    myitems = SplitText(ShipList.text,CRLF)
    'Dim Row() As Object = Array (SplitText(myitems(0),","))
    For n=0 To myitems.length-1
        Dim datoslista() As String
        datoslista = SplitText(myitems(n),",")  'validar si solo queda un elemento, marcara error
        Dim Row() As Object = Array (datoslista(0),datoslista(1))
        'Dim Row() As Object = Array (myitems(0),myitems(1))
        l.Add(Row)
    Next
    Tbl1.SetData(l)
End Sub
Sub SplitText(Text As String,Pattern As String) As String()
   Dim sText() As String
   'sText = Regex.Split(CRLF, Text)
    sText = Regex.Split(Pattern, Text)
   Return sText
End Sub
Private Sub ShipList_EnterPressed
    
    
End Sub
	If possible can anyone help me with android printing framework code, it could be html formatting or image output to printer, right now I just want printer to do something. have tried the jfx8 library but that one is apparently for b4j only, I need b4a or a way to call b4j from it.