Example #1
0
        private void button2_Click(object sender, EventArgs e)
        {
            Preview_form previewF = new Preview_form();

            Dynamic_Classe.Instance().Call_Report(previewF.reportViewp, "JosaleApp.Report.Recu.rdlc", Id);
            previewF.ShowDialog();
        }
Example #2
0
        private void button3_Click(object sender, EventArgs e)
        {
            try
            {
                //System.Data.DataTable dt = Dynamic_Classe.Instance().ExportDatagrod_toDatatable(dataGridView1, dtable);
                //Dynamic_Classe.Instance().GeneratePDF(dtable, @"E:\Liste_client.pdf", "Friend List");
                //System.Diagnostics.Process.Start(@"E:\Liste_client.pdf");
                Preview_form report = new Preview_form();
                report.Size = new Size(825, 620);
                if (comboBox2.Text.Equals(""))
                {
                    Dynamic_Classe.Instance().Call_Report_Historic_credit(report.reportViewp, "JosaleApp.Report.Credit.rdlc", Convert.ToInt32(comboBox1.Text.Trim()));
                }
                else
                {
                    string mois = comboBox2.Text.Trim();
                    Dynamic_Classe.Instance().Call_Report_Historic_credit_ym(report.reportViewp, "JosaleApp.Report.Credit.rdlc", Convert.ToInt32(comboBox1.Text.Trim()), mois);
                }



                report.ShowDialog();
            }
            catch (Exception ex)
            {
                MessageBox.Show("Error " + ex.Message);
            }
        }