This library will allow you to add printing capabilities to your apps using CloudPrint.
This is an alternative solution to the one on THIS post.
Requirements:
1- A printer connected to CloudPrint, see the setup instructions HERE.
2- The CloudPrint app installed on your device.
3- Copy the CloudPrint.xml and CloudPrint.jar to your additional libraries directory.
Usage:
That's it!!
NOTES:
*This lib is not compatible with KitKat (KitKat has printing built in but I've been unable to get it to work, stay tuned).
* You CANNOT print documents saved on DirAssets, DirInternal or DirInternalCache.
* Make sure you have the most current CloudPrint app installed.
A sample project is attached.
Thank you.
This is an alternative solution to the one on THIS post.
Requirements:
1- A printer connected to CloudPrint, see the setup instructions HERE.
2- The CloudPrint app installed on your device.
3- Copy the CloudPrint.xml and CloudPrint.jar to your additional libraries directory.
Usage:
B4X:
'Initialize the library
Private print As CloudPrint
print.Initialize
'To print a document do this:
print.SendToCloudPrint("Test file", File.DirDefaultExternal, "Sample_Document.txt")
'To print a website
print.SendWebViewToCloudPrint("My Website", WebView1)
'To see your print queue
print.ShowPrintJobs
That's it!!
NOTES:
*
* You CANNOT print documents saved on DirAssets, DirInternal or DirInternalCache.
* Make sure you have the most current CloudPrint app installed.
A sample project is attached.
Thank you.
Attachments
Last edited: