Skip to content

Commit 675ae92

Browse files
committed
patch
1 parent 5c4ed53 commit 675ae92

2 files changed

Lines changed: 2 additions & 7 deletions

File tree

Delphi/StoreReportInDB.dpr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ begin
1212
Application.Initialize;
1313
Application.MainFormOnTaskbar := True;
1414
Application.Title := 'DevExpress Example: Store Report in a Database';
15-
Application.CreateForm(TMainForm, MainForm);
1615
Application.CreateForm(TDataModule1, DataModule1);
16+
Application.CreateForm(TMainForm, MainForm);
1717
Application.Run;
1818
end.

Delphi/uMainForm.pas

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -111,16 +111,11 @@ procedure TMainForm.gvLayoutsEditValueChanged(Sender: TcxCustomGridTableView;
111111
// To create a new report layout, create a new dataset record
112112
procedure TMainForm.btnNewClick(Sender: TObject);
113113
begin
114-
DataModule1.mdLayouts.Append
114+
DataModule1.mdLayouts.Append;
115115
end;
116116

117117
procedure TMainForm.btnDesignClick(Sender: TObject);
118118
begin
119-
if (dxReport1.ReportName = '') then
120-
begin
121-
ShowMessage('The report is not specified');
122-
Exit;
123-
end;
124119
dxReport1.ShowDesigner;
125120
end;
126121

0 commit comments

Comments
 (0)