예제 #1
0
        private void btnPdf_Click(object sender, EventArgs e)
        {
            Configuration config = new Configuration();

            using (config)
            {
                List <Configuration> configuracion = config.getConfiguration();
                DataTable            dtbl          = maketable();
                Export_pdf           pdf           = new Export_pdf();
                pdf.ExportDatatablePdf(dtbl, configuracion[0].Ruta_reportes + "/Clientes.pdf", "Clientes");
                MessageBox.Show("Terminado");
            }
        }
예제 #2
0
        private void button2_Click(object sender, EventArgs e)
        {
            Configuration config = new Configuration();

            using (config)
            {
                List <Configuration> configuracion = config.getConfiguration();
                DataTable            dtbl          = minimos();
                Export_pdf           pdf           = new Export_pdf();
                pdf.ExportDatatablePdf(dtbl, configuracion[0].Ruta_reportes + "/inventario.pdf", "Inventario");
                MessageBox.Show("Terminado");
            }
        }
예제 #3
0
 private void button9_Click(object sender, EventArgs e)
 {
     if (cboProveedor.Text == "")
     {
         MessageBox.Show("Seleccione un proveedor");
     }
     else
     {
         Configuration config = new Configuration();
         using (config)
         {
             List <Configuration> configuracion = config.getConfiguration();
             DataTable            dtbl          = proveedores();
             Export_pdf           pdf           = new Export_pdf();
             pdf.ExportDatatablePdf(dtbl, configuracion[0].Ruta_reportes + "/inventario.pdf", "Inventario");
             MessageBox.Show("Terminado");
         }
     }
 }