Thanks.
I have looked through the unfiltered logs and I guess I don't see what I need.
I've found some Java code on the net, but have no idea how to port this to B4A. Any help would be greatly appreciated.
B4X:
Uri uri = Uri.fromFile( F );
Intent Intent = new Intent ("org.androidprinting.intent.action.PRINT");
Intent.setDataAndType( uri, "text/plain" );
context.startActivityForResult(Intent, 0);
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)
Thanks Erel! Works perfectly for a txt file. It does present the HP eprint control window which I'd rather have it just print it without the UI. I suppose that's an HP thing
Can you advise how I might print a PDF and also an HTML file?
Rusty
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.