temporary fix for objectinspector bug
Saving the designer with the objectinspector undocked leads too a freezed objectinspector the next time you go into designmode.
Therefore a temporary fix till the programmers at fastreport have had time to correct it there where it's wrong.
Just put it somewhere before you call the designreport method.
Var ini: TCustomIniFile;
begin
Ini := FrxReport.GetIniFile;
Try
If (Ini.ReadString('Form.TfrxObjectInspector', 'Dock', 'xx') = '' ) And
(Ini.ReadInteger('Form.TfrxObjectInspector', 'Visible', 0) = 1 ) Then
Ini.WriteInteger('Form.TfrxObjectInspector', 'Visible', 0);
Finally
Ini.Free;
End;
frxReport.DesignReport;
End;
Therefore a temporary fix till the programmers at fastreport have had time to correct it there where it's wrong.
Just put it somewhere before you call the designreport method.
Var ini: TCustomIniFile;
begin
Ini := FrxReport.GetIniFile;
Try
If (Ini.ReadString('Form.TfrxObjectInspector', 'Dock', 'xx') = '' ) And
(Ini.ReadInteger('Form.TfrxObjectInspector', 'Visible', 0) = 1 ) Then
Ini.WriteInteger('Form.TfrxObjectInspector', 'Visible', 0);
Finally
Ini.Free;
End;
frxReport.DesignReport;
End;