Exemple #1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            EtatDecompte rpt = new EtatDecompte();

            rpt.Site = this.Site;
            return(rpt);
        }
Exemple #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            EtatDecompte et = new EtatDecompte();

            et.SetParameterValue("attt", comboBox1.SelectedValue.ToString());
            et.SetParameterValue("revesionG", textBox1.Text);
            et.SetParameterValue("jourRetardG", textBox2.Text);
            et.SetParameterValue("Budget", textBox3.Text);
            et.SetParameterValue("Chapitre", textBox4.Text);
            et.SetParameterValue("Article", textBox5.Text);
            et.SetParameterValue("Paragraphe", textBox6.Text);
            et.SetParameterValue("Ligne", textBox7.Text);
            //et.SetParameterValue("num", comboBox1.SelectedText.ToString());
            //et.SetParameterValue("numA", comboBox1.SelectedValue.ToString());
            crystalReportViewer1.ReportSource = et;
        }