| Thành viên | Nội dung |
coder
 lap trinh khong bien gioi 144 bài
| Không phải là quá khó, cũng không phải là quá dễ. --------------------------
private DataSet LoadUsers() { DataSet ds = new DataSet(); string strSQL = "select * from USR_Users"; SqlDataAdapter da = new SqlDataAdapter(strSQL, CONNSTRING); da.Fill(ds, "USR_Users"); return ds; }
protected void Page_Load(object sender, EventArgs e) { DataSet ds = LoadUsers(); ReportDocument rep = new ReportDocument(); rep.Load("cr.rpt"); rep.SetDataSource(ds);
crv.ReportSource = rep; crv.DataBind(); }
tất cả chỉ có bấy nhiêu
|
coder
 lap trinh khong bien gioi 144 bài
| Chú ý phải có thư mục
\aspnet_client\system_web\2_0_50727\CrystalReportWebFormViewer3
nếu không thì đống ảnh trên report viewer không hiển thị đâu.
Đây là mà nguồn
http://coder.awas.vn/downloads.ashx?id=ac42682ac115443a93c4094ed3df76ee

|
daitranthanhhoa

1 bài
| thank ha
|
aspnet
 Lập trình không biên giới 607 bài
| Để hiển thị khổ giấy ngang (landscape) cho Report với đối tượng CrystalReport là myDataReport, dùng lệnh:
myDataReport.PrintOptions.PaperOrientation = CrystalDecisions.Shared.PaperOrientation.Landscape;
Trong cửa sổ thiết kế CrystalReport (*.rpt) bấm chuột phải, chọn trong menu mục Design->Print Setup….Check vào Landscape và bấm OK để hiển thị cửa sổ thiết kế Report với khổ giấy ngang.
Nếu Lanscape bị disable chọn No Printer là nó enable lên ngay --- Coding for food http://yenbai.awas.vn http://tknd.vn http://coder.awas.vn http://awas.vn http://bieuquyet.vn http://webhocsinh.com
|
aspnet
 Lập trình không biên giới 607 bài
| Hiện Report Header
Right Click (on Designer) -> Insert -> Section... -> Report Header -> Suppress (No Drilldown)
Drilldown == ẩn section này trong report. --- Coding for food http://yenbai.awas.vn http://tknd.vn http://coder.awas.vn http://awas.vn http://bieuquyet.vn http://webhocsinh.com
|
 |