Recent

Author Topic: LAMW - (SOLVED) simple esc/POS printing bridge?  (Read 4178 times)

Mongkey

  • Sr. Member
  • ****
  • Posts: 433
Re: LAMW - simple esc/POS printing bridge?
« Reply #15 on: June 02, 2023, 11:20:00 am »
1 by 1, begin to understand, only print_Text, print_Line succeed  :), 2 others still fail.

just want to bring this 4:
Code: Pascal  [Select][+][-]
  1.     procedure print_line();  overload;
  2.     procedure print_Text(_message: string);  overload;
  3.     procedure print_Custom(_message: string; _size:integer; _align:integer);  overload;
  4.     procedure print_Photo(var _fullFilename: string);  overload;
  5.  

Seems got the failed suspect  -> must be (Ljava/lang/String;II)  :)

Thank you!
« Last Edit: June 02, 2023, 02:24:31 pm by Mongkey »

jmpessoa

  • Hero Member
  • *****
  • Posts: 2317
Re: LAMW - simple esc/POS printing bridge?
« Reply #16 on: June 02, 2023, 05:52:26 pm »

for "print_Custom":

Quote
'(Ljava/lang/String;II)V'

But you don't need to code..... Use the code generator as shown in the picture!

And yes, you can generate code for several methods at once .....

ref:
https://github.com/jmpessoa/lazandroidmodulewizard/blob/master/docs/how_to_create_new_components.txt

Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

Mongkey

  • Sr. Member
  • ****
  • Posts: 433
Re: LAMW - simple esc/POS printing bridge?
« Reply #17 on: June 03, 2023, 12:20:54 am »
Thank you Mr. JMP, your tools are great!,
Let me try first  :), --> WORK like a pro, java to pas bridge programmer  8)

I tried jar file as component, but it always give list out of bound index -> SOLVED  :), i add if listbox1 empty it notifies the importer to re select java method.
« Last Edit: June 03, 2023, 03:05:47 am by Mongkey »

 

TinyPortal © 2005-2018