Recent

Author Topic: Lazarus printing alternatives (working for WinCE)  (Read 3535 times)

acr_korn

  • Newbie
  • Posts: 2
Lazarus printing alternatives (working for WinCE)
« on: May 07, 2017, 05:59:02 pm »
Hi all,

I have a Pidion BIP-1300 device in order to build a mobile POS, so I need to print directly from the application to the integrated printer. The issue is that when I try to use the package printer4lazarus I'm getting an error on complie time when the target is WinCE and widgetset too. Every works fine when the target is Win32. Here is error message:

cairocanvas.pas(17,13) Fatal: no puedo encontrar Cairo utilizado por CairoCanvas de paquete cairocanvas_pkg.

Basically, looks like the Cairo canvas doesn't work for WinCE, Is that correct? Which are the alternatives? How could I send to the default printer without using printer4lazarus? Does LazReport work for WinCE.

Tested on Lazarus 1.6.4 and 1.4.4.

Thanks in advance.

Regards,

zeljko

  • Hero Member
  • *****
  • Posts: 1890
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: Lazarus printing alternatives (working for WinCE)
« Reply #1 on: May 07, 2017, 09:02:35 pm »
cairocanvas shouldn't be compiled with wince/win32 at all. Please report issue about it.

Thaddy

  • Hero Member
  • *****
  • Posts: 18797
  • Glad to be alive.
Re: Lazarus printing alternatives (working for WinCE)
« Reply #2 on: May 08, 2017, 06:46:16 am »
POS printers usually support LPT, so you can use writeln(LST,'printme');. Many pos printers do not even work with a printer canvas.
Recovered from removal of tumor in tongue following tongue reconstruction with a part from my leg.

acr_korn

  • Newbie
  • Posts: 2
Re: Lazarus printing alternatives (working for WinCE)
« Reply #3 on: May 09, 2017, 08:19:03 pm »
Thanks, but seems that Printer unit is not available for wince targets. I tried many options and finally I got the Bluebird SDK and I'm working creating a C++ wrapper only for printing. So, the UI will remain in Pascal and the printing functions in a dll. Let's see how this works.

 

TinyPortal © 2005-2018