Android Question B4A: WIFIPRINT BUG

hery71

Member
Licensed User
I use WIFIpt for printing to pos printer plugged on usb router
Many times print task is nicely executed but sometimes no print
I must stop on debugging mode and after all print onmemeory are executed

force stopping the app on release mode or unnistall the app and all printing on memory are executed...
Someone have the same problem?
Help me...
 

resti

Member
Licensed User
THE CODE


#Region Project Attributes
#ApplicationLabel: B4A Example
#VersionCode: 1
#VersionName:
'SupportedOrientations possible values: unspecified, landscape or portrait.
#SupportedOrientations: unspecified
#CanInstallToExternalStorage: False
#BridgeLogger: True
#End Region

#Region Activity Attributes
#FullScreen: False
#IncludeTitle: True
#End Region

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

Dim pt As wifiprint
End Sub

Sub Activity_Create(FirstTime As Boolean)
'Do not forget to load the layout file created with the visual designer. For example:
Activity.LoadLayout("1")
pt.initialize

End Sub

Sub Activity_Resume

End Sub

Sub Activity_Pause (UserClosed As Boolean)

End Sub


Sub Button1_Click

pt.connectPT("192.168.10.103",9100) 'HERE connet YOUr DEVICE"

End Sub

Sub Button2_Click
pt.printstring ("hola mundo")
pt.printstring ("hola mundo")
'pt.printtest 'TEST PAPER
' Sleep(3000)
'pt.cut
End Sub

Sub Button3_Click
Dim pic As Bitmap
pic.Initialize(File.DirAssets,"look.bmp")


pt.printstring ("hola mundo")


pt.Print_BMP(pt.POSPrintBMP(pic,500,0)) '(PICTURE,PAPER WIDTH,0)


'Sleep(1000)



'pt.cut 'CUT PAPAR
'pt.Printbeep 'VOICE BEEP
End Sub
 
Upvote 0
Top