Beispiel #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     gvData.DataSource = ReportMappingConstant.getProduceReportDS();
     gvData.DataBind();
     if (this.hf.Value != string.Empty)
     {
         ReportViewer1.Report = ReportMappingConstant.getReportInstance(this.hf.Value);
         ReportViewer1.DataBind();
     }
 }
Beispiel #2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     ASPxComboBox1.DataSource = new[] { "Tháng 1", "Tháng 2", "Quý 1", "6 tháng đầu năm" };
     ASPxComboBox1.DataBind();
     gvData.DataSource = ReportMappingConstant.getWarehouseRPDS();
     gvData.DataBind();
     if (this.hf.Value != string.Empty)
     {
         ReportViewer1.Report = ReportMappingConstant.getReportInstance(this.hf.Value);
         ReportViewer1.DataBind();
     }
 }
Beispiel #3
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                rpvHf["ReportCode"] = null;
            }

            if (rpvHf["ReportCode"] != null && rpvHf["ReportCode"].ToString() != String.Empty)
            {
                XtraReport report = ReportMappingConstant.getReportInstance(rpvHf["ReportCode"].ToString());
                //double scaleFactor = 1;
                //scaleFactor = getReportScale(); //Convert.ToSingle(hf.Value) / 100f;
                //report.PaperKind = System.Drawing.Printing.PaperKind.Custom;
                //report.PageWidth = Convert.ToInt32(report.PageWidth * scaleFactor);
                //report.PageHeight = Convert.ToInt32(report.PageHeight * scaleFactor);
                //report.CreateDocument();
                //report.PrintingSystem.Document.ScaleFactor = scaleFactor;

                rpvReportViewerPopup.Report = report;
                rpvReportViewerPopup.DataBind();
            }
        }