Site icon Embarcadero RAD Studio, Delphi, & C++Builder Blogs

Easily Print From Android Devices Using Winsoft’s Powerful Android Printing Library For Delphi

In this post, you’ll learn how to print documents from Android devices using Winsoft, a powerful Android printing library that supports Delphi, and how to do so using Windows Application Development.

  1. Introduction

Printing Library is a useful library for establishing a printer connection between an Android device and a local / server printer. The Library uses Android Print and PrintHelper API.

2. Components in the Demo and what they do

The Demo contains tab control with four tab items. Each tab item opens four different screens – one with TImageViewer, one with TWebBrowser, the third one with simple TLabel and the last one empty. All of the four tab items contain the Print button, which on their OnClick event call certain method, depending on the tab item. Every button executes similar code, setting Canvas and Paint settings. All of them call the same PrintPdfDocument procedure, which is actually the main of the Printing Library. The method itself sets needs three parameters to be passed – JPdfDocument, JobName, which is string, and Color. The Color is set with default value, so it’s not mandatory. In the next code you will find short preview of the executed code on the button click.

[crayon-676352f5556ef795259246/] [crayon-676352f5556fa664174430/]

To get a better idea of what the Demo does, check out the short video below with the Demo in action on Android phone:

You can download the Demo from the link, attached below:

https://winsoft.sk/download/aprinting.zip

Find out more about the WINSOFT Android printing library for Delphi.

Exit mobile version