Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2014-08

LazReport: TfrReport.LoadFromFile question

3 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Bart

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

Reply by email

Jesus Reyes
to Bart

Please file a bug report, at least the unexistant .lrf case should trigger an exception.

Jesus Reyes A.

El Domingo, 24 de agosto, 2014 16:56:44, Bart escribi?:

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

Reply by email