void ProcessToReport(string newFileName, Dictionary <int, int> data)
        {
            int    technical       = 0;
            int    adaptive        = 0;
            double technicalResult = 0D;
            double adaptiveResult  = 0D;

            foreach (var item in data)
            {
                if (item.Value == 0)
                {
                    technical++;
                }
                //worksheet.writeNum(curRow, 5, 1);
                else
                {
                    adaptive++;
                }
            }

            technicalResult = (technical * 100) / 12;
            adaptiveResult  = (adaptive * 100) / 12;

            rptTechnicalAdaptivity rpt = new rptTechnicalAdaptivity();
            XRLabel lblIq = (XRLabel)rpt.FindControl("lblIq", false);

            lblIq.Text = technicalResult.ToString();
            XRLabel lblEq = (XRLabel)rpt.FindControl("lblEq", false);

            lblEq.Text = adaptiveResult.ToString();
            rpt.ExportToPdf(newFileName);
        }
예제 #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Convert.ToInt32(Request.QueryString["RdoValue"]) != 0)
            {
                RdoValue = Convert.ToInt32(Request.QueryString["RdoValue"]);
            }

            if (RdoValue == 1)
            {
                rptInteractionPersonality rpt = new rptInteractionPersonality();
                vwDocuementViewer.Report = rpt;
            }
            if (RdoValue == 2)
            {
                rptNaturalAbility rpt = new rptNaturalAbility();
                vwDocuementViewer.Report = rpt;
            }
            if (RdoValue == 3)
            {
                rptTechnicalAdaptivity rpt = new rptTechnicalAdaptivity();
                vwDocuementViewer.Report = rpt;
            }
        }