Tự học lập trình hướng đối tượng và lập trình cơ sở dữ liệu Part 10
Trang 1TRT cs[2ssig] ` Q.M9EIQLA.cs{0eslyl| QUHSDRIE | +? x ŠMimEsglye- QUA
Ổgdebbcoredinl FR, okDbvatandenter ‘hamrtnaasdater l
H86
© Click nit phai chuit tại vị trí tréng trong Form, chon Properties
trong menu hiện ra, xác lập thuộc tính Font là VNI-Times có size là 12
® Ciick chon Form1.œs
® Glick nit View Code thay vì
static void Main()
Trang 2Helet [Ranken incr
Trang 3Bài 3
In nội dung các bảng
bang Crystal Report
9 Mũ chương trình QUANLYHOCSINH 6 trên
© Vao menu Project, chon Atld New iiem
® Trong cila sé higa ra, di chuyển con trugt doc, chon Crystal repart
trong khung bên phải, đặt tên cho tập tin là CrystalRepgriINGLHS.rpt
trong khung Name như hình sau:
Trang 4Hegute: now ta access these additonal rescurces:
Award vinnrg Teckriosl Support
Valuable srudiuct undates
Helpful Samples Tuofals and Techical Briefs
Information an CiystatAnalsis and Crystal Enterpise
© | wants rege:er by li» =
CF yant to enter i registation number ard keycode tor this product now
Flease ente::he 10 uly reyjsticaion ru Lea and thee key code di the spaces plovided bela
Trang 5© Glick nút Next, hình sau hiện ra
Peace compete al liekis to confary your usar profle rformation,
Courtw/Regon [SeleeLecdunLy2evun aanliedopslandge 7” =]
Create a New Crystal Report Document so taeesmeRs
[i] Using the Meport Capert
Trang 6@ Chụn như trong hình, click nút DK, hập thoại sau hiện ra
FH Stancara Kepert Expert
Dasa [Fete | Group | tous! | Toon | Chat } Seer] Sie |
Avatobe dota sauces Tablosin part
trước OLE DB (ADO), ban thấy hình sau hiện ra
B Provider for Indening Sen
0 Provider for intewnet Publi ~
Ỉ 9B Provider for ODBC Driver:
Microsoft OLE O8 Provider for Oracle Microsoft OLE 08 Prev for toot So lEmesotDLE D3 3m Hovder
Use Data Link File: r
ewes Ee] ti Conca
W445
© Chon Microsoft OLE DB Provider for SOL Server, click nit Next
366
Trang 7© Go tén Server fa COMPUTER\DAUQUANGTUAN, Dalatase là
QUANLYHOCSINH, va click đếu chọn mục Integrated Security, click nut Next
t
| Integrated Security: =
đã Siandard Reperl Expert
Dae | Falde | Greup | Tolat | Top | Chat | Select] Sy |
‘hansn Ana 0 rapof on, Youtan choore muiple tues ard acd indene
Avaleio Uala sources:
© Glick dấu "+" trước UANLYH0CSINH, trước dbo, các bảng của H447
€§DL này hiện ra
367
Trang 83ñ Standerd Report Expcøt
Dota [pets | Gun] Toto | TaN | Chet | Seka Sie |
‘Choose catepsener! on YuuLas Lhuuse rine tables and add indexes
Frvaleble deta souces: Tablesin vepert
| H0CSINH
EEKHENTHUONG penis epee HUDF
® Chon hang HOCSINH, ldc này nut có tên Insort Table sẽ đậm lên
Click nút có tên Insert Tabla, bạn thấy hình như sau:
An
xe Jets | Group | Taal" Toon] char | Select} ale |
Chasse detstu vaant 1 Vou can chocee mutipletebles and odd neces
= cba
bieM : Fi DEM HLA
Trang 9
gạa- Bến ÌGiep] Tel | Tosh | Lhơt | Selec] Suis |
twa “EKs [Gowp|Toes | Toph] Coor | Select] Siin |
Choose the blermaten ta senlay onthe rea
Soler the veabis oi tha conta the deta you wert te epot a Then edsther tothe Finite ta Disa it,
Trang 10Ei convenes
EB aweriqinee Baumonnoce vị
H458
© Vao menu File, chon Save CrystalReportlNGLHS.rạt
© Vao menu Project, chon Add Windows Form, dt tân cho Form la FormINH0GSINH.vb như hình sau: