Fortes report cannot compile on Windows with Lazarus 1.7 (trunk), win32 widgetset.
rlprinters.pas(124,10) Error: Identifier not found "OpenPrinter"
- compiles with 1.6.
- compiles with 1.7 on Linux (gtk2 ws)
So it seems to be windows only problem with Lazarus from trunk.
Actually, function OpenPrinter is commented out in unit WinUtilPrn. I do not know why, perhaps it should it be reported to Lazarus bug tracker?
See this post - http://forum.lazarus.freepascal.org/index.php/topic,31745.msg205940.html#msg205940
It says OpenPrinter should be changed with OpenPrinterW
Still, I wander why it is disabled in WinUtilPrn. Should OpenPrinter remain there, but point to OpenPrinterW instead of OpenPrinterA?
Fixed inrepository
Luiz,
You decided to declare OpenPrinter as a wrapper to ANSI Windows API function OpenPrinterA.
However, I believe that it would be better to use unicode API instead.
So, please see this patch which uses this approach. What do you think?