[Lazarus] Reading .fr3 files from LazReports
Michael Van Canneyt
michael at freepascal.org
Tue Aug 24 21:05:55 CEST 2010
On Tue, 24 Aug 2010, Lee Jenkins wrote:
> Michael Van Canneyt wrote:
>>
>>
>> On Mon, 23 Aug 2010, Lee Jenkins wrote:
>>
>>> Odd, I asked about this before and was told x was not required.
>>
>> Of course it is. The LCL requires X.
>>
>
> My original post on 2010/3/17:
the basic unit of lazreport is lr_class:
unit LR_Class;
interface
{$I LR_Vers.inc}
uses
SysUtils, Classes, MaskUtils, Controls, FileUtil, Forms, ComCtrls, Dialogs,
Menus, Variants, DB, Graphics, Printers, osPrinters, DOM, XMLRead, XMLConf, LCLType,
LCLIntf, TypInfo, LCLProc,{$IFDEF UNIX}SysUtilsAdds,{$ENDIF} LR_View, LR_Pars,
LR_Intrp, LR_DSet, LR_DBSet, LR_DBRel, LR_Const;
As you can see, this includes a lot of the LCL units, and they depend on X through the widgetset.
Yes, I know about the no_gui widgetset, but if you use that, you'll get a bunch of errors because
of missing functionality (pagewidth/height missing or zero, no font info etc.).
Lazreport inherited from fastreport a totally misplaced dependency on the GUI, unfortunately :/
For desktop apps, this is perfectly OK. But not for web apps.
Michael.
More information about the Lazarus
mailing list