-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathJATTestExcel.xml
38 lines (33 loc) · 1.07 KB
/
JATTestExcel.xml
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
<?xml version="1.0" encoding="utf-8"?>
<AxClass xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<Name>JATTestExcel</Name>
<SourceCode>
<Methods />
<UnparsableSource><![CDATA[
class AXZTestExcel
{
public static void main(Args _args)
{
AXZExcelHelper excel = AXZExcelHelper::construct();
excel.parmFileName("TestExcel");
excel.parmWorksheetName("WorksheetName");
container header = ["Name", "LastName", "BirthDate", "Age", "Gender"];
excel.parmHasHeader(true);
excel.parmHeader(header);
List content = new List(Types::Container);
container con = conNull();
con = ["Juan Antonio", "Tomás", mkDate(9,4,1987), 33, "Male"];
content.addEnd(con);
con = ["Miguel", "Pérez", mkDate(23,4,1969), 80, "Male"];
content.addEnd(con);
excel.parmContent(content);
Map values = new Map(Types::String, Types::Container);
container conValues = ["Male", "Female", "Other"];
values.insert("Gender", conValues);
excel.parmListValues(values);
excel.exportFile();
}
}
]]></UnparsableSource>
</SourceCode>
</AxClass>