简体   繁体   English

Android:如何让我的用户从应用程序中打印数据

[英]Android: How to let my users print data from the app

I have some data in my app that consists of text and image. 我的应用程序中有一些包含文本和图像的数据。 I want to allow my users to be able to print that data. 我想让我的用户能够打印该数据。

Here are the options that I am thinking of: 这是我正在考虑的选项:

1) Convert data into HTMl format and allow users to email and they can print from their desktop. 1)将数据转换为HTM1格式,并允许用户发送电子邮件,并且他们可以从其桌面进行打印。 This will be zip file with html and images. 这将是带有html和图像的zip文件。 Pros: can be easily coded. 优点:可以轻松编码。 Cons: not sure if users will know what to do with zip file. 缺点:不确定用户是否会知道如何处理zip文件。

2) Convert to PDF. 2)转换为PDF。 But I have read on forums that iText won't work on Android. 但是我在论坛上读过,iText无法在Android上运行。 So any other options to convert to PDF? 还有其他转换为PDF的选项吗? Pros: PDF can be easily printed. 优点:可以轻松打印PDF。 Cons: have to figure out a way to convert to PDF. 缺点:必须找出一种转换为PDF的方法。

Anybody has tried allowing their users to print data? 有人尝试过允许其用户打印数据吗? What are the options 有什么选择

There is an Android app called PrinterShare that allows you to print from the phone, but I think that just prints whole documents. 有一个名为PrinterShare的Android应用程序,它允许您从手机中进行打印,但我认为这只是打印整个文档。

To do this yourself you would want to have some sort of server on your desktop machine which uses the Java Printing API to send your document to a configured printer. 为此,您可能需要在台式机上安装某种服务器,该服务器使用Java Printing API将文档发送到已配置的打印机。 I am just brainstorming here... there are a lot of details to fill in. :-) 我只是在这里集思广益...有很多细节要填写。:-)

Good luck and I hope this helps a little. 祝您好运,希望对您有所帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何让用户在我的 android 应用程序中保持登录状态 - How can I let users remain logged in my android app 如何让用户从应用程序内部为Android应用程序评分(无需重定向到Play商店) - How to Let Users Rate an Android App from inside the App (without redirecting to the Play Store) 如何让用户从我用 Qt for Android 编写的应用程序共享图像 - How to let users share an Image from my application written with Qt for Android 是否有一个Android付款API,可以让我的用户在我的应用程序内的其他服务上购买商品? - Is there an Android payment API that will let my users purchase goods on another service inside my app? 如何将数据从 Android 应用程序打印到 WIFI 打印机? - How to print data from Android app to WIFI printer? 如何在Android中将数据从我的App A共享到我的App B? - how to share data from my App A to my App B in android? 如何将用户定向到我的Android应用商店 - How to direct users to my android app store 如何让您的应用程序从Android已安装的应用程序中获取数据 - How to let your app take data from apps that are already installed by Android 当Android扫描wlan时,如何让我的应用知道 - how let my app know, when Android is scanning the wlan 如何发送意图让其他应用打开我的加密数据? - How to send intent to let another app open my encrypted data?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM