Exemplo n.º 1
0
        private HoaDonXtraReport CreateDateReport(int?OrderId)
        {
            HoaDonXtraReport report = new HoaDonXtraReport();
            DataSet          ds     = GetData(OrderId);

            report.DataSource = ds;
            report.DataMember = "Detail"; // Lặp lại Detail
            string orderid = OrderId == null ? "" : OrderId.ToString();

            report.Name = "Phieu Kiem Kho -" + orderid; // Export file Name
            return(report);
        }
Exemplo n.º 2
0
        public ActionResult ExportReportViewerPartial(int?OrderId)
        {
            HoaDonXtraReport quarterReport = CreateDateReport(OrderId);

            return(DevExpress.Web.Mvc.ReportViewerExtension.ExportTo(quarterReport));
        }
Exemplo n.º 3
0
 public ActionResult ReportViewerPartial(int?OrderId) // id để report with
 {
     CreateViewBag(OrderId);
     ViewData["Report"] = new HoaDonXtraReport();
     return(PartialView());
 }