[Lazarus] LazReport: TfrReport.LoadFromFile question

Bart bartjunk64 at gmail.com
Sun Aug 24 23:54:45 CEST 2014


Hi,

TfrReport.LoadFromFile does not raise an exception (or return ay other
indication of error) if the file does not exist and the filename has
the .lrf extension.
If the filename has another extension the code results in a dialog
'Unsupported FRF format'.
This to me is even more bothersome, I cannot trap this in code at all,
nor can I suppress the dialog.

Similar to other components that have a LoadFromFile (TMemo, TSynEdit,
TStringGrid to name a few), I would expect the LoadFromFile to raise
an exception in both cases.

Before I file this in the bigtracjker, I ask here.
Maybe this is by design (compatibility with Delphi perhaps)?

Bart




More information about the Lazarus mailing list