Я ищу простую процедуру в Delphi FMX Android для печати с использованием моего устройства Sunmi V2?
Устройство имеет встроенный термопринтер.
Я начал искать это
https://docwiki.embarcadero.com/RADStud ... pplication
но это работает только в Windows.
Это часть, которая запущен:
var
SrcRect, DestRect: TRectF;
begin
{ Set the default DPI for the printer. The SelectDPI routine defaults
to the closest available resolution as reported by the driver. }
Printer.ActivePrinter.SelectDPI(1200, 1200);
{ Start printing. }
Printer.BeginDoc;
if Printer.Canvas.BeginScene then
try
{ Set canvas filling style. }
Printer.Canvas.Fill.Color := claBlack;
Printer.Canvas.Fill.Kind := TBrushKind.Solid;
{ Set the Source and Destination TRects. }
SrcRect := Image1.LocalRect;
DestRect := TRectF.Create(0, 0, Printer.PageWidth, Printer.PageHeight);
{ Print the picture on all the surfaces of the page and all opaque. }
Printer.Canvas.DrawBitmap(Image1.Bitmap, SrcRect, DestRect, 1);
finally
Printer.Canvas.EndScene;
end;
{ Finish printing job. }
Printer.EndDoc;
end;
Подробнее здесь: https://stackoverflow.com/questions/782 ... -v2-device
Печать Delphi FMX Android с помощью устройства Sunmi V2 ⇐ Android
-
- Похожие темы
- Ответы
- Просмотры
- Последнее сообщение