Forum > Packages and Libraries

zreport

(1/1)

calebs:
Hello all.
Anybody has a success story using zreport on lazarus? I've tried many times to install it and use it but it always give me errors of any type and the documentation on the package is very scarse. I can't find any useful information in the forum either.
I'm investigating it as it would be interesting to print text mode on dotmatrix printers (i still cant solve it the hard way neither).
Thanks!

korba812:
What exact error messages are you receiving? Do you have the RichMemo package installed? ZReport requires RichMemo package to generate print preview.
I am using ZReport successfully in my project, however, I only use Win32/Win64.

Thaddy:

--- Quote from: calebs on January 03, 2024, 05:24:59 am ---Hello all.
'm investigating it as it would be interesting to print text mode on dotmatrix printers (i still cant solve it the hard way neither).
Thanks!

--- End quote ---
Use the unit printer, not printers. Both units exist but for dot matrix printers you need the unit printer, withouth the s.
It is very easy to use but can only do very limited formatting of course.: that is a limitation of dot matrix printers, not of the programming language.
You should also use a fixed font type in your preview and match it to the fonts that are supported by your particular dot matrix printer. They usually support just 1..4 fixed fonts.

This is the scenario I use for POS software, it is old school, but still valid because e.g. your bank withdrawal, supermarket or restaurant tickets/bills are dot matrix printed. And many more solutions need dot matrix.

There is a reference for unit printer in the reference guide as well as an example.

Navigation

[0] Message Index

Go to full version