Delphi 11 10 XE8 XE7 XE Seattle Berlin Tokyo Rio Firemonkey, Delphi Android, Delphi IOS

Build Print Services With Winsoft Print Library In #Delphi XE8 Firemonkey On Android

| Delphi 11 10 XE8 XE7 XE Seattle Berlin Tokyo Rio Firemonkey Delphi Android Delphi IOS

Delphi XE8 Firemonkey Printing on Android | Delphi 11 10 XE8 XE7 XE Seattle Berlin Tokyo Rio Firemonkey Delphi Android Delphi IOS

Developer Erik Salaj from Winsoft has released a printing library for Android which supports Delphi XE8 Firemonkey. It utilizes the Android Print and PrintHelper API so it does not support IOS, Windows, or OSX. Additionally, it requires at least Android 4.4 (KitKat) or higher. You can print images and html pages with the library. This is a commercial library but source code is included in the full version. The library should also work in Appmethod and C++Builder. A trial and a demo are both available. Also be sure to check out the Winsoft Component Package which gets you this library and a huge number of other libraries at a significant savings. Here are some examples of code images and print html page:
uses Winsoft.Android.Print;
...
procedure PrintImage (bmp: TBitmap);
begin
if SystemSupportsPrint then
PrintBitmap (bmp, 'logo', TColorMode.Color, TOrientation.Landscape, TScaleMode.Fit)
else
ShowMessage ('Printing is not supported on this device');
end;

procedure PrintHtml (url: string);
begin
if SystemSupportsPrint then
PrintHtml (url, 'web page')
else
ShowMessage ('Printing is not supported on this device');
end;
 

Head over, download the demo, and download the trial of the Android Printing Library for Delphi XE8 Firemonkey.

Exit mobile version