Telerik Reporting
แสดงหน้ารายงาน
curl --location -g --request GET 'https://atlasx.cdg.co.th/axws-demo/api/reports/view?REPORT_CONFIG={"template_name":"<trdx/trdp file>"}&REPORT_PARAMS={}'Example

Export เป็นไฟล์ต่าง ๆ
curl --location -g --request GET 'https://atlasx.cdg.co.th/axws-demo/api/reports/export?REPORT_CONFIG={"template_name":"<trdx/trdp file>", "export_extension":"<pdf/xls/xlsx/doc/docx>"}&REPORT_PARAMS={}'Example

Custom JSON Data Source
- เปิดโฟลเดอร์
Reportแล้วคัดลอกไฟล์AtlasX.TelerikReporting.dll - เปิดโฟล์เดอร์
C:\Program Files (x86)\Progress\Telerik Reporting R1 2020\Report Designerแล้วนำไฟล์ที่คัดลอกวางในโฟล์เดอร์นี้ (พาทและเวอร์ชั่นของ Telerik Reporting แต่ละเครื่องอาจจะไม่เหมือนกัน) - เปิดไฟล์
Telerik.ReportDesigner.exe.configแล้วปรับแก้คอนฟิกตามตัวอย่าง
<?xml version ="1.0"?>
<configuration>
...
<!-- Add assembly references -->
<Telerik.Reporting>
<AssemblyReferences>
<!-- <add name="MyFunctions" version="1.0.0.0" /> -->
<add name="AtlasX.TelerikReporting" version="1.0.0.0" />
</AssemblyReferences>
</Telerik.Reporting>
...
</configuration>- (Optional) แก้คอนฟิกของไฟล์
Telerik.ReportDesigner.x86.exe.config - ดูตัวอย่าง Template รายงานได้ที่ไฟล์
Custom Data Source Test.trdx - แสดงตัวอย่างรายงาน
Report Configure
| Key | Requried | Description |
|---|---|---|
| template_name | true | ชื่อไฟล์และนามสกุลของเทมเพลตของรายงานที่อยู่ในโฟลเดอร์ Report/Templates เช่น My Report 1.trdx เป็นต้น หากมีการวางไฟล์ไว้ในโฟลเดอร์ เราสามารถระบุ Path นำหน้าชื่อไฟล์ได้เลย เช่น Work1/LandUse.trdx |
| report_viewer_title | false | แสดง Title ของเว็บบราวเซอร์ |
| export_extension | Only required when export | นามสกุลของไฟล์ที่ต้องการ Export เช่น pdf, xls เป็นต้น |