This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
tutorial:printdatausinglazreport [2019/12/29 22:27] admin |
tutorial:printdatausinglazreport [2019/12/29 22:44] admin |
||
---|---|---|---|
Line 95: | Line 95: | ||
</sxh> | </sxh> | ||
\\ | \\ | ||
- | 6.1 สองบรรทัดแรก เป็นการเปลี่ยน Caption ของ Button1, Button2 | + | 6.1 สองบรรทัดแรก เป็นการเปลี่ยน Caption ของ Button1, Button2 ส่วนบรรทัดที่เหลือ เป็นการใส่ข้อมูลให้กับ Array\\ |
- | 6.2 Button1 เราจะกำหนดให้ Button1Click แล้วเรียกหน้าต่าง PrintPreview ของไฟล์ report1.lrf ขึ้นมาโดยใช้คำสั่งดังนี้ | + | 6.2 สำหรับ Button1 เราจะกำหนดให้ Button1Click แล้วเรียกหน้าต่าง PrintPreview ของไฟล์ report1.lrf ขึ้นมาโดยใช้คำสั่งดังนี้ |
<sxh delphi;> | <sxh delphi;> | ||
Line 106: | Line 106: | ||
</sxh> | </sxh> | ||
\\ | \\ | ||
- | 6.3 Button2 เราจะกำหนดให้ Button2Click แล้วเรียกหน้าต่าง DesignReport ขึ้นมาเพื่อทำการแก้ใขไฟล์ report1.lrf โดยใช้คำสั่งดังนี้ | + | 6.3 สำหรับ Button2 เราจะกำหนดให้ Button2Click แล้วเรียกหน้าต่าง DesignReport ขึ้นมาเพื่อทำการแก้ใขไฟล์ report1.lrf โดยใช้คำสั่งดังนี้ |
<sxh delphi;> | <sxh delphi;> | ||
Line 286: | Line 286: | ||
8. หลังจากตรวจทานโค๊ดทุกบรรทัดให้ถูกต้องแล้ว ให้กด Compile โปรแกรมได้ จะได้หน้าตาโปรแกรมเป็นดังนี้ | 8. หลังจากตรวจทานโค๊ดทุกบรรทัดให้ถูกต้องแล้ว ให้กด Compile โปรแกรมได้ จะได้หน้าตาโปรแกรมเป็นดังนี้ | ||
+ | {{tutorial:lazreport_runform.png}} | ||
+ | \\ | ||
+ | |||
+ | 8.1 เนื่องจากเรายังไม่ได้ตกแต่งหน้าตา report ใน Design View ดังนั้น ให้กดปุ่ม Button2 ที่ขึ้นข้อความว่า "Edit Design Report" จากนั้นจะมีหน้าต่างแสดง Design View ของ report1.lfr ขึ้นมา ให้จัดรูปแบบ report ตามในรูปข้างล่าง | ||
+ | |||
+ | {{tutorial:lazreport_designpreview.png}} | ||
+ | \\ | ||
+ | |||
+ | {{tutorial:lazreport_designpreviewcompleted.png}} | ||
+ | \\ | ||
+ | |||
+ | 8.2 เนื่องจากเรายังไม่ได้ตกแต่งหน้าตา report ใน | ||
+ | |||
+ | {{tutorial:lazreport_previewcompleted.png}} | ||
+ | \\ |