I am trying to come up with an app that prints over WiFi to an HP ePrint printer.
I have tried to apply the method posted by Erel here
https://www.b4x.com/android/forum/threads/hp-eprint-interface-intent.28221/
But all I get is a MsgBox with
----
Unfortunately, HP ePrint has stopped
Report OK
----
I routinely print to the same printer from the same title iOS app I already created in another tool, and what happens is, the printer "wakes up" and I never saw the same kind of dialog.
Something seems to be missing in the code to bring the printer up :
I would appreciate some help in that matter. If I cannot print, this is a definite show stopper
I have tried to apply the method posted by Erel here
https://www.b4x.com/android/forum/threads/hp-eprint-interface-intent.28221/
But all I get is a MsgBox with
----
Unfortunately, HP ePrint has stopped
Report OK
----
I routinely print to the same printer from the same title iOS app I already created in another tool, and what happens is, the printer "wakes up" and I never saw the same kind of dialog.
Something seems to be missing in the code to bring the printer up :
B4X:
Dim i As Intent
i.Initialize("org.androidprinting.intent.action.PRINT", "file://" & File.Combine(Dir, FileName)) 'make sure that the file is in the external storage
i.SetType("text/plain")
StartActivity(i)
I would appreciate some help in that matter. If I cannot print, this is a definite show stopper