-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathuMainForm.cpp
More file actions
64 lines (55 loc) · 1.49 KB
/
uMainForm.cpp
File metadata and controls
64 lines (55 loc) · 1.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#include <vcl.h>
#pragma hdrstop
#include "uMainForm.h"
#pragma package(smart_init)
#pragma link "cxButtons"
#pragma link "cxClasses"
#pragma link "cxControls"
#pragma link "cxGraphics"
#pragma link "cxLookAndFeelPainters"
#pragma link "cxLookAndFeels"
#pragma link "dxReport"
#pragma link "dxmdaset"
#pragma link "cxContainer"
#pragma link "cxRadioGroup"
#pragma link "cxGroupBox"
#pragma link "dxBackend"
#pragma link "dxBackend.ConnectionString.JSON"
#pragma link "dxBackend.ConnectionString.JSON.DataSet"
#pragma resource "*.dfm"
TMainForm *MainForm;
__fastcall TMainForm::TMainForm(TComponent* Owner)
: TForm(Owner)
{
}
void __fastcall TMainForm::FormCreate(TObject *Sender)
{
// Path to a saved example report file
const String AFileName = "ExampleReport.repx";
// Load example report from a file
if (FileExists(AFileName))
{
dxReport1->ReportName = "ExampleReport";
dxReport1->Layout->LoadFromFile(AFileName);
}
}
void __fastcall TMainForm::btnDisplayDesignerClick(TObject *Sender)
{
// Display the DevExpress Report Designer dialog
dxReport1->ShowDesigner();
}
void __fastcall TMainForm::btnDisplayReportClick(TObject *Sender)
{
// Display the DevExpress Report Viewer dialog
dxReport1->ShowViewer();
}
void __fastcall TMainForm::rbtnSelectEnglishLocalizationClick(TObject *Sender)
{
// Switch Report UI to English
dxReport1->Language = "en-US";
}
void __fastcall TMainForm::rbtnSelectGermanLocalizationClick(TObject *Sender)
{
// Switch Report UI to German
dxReport1->Language = "de-DE";
}